/* =========================
   RESET + BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: #f4f6fb;
  color: #222;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

.dark body {
  background: #0f1220;
  color: #e6e6ee;
}

/* =========================
   TOAST ALERTS
========================= */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

/* toast base */
.toast {
  min-width: 260px;
  max-width: 340px;
  padding: 14px 16px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  gap: 12px;

  background: #ffffff;
  color: #111827;
  box-shadow:
    0 10px 25px rgba(0,0,0,0.12),
    0 4px 8px rgba(0,0,0,0.06);

  font-size: 14px;
  animation: slideIn 0.25s ease;
}

/* dark mode */
.dark .toast {
  background: #161a33;
  color: #e5e7eb;
}

/* icon bubble */
.toast .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* types */
.toast.success .icon {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.toast.error .icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.toast.info .icon {
  background: rgba(91, 108, 255, 0.15);
  color: #5b6cff;
}

/* animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   CONFIRM TOAST
========================= */
.confirm-toast {
  min-width: 260px;
  max-width: 340px;
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  color: #111827;
  box-shadow:
    0 10px 25px rgba(0,0,0,0.12),
    0 4px 8px rgba(0,0,0,0.06);
  font-size: 14px;
  animation: slideIn 0.25s ease;
}

/* dark mode */
.dark .confirm-toast {
  background: #161a33;
  color: #e5e7eb;
}

/* message text */
.confirm-toast .message {
  font-weight: 500;
}

/* actions buttons */
.confirm-toast .actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.confirm-toast .btn {
  padding: 8px 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.confirm-toast .btn-confirm {
  background: #5b6cff;
  color: #fff;
}

.confirm-toast .btn-confirm:hover {
  background: #4a57e0;
  transform: translateY(-1px);
}

.confirm-toast .btn-cancel {
  background: #e0e0e0;
  color: #333;
}

.dark .confirm-toast .btn-cancel {
  background: #2b2f4b;
  color: #e5e7eb;
}

.confirm-toast .btn-cancel:hover {
  background: #3b3f63;
  transform: translateY(-1px);
}

/* =========================
   TOPBAR
========================= */
.topbar {
  height: 60px;
  width: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}

.dark .topbar {
  background: #161a33;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
}

.logo img {
  width: 50px;
  object-fit: contain;
}

.dark .logo {
  color: #f0f0f5;
}
/* =========================
   RESPONSIVE LOGO
========================= */

/* tablets and below */
@media (max-width: 768px) {
  .logo {
    gap: 8px;
    font-size: 1.15rem;
  }

  .logo img {
    width: 40px;
  }
}

/* small phones */
@media (max-width: 480px) {
  .logo {
    gap: 6px;
    font-size: 1rem;
  }

  .logo img {
    width: 32px;
  }
}

/* =========================
   TOPBAR CONTROLS (THEME + HAMBURGER)
========================= */
.topbar .right-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* =========================
   THEME TOGGLE
========================= */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle input {
  display: none;
}

.slider {
  width: 48px;
  height: 26px;
  background: #e5e7eb;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
}

.slider::before {
  content: "\f185"; /* sun */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #f59e0b;
  transition: transform 0.3s, color 0.3s;
}

input:checked + .slider {
  background: #5b6cff;
}

input:checked + .slider::before {
  transform: translateX(22px);
  content: "\f186"; /* moon */
  color: #252525;
}

/* =========================
   User BUTTON
========================= */
.user-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #333;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
}

.user-btn:hover {
  background: rgba(0,0,0,0.06);
}

.dark .user-btn {
  color: #f0f0f5;
}

.dark .user-btn:hover {
  background: rgba(255,255,255,0.08);
}

/* =========================
   LOGIN MODAL
========================= */
.login-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.login-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: 20px;
  width: 340px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.dark .login-card {
  background: #1f2447;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

/* Typography */
.login-card h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #222;
}

.dark .login-card h2 {
  color: #fff;
}

.login-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
}

.dark .login-card p {
  color: #ccc;
}

/* Inputs */
.login-card input {
  width: 100%;
  padding: 14px 16px;
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 1rem;
  transition: border 0.2s, box-shadow 0.2s;
}

.login-card input:focus {
  outline: none;
  border-color: #5b6cff;
  box-shadow: 0 0 8px rgba(91,108,255,0.3);
}

.dark .login-card input {
  background: #2c3158;
  color: #fff;
  border: 1px solid #444;
}

/* Login button */
.login-submit {
  margin-top: 20px;
  padding: 14px;
  width: 100%;
  border-radius: 50px;
  border: none;
  background: #5b6cff;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.login-submit:hover {
  background: #4a55e0;
  transform: translateY(-1px);
}

.login-submit:active {
  transform: translateY(1px);
}

/* Google button */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 50px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 16px;
  transition: background 0.2s, box-shadow 0.2s;
}

.google-btn:hover {
  background: #f4f4f4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dark .google-btn {
  background: #2c3158;
  color: #fff;
  border: 1px solid #444;
}

.dark .google-btn:hover {
  background: #3a3f6f;
}

/* Divider */
.divider {
  margin: 1px 0;
  font-size: 0.9rem;
  color: #aaa;
}

.dark .divider {
  color: #888;
}

/* Auth links */
.auth-links {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #5b6cff;
  cursor: pointer;
}

.auth-links span:hover {
  text-decoration: underline;
}

.dark .auth-links span {
  color: #8a9aff;
}

/* =========================
   PASSWORD FIELD
========================= */
.password-field {
  position: relative;
  margin-top: 14px;
}

.password-field input {
  height: 48px;
  padding-right: 42px; /* space for eye icon */
}

/* eye toggle inside input */
.toggle-password {
  position: absolute;
  top: 68%;
  right: 12px;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 24px;
  height: 24px;

  font-size: 15px;
  color: #aaa;
  cursor: pointer;
  user-select: none;
}

.toggle-password:hover {
  color: #5b6cff;
}

.dark .toggle-password {
  color: #bbb;
}

.dark .toggle-password:hover {
  color: #8a9aff;
}

/* =========================
   HAMBURGER BUTTON
========================= */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #111;
  transition: color 0.3s;
}

.dark .sidebar-toggle {
  color: #f0f0f5;
}

.sidebar-toggle:hover {
  color: #5b6cff;
}

/* =========================
   MOBILE BEHAVIOR
========================= */
@media (max-width: 768px) {
  .sidebar-toggle {
    display: block;
  }

  .theme-toggle {
    display: flex;
  }
}

/* =========================
   LAYOUT
========================= */
.layout {
  display: flex;
  min-height: calc(100vh - 60px);
  gap: 10px;
  margin-top: 12px;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
  width: 240px;
  background: #ffffff;
  padding: 24px 0;
  border-left: 1px solid #e5e7eb;
  flex-shrink: 0;
  transition: background 0.3s, border 0.3s;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);

  display: flex;
  flex-direction: column;
}

.dark .sidebar {
  background: #161a33;
  border-left: 1px solid #24284d;
}

.sidebar ul {
  list-style: none;
  user-select: none;
  flex: 1;                /* pushes footer down */
  overflow-y: auto;
}

.sidebar li {
  padding: 14px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}

.sidebar li:hover {
  background: rgba(0,0,0,0.05);
}

.dark .sidebar li:hover {
  background: rgba(255,255,255,0.08);
}

.sidebar i {
  width: 20px;
  text-align: center;
}

.sidebar li.active {
  background: rgba(91, 108, 255, 0.15);
  color: #5b6cff;
}

.sidebar li.active i {
  color: #5b6cff;
}

.sidebar {
  transition: transform 0.3s;
}

.sidebar-footer {
  padding: 12px 14px;
  margin: 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #e5e7eb;
  transition: background 0.2s;
}

.dark .sidebar-footer {
  background: rgba(255, 255, 255, 0.06);
}

/* ======================
   AVATAR
====================== */
.sidebar-footer .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b6cff, #7c8cff);
  color: #fff;

  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

/* ======================
   USER INFO
====================== */
.sidebar-footer .user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.sidebar-footer .user-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer .user-status {
  font-size: 12px;
  opacity: 0.55;
}

/* ======================
   ACTION BUTTON
====================== */
.sidebar-footer button {
  background: none;
  border: none;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: #5b6cff;
  font-weight: 500;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}

.sidebar-footer button:hover {
  background: rgba(91, 108, 255, 0.15);
}

/* subtle hover like ChatGPT */
.sidebar-footer:hover {
  background: rgba(0, 0, 0, 0.06);
}

.dark .sidebar-footer:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* =========================
   SIDEBAR BACKDROP (MOBILE)
========================= */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 40;
}

.sidebar.show ~ .sidebar-backdrop {
  display: block;
}

/* =========================
   SIDEBAR (MOBILE HIDDEN BY DEFAULT)
========================= */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 60px;
    right: 0;
    height: calc(100vh - 60px);
    width: 240px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 50;
    border-left: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 24px 0;
  }

  .dark .sidebar {
    background: #161a33;
    border-left: 1px solid #24284d;
  }

  .sidebar.show {
    transform: translateX(0);
  }
}

/* =========================
   CONTENT
========================= */
.content {
  flex: 1;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  transition: background 0.3s, box-shadow 0.3s;
}

.dark .content {
  background: #1c1f38;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  color: white;
}

section {
  scroll-margin-top: 80px;
}

/* =========================
   CONTENT AREA
========================= */
.content {
  flex: 1;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  transition: background 0.3s, box-shadow 0.3s;
}

.dark .content {
  background: #1c1f38;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* =========================
   HOME SECTION
========================= */
.home {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* =========================
   HERO
========================= */
.home-hero {
  max-width: 700px;
  padding-top: 40px;
  padding-bottom: 20px;
}

.home-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.home-hero p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #555;
}

.dark .home-hero p {
  color: #c9c9d6;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b6cff;
  margin-bottom: 12px;
}

.hero-sub {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

.dark .hero-sub {
  color: #b8b8c8;
}

/* =========================
   FEATURES
========================= */
.home-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  user-select: none;
  padding-bottom: 10px;
  gap: 24px;
}

.feature {
  padding: 28px;
  border-radius: 18px;
  background: #ececff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

.dark .feature {
  background: #1f2447;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.feature i {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #5b6cff;
}

.feature h3 {
  margin-bottom: 6px;
}

/* =========================
   CTA
========================= */
.home-cta {
  display: flex;
  justify-content: center;
}

.home-cta button {
  user-select: none;
  padding: 14px 32px;
  margin-bottom: 50px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  background: #5b6cff;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.home-cta button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(91,108,255,0.35);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .home-features {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding-top: 32px;
    text-align: center;
  }

  .home-hero h1 {
    font-size: 2rem;
  }
}
/* =========================
   ABOUT
========================= */
.home-about {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;  
  margin-top: 10px;
  text-align: center;
}

.home-about h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.home-about p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 32px;
}

.dark .home-about p {
  color: #c9c9d6;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  user-select: none;
  margin-bottom: 50px;
}

.about-feature {
  background: #ececff;
  border-radius: 18px;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

.dark .about-feature {
  background: #1f2447;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.about-feature i {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #5b6cff;
}

.about-feature h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.about-feature p {
  font-size: 0.95rem;
  color: #666;
}

.dark .about-feature p {
  color: #b8b8c8;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-features {
    grid-template-columns: 1fr;
  }

  .home-about h1 {
    font-size: 2rem;
  }
}

/* ======================
   SLANG MODAL (IMPROVED)
====================== */
.slang-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(4px);
}

.slang-modal.active {
  display: flex;
}

/* Card */
.slang-modal-card {
  background: #ffffff;
  max-width: 620px;
  width: 92%;
  max-height: 85vh;
  padding: 32px 28px;
  border-radius: 22px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  animation: modalIn 0.25s ease;
  overflow-y: auto;
}

/* Accent bar */
.slang-modal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #6c63ff, #857dff);
  border-radius: 22px 22px 0 0;
}

.dark .slang-modal-card {
  background: #2b2f4b;
  color: #e6e6f0;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}

/* Animation */
@keyframes modalIn {
  from {
    transform: translateY(10px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  color: #666;
  transition: all 0.2s ease;
}

.close-modal:hover {
  background: rgba(0,0,0,0.08);
  color: #000;
}

.dark .close-modal {
  color: #aaa;
}

.dark .close-modal:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Headings */
.slang-modal-card h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.slang-modal-card > p {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Sections */
.modal-section {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.dark .modal-section {
  border-top: 1px solid rgba(255,255,255,0.12);
}

.modal-section strong {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6c63ff;
  margin-bottom: 6px;
}

.modal-section p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Author */
#modalAuthor {
  display: block;
  margin-top: 24px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* =========================
          Slangs
========================= */
#slangs {
  max-width: 900px;
  margin: 40px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #ececff;
  padding: 36px 24px;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}

.dark #slangs {
  background: #1f2447;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

#slangs h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: #333;
  letter-spacing: 1px;
  font-weight: 700;
  transition: color 0.3s;
}

.dark #slangs h1 {
  color: #e6e6f0;
}

#slangs input {
  padding: 14px 18px;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 14px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
  background: #fff;
  color: #222;
}

.dark #slangs input {
  background: #2b2f4b;
  color: #e6e6f0;
  border-color: #444;
}

#slangs input:focus {
  border-color: #6c63ff;
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.3);
  outline: none;
}

.slang-list {
  margin-top: 20px;
  height: 350px;
  overflow-y: auto;
  border-radius: 16px;
  padding: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fafafa;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.dark .slang-list {
  background: #2b2f4b;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

.slang-list::-webkit-scrollbar {
  width: 10px;
}

.slang-list::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 6px;
}

.dark .slang-list::-webkit-scrollbar-thumb {
  background: #666;
}

.slang-item {
  padding: 16px 20px;
  border-radius: 14px;
  background: #fff;
  border-left: 4px solid #6c63ff;
  transition: all 0.2s ease;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dark .slang-item {
  background: #2f334d;
  border-left: 4px solid #6c63ff;
  color: #e6e6f0;
}

.slang-item h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: inherit;
}

.slang-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: inherit;
}

.slang-item small {
  font-size: 0.85rem;
  color: #555;
}

.dark .slang-item small {
  color: #aaa;
}

.slang-item:hover {
  cursor: pointer;
  background: #f0f0ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dark .slang-item:hover {
  background: #3b3f63;
}

/* =========================
   CREATE SLANG
========================= */
.create-slang {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 40px;
  padding-top: 40px;
}

.section-desc {
  margin-bottom: 32px;
  color: #666;
}

.dark .section-desc {
  color: #b8b8c8;
}

.slang-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  resize: vertical;
}

.dark .form-group input,
.dark .form-group textarea {
  background: #1f2447;
  border-color: #2c3160;
  color: #f0f0f5;
}

.slang-form button {
  margin-top: 12px;
  align-self: flex-start;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  background: #5b6cff;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* =========================
     RANDOM SLANG GENERATOR
========================= */

#random {
  max-width: 700px;
  margin: 50px auto;
  text-align: center;
  background: #ececff;
  padding: 36px 24px;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: background 0.3s, box-shadow 0.3s;
}

.dark #random {
  background: #1f2447;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

#random h1 {
  font-size: 2.4rem;
  color: #333;
  letter-spacing: 1px;
  font-weight: 700;
  transition: color 0.3s;
}

.dark #random h1 {
  color: #e6e6f0;
}

#rollSlang {
  user-select: none;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  background: #5b6cff;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.3s;
}

#rollSlang:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(91,108,255,0.35);
}

.dark #rollSlang {
  background: #7a80ff;
}

#rollSlang:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(91,108,255,0.25);
}

#randomResult {
  margin-top: 12px;
  padding: 20px 16px;
  font-size: 1.2rem;
  border-radius: 16px;
  background: #fafafa;
  border: 2px solid #eee;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  word-break: break-word;
}

.dark #randomResult {
  background: #2b2f4b;
  border-color: #444;
  color: #e6e6f0;
}

#randomResult span.slang-word {
  font-weight: 700;
  font-size: 1.3rem;
  color: #141320;
}

.dark #randomResult span.slang-word {
  color: #fff;
}

#randomResult em {
  font-style: italic;
  color: #555;
}

.dark #randomResult em {
  color: #ccc;
}