/* Root variables - Light Mode (Default) */
:root {
  --color-background: #f0f4fd;
  --color-card: #ffffff;
  --color-primary: #1a5f7a;
  --color-secondary: #6b4ea3;
  --color-accent: #2d9cdb;
  --color-support-1: #4a90e2;
  --color-text: #0a1628;
  --color-text-light: #2d3e50;
  --color-border: #b8d4f1;
  --color-hover: #dce8fb;
  --color-footer: #e8f0fe;
  --color-button-danger: #dc2626;
  --shadow-sm: 0 3px 8px rgba(45, 156, 219, 0.2);
  --shadow-md: 0 6px 18px rgba(45, 156, 219, 0.28);
  --shadow-lg: 0 14px 40px rgba(107, 78, 163, 0.35);
}
/* Dark Mode */
:root.dark-mode {
  --color-background: #0a0e1a;
  --color-card: #131824;
  --color-primary: #5ec4e8;
  --color-secondary: #9d7bdb;
  --color-accent: #4db8f5;
  --color-support-1: #2477d6;
  --color-text: #e8f0fe;
  --color-text-light: #a8b8d8;
  --color-border: #1e2a45;
  --color-hover: #1a2438;
  --color-footer: #0d1220;
  --color-button-danger: #ff4757;
  --shadow-sm: 0 3px 8px rgba(77, 184, 245, 0.15);
  --shadow-md: 0 6px 18px rgba(77, 184, 245, 0.25);
  --shadow-lg: 0 14px 40px rgba(157, 123, 219, 0.35);
}

/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

a {
  list-style-type: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

body {
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.message {
  text-align: center;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 54px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.3s ease;
  margin-left: 1.5rem;
}

.theme-toggle:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.theme-toggle:active {
  transform: scale(0.95);
}

/* Header and Navbar */
.header {
  background: var(--color-card);
  box-shadow: var(--shadow-md);
  width: 80%;
  margin: 1rem auto;
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 10px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.logo {
  margin-right: 1rem;
  height: 54px;
  width: 54px;
  border-radius: 100px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-links {
  list-style: none;
  display: flex;
}

.link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  padding: 10px 1rem;
  border-radius: 10px;
  transition: background 0.3s ease, color 0.3s ease;
}

.link:hover {
  background: var(--color-hover);
}

.small-link {
  color: var(--color-primary);
  transition: background 0.3s ease, color 0.3s ease;
}

.small-link:hover {
  color: var(--color-text-light);
}

/* Sidebar */
.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0;
}

.category-link {
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 5px;
  transition: background 0.2s ease, color 0.3s ease;
}

.category-link.active {
  font-weight: bold;
}

.category-link:hover {
  background: var(--color-hover);
}

/* Main Content */
.main-content {
  width: 80%;
  display: grid;
  grid-template-columns: 1fr 3fr 2fr;
  gap: 3rem;
  margin: 1rem auto;
  padding-top: 0.5rem;
  align-items: start;
}

.page-content {
  flex: 1;
}

/* Prayer Cards */
.users-prayers {
  width: 50%;
  margin: 2rem auto;
}

.prayer-item {
  margin-bottom: 2rem;
}

.prayer-section {
  margin-right: 1rem;
}

.prayer-message {
  font-size: 1.1rem;
}

.prayer-request-actions {
  width: 80%;
  margin: 2rem auto;
}

.prayer-request-actions button {
  background: var(--color-accent);
  color: #fff;
  padding: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out, background 0.3s ease;
}

.prayer-request-actions button:hover {
  opacity: 0.8;
  transform: scale(1.01);
}

.prayer-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.prayer-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.9rem;
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.3s ease;
}

.prayer-card-link:hover .prayer-card {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--color-hover);
}

.profile-actions,
.prayer-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.profile-actions {
  margin-top: 1rem;
}

.prayer-meta {
  font-size: 0.9rem;
  display: flex;
  gap: 0.5rem;
  font-style: italic;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.5rem;
}

.profile-name {
  position: relative;
  z-index: 2;
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-shadow: 1px 1px var(--color-accent), 2px 2px var(--color-accent),
    3px 3px var(--color-support-1), 4px 4px var(--color-support-1),
    5px 5px var(--color-secondary), 6px 6px var(--color-secondary),
    10px 10px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

:root.dark-mode .profile-name {
  color: var(--color-text);
  text-shadow: 1px 1px var(--color-accent), 2px 2px var(--color-support-1),
    3px 3px var(--color-secondary), 4px 4px rgba(0, 0, 0, 0.4),
    6px 6px rgba(0, 0, 0, 0.5), 8px 8px rgba(0, 0, 0, 0.6),
    10px 10px 20px rgba(0, 0, 0, 0.8);
}

.prayer-tag {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 100px;
  font-size: 0.8rem;
}

.pray-button {
  background: none;
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.3s ease;
}

.pray-button {
  border: 1px solid var(--color-primary);
}

.pray-button:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Trending and Daily Verse */
.trending,
.daily-verse {
  background: var(--color-support-1);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0 1rem 0;
  box-shadow: var(--shadow-md);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.trending h2,
.daily-verse h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.trending-prayer {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

:root.dark-mode .trending-prayer {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trending-prayer:last-child {
  border-bottom: none;
}

.trending-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trending-link {
  text-decoration: none;
  color: var(--color-text);
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  transition: background 0.2s ease, color 0.3s ease;
}

.trending-link:hover {
  background: var(--color-hover);
}

.daily-verse {
  font-style: italic;
}

.verse-reference {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  width: 80%;
  margin: 5rem auto 1rem;
  text-align: center;
  background: var(--color-footer);
  padding: 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  transition: color 0.3s ease;
}

/* About and Community Guidelines */
.about-section,
.community-guidelines-section {
  background: var(--color-card);
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  width: 80%;
  margin: 2rem auto;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.about-content,
.community-guidelines-content {
  line-height: 1.8;
  color: var(--color-text);
}

.about-content p,
.community-guidelines-section p {
  margin-bottom: 1rem;
}

/* Forms */
.section-title {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.form-container {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  width: 30%;
  max-width: 1200px;
  margin: 2rem auto;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.submit-button,
.cancel-button {
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.submit-button {
  background: var(--color-primary);
}

.submit-button:hover {
  opacity: 0.9;
}

.cancel-button {
  background: var(--color-secondary);
}

.cancel-button:hover {
  opacity: 0.9;
}

/* Profile */
.profile-content {
  background: var(--color-card);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.profile-section {
  width: 50%;
  margin: 2rem auto;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.profile-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.stat-label {
  font-weight: 600;
  color: var(--color-text-light);
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.action-item button {
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.action-item button a {
  color: #fff;
  text-decoration: none;
}

.edit-button {
  background-color: var(--color-secondary);
}

.edit-button:hover {
  background: transparent;
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
}

.edit-button:hover a {
  color: var(--color-secondary);
}

.change-password-button {
  background-color: var(--color-accent);
}

.change-password-button:hover {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.change-password-button:hover a {
  color: var(--color-accent);
}

.delete-button {
  text-decoration: none;
  background-color: var(--color-button-danger);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.delete-button:hover {
  background: transparent;
  border: 1px solid var(--color-button-danger);
  color: var(--color-button-danger);
}

.delete-button:hover a {
  color: var(--color-button-danger);
}

/* Overlay background */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Popup box */
.popup-box {
  background: var(--color-card);
  border-radius: 10px;
  padding: 25px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: popup-fade 0.25s ease;
  transition: background-color 0.3s ease;
}

.popup-actions button {
  margin: 10px;
  padding: 10px 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

#confirmDeleteBtn {
  background-color: #d9534f;
  color: white;
}

#confirmDeleteBtn:hover {
  background-color: #c9302c;
}

/* Animation */
@keyframes popup-fade {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Offer a Prayer Section */
.offer-prayer-section {
  margin-top: 40px;
  margin: 2rem auto;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  width: 80%;
  transition: border-color 0.3s ease;
}

.offer-prayer-section h3 {
  margin-bottom: 15px;
}

.prayer-card-small {
  background-color: var(--color-card);
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.prayer-message {
  margin: 0;
  font-size: 0.95rem;
}

.no-prayers {
  color: var(--color-text-light);
  font-style: italic;
}

.add-prayer {
  margin-bottom: 20px;
}

.add-prayer textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-text);
  resize: vertical;
  margin-bottom: 10px;
  transition: border-color 0.2s ease, background-color 0.3s ease,
    color 0.3s ease;
}

.prayer-author {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.prayer-date {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-left: 10px;
}

/* Pagination Section */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.pagination-page,
.pagination-arrow,
.pagination-ellipsis {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  text-decoration: none;
  color: var(--color-support-1);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-page:hover,
.pagination-arrow:hover {
  background-color: var(--color-hover);
  color: #fff;
  cursor: pointer;
}

.pagination-page.active {
  background-color: var(--color-support-1);
  color: #fff;
  cursor: default;
}

.pagination-arrow.disabled {
  color: #aaa;
  cursor: pointer;
}

.pagination-ellipsis {
  cursor: pointer;
  color: var(--color-text-light);
  padding: 8px 10px;
}

ul {
  list-style-type: none;
}

/* === SEARCH FORM === */
.search-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem auto;
  max-width: 500px;
  background: var(--color-card);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow-md);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.search-form input[type="text"] {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 1rem;
  background: var(--color-background);
  color: var(--color-text);
  outline: none;
  transition: all 0.3s ease;
}

.search-form input[type="text"]:focus {
  box-shadow: 0 0 0 2px rgba(123, 155, 154, 0.3);
  border-color: var(--color-primary);
}

.search-form button {
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.search-form button:hover {
  opacity: 0.9;
}

.search-form button:active {
  transform: scale(0.98);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.category-toggle {
  display: none;
}

/* MEDIA QUERIES */

/* Media queries for small phone screens */
@media screen and (max-width: 768px),
  screen and (max-height: 500px) and (max-width: 900px) {
  .main-content {
    display: flex;
    flex-direction: column;
  }

  .prayer-section,
  .offer-prayer-section,
  .about-section,
  .community-guidelines-section,
  .prayer-card {
    width: 90%;
    margin: 2rem auto;
  }

  .form-container {
    width: 80%;
  }

  .form-text {
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
  }

  .prayer-request-actions {
    margin: 2rem;
    margin-left: 1rem;
  }

  .profile-actions {
    flex-direction: column;
  }

  .profile-info {
    font-size: 1.2rem;
    text-align: center;
  }

  .profile-section {
    width: 80%;
    margin: 2rem auto;
  }

  .profile-content {
    margin-top: 2rem;
  }

  .profile-actions button {
    width: 100%;
  }

  .theme-toggle {
    width: 80%;
    margin-left: 0.5rem;
    margin-right: 1rem;
  }

  .users-prayers {
    width: 90%;
  }

  .prayer-card {
    width: 100%;
  }

  .link {
    font-size: 1rem;
  }

  .categories {
    position: relative;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    max-height: 5rem;
  }

  .category-toggle {
    display: inline-block;
    background: var(--color-accent);
    color: inherit;
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .category-list {
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-card);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    padding: 0.5rem 0;
    margin-left: 0;
    margin-right: 0;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    transition: opacity 0.3s ease, max-height 0.4s ease, visibility 0.3s ease;
    z-index: 100;
  }

  .category-list.show {
    opacity: 1;
    visibility: visible;
    max-height: 300px;
    overflow: scroll;
  }

  .category-list li {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--color-border);
  }

  .category-list li:last-child {
    border-bottom: none;
  }

  .menu-toggle {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-text-light);
    user-select: none;
    transition: transform 0.2s ease;
    padding: 0.5rem;
    z-index: 1000;
    background: var(--color-card);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(
      135deg,
      var(--color-card) 0%,
      var(--color-background) 100%
    );
    backdrop-filter: blur(10px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 999;
  }

  .nav-links.show {
    max-height: none;
    opacity: 1;
    visibility: visible;
    z-index: 999;
  }

  .nav-links li {
    list-style: none;
    width: 100%;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
  }

  .nav-links.show li {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links.show li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links.show li:nth-child(2) {
    transition-delay: 0.15s;
  }
  .nav-links.show li:nth-child(3) {
    transition-delay: 0.2s;
  }
  .nav-links.show li:nth-child(4) {
    transition-delay: 0.25s;
  }
  .nav-links.show li:nth-child(5) {
    transition-delay: 0.3s;
  }
  .nav-links.show li:nth-child(6) {
    transition-delay: 0.35s;
  }

  .nav-links a {
    display: block;
    padding: 1.2rem 3rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3rem;
    text-align: center;
    border-bottom: 2px solid var(--color-border);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
  }
}

/* Media queries for tablets */
@media screen and (min-width: 768px) and (max-width: 920px) {
  .main-content {
    display: flex;
    flex-direction: column;
  }

  .prayer-section,
  .offer-prayer-section,
  .about-section,
  .community-guidelines-section,
  .prayer-card {
    width: 90%;
    margin: 2rem auto;
  }

  .prayer-card {
    width: 100%;
  }

  .users-prayers {
    width: 80%;
  }

  .form-container {
    width: 70%;
  }

  .link {
    font-size: 1rem;
    padding: 10px 7px;
  }

  .theme-toggle {
    width: 38px;
    height: 34px;
    margin-left: 0.7rem;
  }

  .categories {
    position: relative;
    width: 90%;
    margin: 0 auto;
    margin-bottom: 2rem;
    text-align: center;
    max-height: 5rem;
  }

  .category-toggle {
    display: inline-block;
    background: var(--color-accent);
    color: inherit;
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .category-list {
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-card);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    padding: 0.5rem 0;
    margin-left: 0;
    margin-right: 0;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    transition: opacity 0.3s ease, max-height 0.4s ease, visibility 0.3s ease;
    z-index: 100;
  }

  .category-list.show {
    opacity: 1;
    visibility: visible;
    max-height: 300px;
    overflow: scroll;
  }

  .category-list li {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--color-border);
  }

  .category-list li:last-child {
    border-bottom: none;
  }
}
