/* Co-admin icon and tooltip */
.coadmin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  cursor: pointer;
  color: #7be0ff;
  font-size: 1.1em;
  border-radius: 50%;
  padding: 4px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.coadmin-icon:hover {
  background: #1a2a3a;
  color: #fff;
}
.coadmin-icon[title]:hover:after {
  content: attr(title);
  position: absolute;
  left: 50%;
  top: 120%;
  transform: translateX(-50%);
  background: #222e3a;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85em;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  margin: 0;
  height: 100vh;
  background: radial-gradient(circle at top, #0a0a0f, #000);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  overflow: hidden;
}

/* allow pages that need scrolling to opt-in */
body.allow-scroll {
  height: auto; /* allow document to grow */
  min-height: 100vh;
  overflow-y: auto;
}

body.dashboard-page {
  display: block;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.container {
  text-align: center;
}

.title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.gradient-text {
  background: linear-gradient(90deg, #00e6ff, #7b2ff7);
  background-clip: text; /* standard property for wider compatibility */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #8ee8ff;
  animation: shine 3s infinite alternate;
}

.center-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.cube {
  width: 90px;
  height: 80px;
  position: relative;
  transform: rotateX(45deg) rotateY(45deg);
  background: linear-gradient(135deg, #00e6ff, #7b2ff7);
  box-shadow: 0 0 30px rgba(123,47,247,0.5);
  border-radius: 10px;
  animation: float 3s ease-in-out infinite;
}

.divider {
  width: 3px;
  height: 80px;
  background: linear-gradient(180deg, #00e6ff, #7b2ff7);
  border-radius: 2px;
}

.typing-text {
  display: inline-block;
  font-size: 1.8rem;
  min-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block; /* allow pseudo-element caret to sit after text */
  vertical-align: middle;
  position: relative; /* container for the caret */
  padding-right: 4px; /* small gap so caret doesn't overlap text */
  animation: slideIn 0.15s ease-out forwards;
  
}

/* moving blinking caret that follows the typed text */
.typing-text::after {
  content: "";
  position: absolute; /* stays just after the visible text */
  top: 0.12em;
  width: 2px;
  height: 1.1em;
  background: #2fc8f7;
  animation: blink 1s steps(1) infinite;
}




@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
 @keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
  }


.btn {
  padding: 14px 40px;
  font-size: 1.2rem;
  border: 1px solid #24a7ff;
  border-radius: 30px;
  cursor: pointer;
  background: linear-gradient(90deg, #dc0d9e, #7b2ff7);
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: shine 3s infinite alternate;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(123,47,247,0.6);
}

/* Animations */
@keyframes shine {
  from { filter: brightness(1); }
  to { filter: brightness(1.5); }
}

@keyframes float {
  0%, 100% { transform: rotateX(45deg) rotateY(45deg) translateY(0); }
  50% { transform: rotateX(45deg) rotateY(45deg) translateY(-10px); }
}

/* Login page styles */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.login-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid rgba(128, 82, 255, 0.906);
  padding: 28px;
  border-radius: 12px;
  width: 600px;
  box-shadow: 0 8px 30px rgba(208, 16, 242, 0);
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-card label {
  font-size: 0.9rem;
  text-align: left;
  color: #cfeeff;
}

.login-card input[type="email"],
.login-card input[type="password"] {
  padding: 10px 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(196, 28, 238, 0.459);
  background: rgba(131, 17, 231, 0.055);
  color: #ffffff;
  outline: none;
}

.login-card input:focus {
  box-shadow: 0 0 12px rgba(47,200,247,0.12);
  border-color: rgba(15, 140, 242, 0.906);
}

/* Divider */
.login-divider {
  text-align: center;
  color: #888;
  margin: 14px 0;
  position: relative;
}

.login-divider::before,
.login-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #333;
}
.login-divider::before { left: 0; }
.login-divider::after { right: 0; }


/* Social Buttons */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 25px;
  border: 1px solid #333;
  background: #111;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.social-btn img {
  width: 18px;
}

.social-btn:hover {
  background: #222;
  border-color: #555;
}


/* select and text inputs for signup */
.login-card input[type="text"],
.login-card select,
.login-card input[type="date"] {
  padding: 10px 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(196, 28, 238, 0.459);
  background: rgba(131, 17, 231, 0.055);
  color: #35d1f0;
  outline: none;
}

.login-card select:focus,
.login-card input[type="text"]:focus,
.login-card input[type="date"]:focus {
  box-shadow: 0 0 12px rgba(47,200,247,0.12);
  border-color: rgba(47,200,247,0.4);
  background-color: #0a0a0f;
}

.btn.primary {
  background: linear-gradient(90deg, #ff00d9, #7b2ff7);
}

.muted {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

.muted a { color: #00e6ff; text-decoration: none; }

.createBoxForm{
  display: flex;
  /* flex-direction: column; */
  /* justify-content: center;
  align-items: center;
  gap: 12px; */
  display: flex;
}

/* Home page / navbar styles */
.site-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 20px 0; /* Add this line */
  /* The background and backdrop-filter can remain to give a glassy effect behind the navbar */
  background: linear-gradient(180deg, rgba(81, 18, 227, 0.806), rgba(10,10,15,0.4));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(127,82,255,0.06);
  transform: translateZ(0); /* Fixes some rendering issues on certain browsers */
  
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 28px);
  padding: 12px clamp(16px, 2.4vw, 32px); /* Adjusted padding for a better look */
  
  /* --- Add these new styles for the rounded effect --- */
  background: rgba(143, 22, 236, 0.438); /* Semi-transparent background */
  border-radius: 42px; /* This makes it rounded */
  border: 1px solid rgba(127, 82, 255, 0.2); /* Subtle glowing border */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
}

.logo {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.3px;
  color: transparent;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 14px;
  border: 1px solid rgba(123, 244, 255, 0.65);
  background: linear-gradient(135deg, rgba(5, 10, 24, 0.95), rgba(9, 18, 42, 0.88));
  text-shadow: 0 0 8px rgba(75, 222, 255, 0.5), 0 0 20px rgba(161, 88, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(90, 230, 255, 0.45),
    0 0 20px rgba(42, 198, 255, 0.42),
    0 0 34px rgba(134, 60, 255, 0.28),
    inset 0 0 12px rgba(77, 214, 255, 0.18);
  animation: logoFloat 3.2s ease-in-out infinite;
}

.logo::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  border: 1.6px solid rgba(133, 245, 255, 0.95);
  box-shadow:
    0 0 8px rgba(82, 224, 255, 0.7),
    0 0 16px rgba(82, 224, 255, 0.55),
    0 0 28px rgba(149, 67, 255, 0.42);
  pointer-events: none;
  animation: logoBorderBlink 1.2s ease-in-out infinite;
}

.logo::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(102, 241, 255, 0.35), rgba(102, 241, 255, 0));
  filter: blur(6px);
  z-index: -1;
  pointer-events: none;
  animation: logoAuraPulse 2.1s ease-in-out infinite;
}

.footer-logo {
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  line-height: 1;
  box-shadow: rgb(0, 198, 255) 0 0 14px 2px;
  border: 1px solid rgba(10, 10, 15, 0.7);
  border-radius: 14px;
  padding: 6px 10px;
}

@keyframes logoBorderBlink {
  0%,
  100% {
    opacity: 0.55;
    border-color: rgba(133, 245, 255, 0.7);
    box-shadow:
      0 0 6px rgba(82, 224, 255, 0.52),
      0 0 12px rgba(82, 224, 255, 0.35),
      0 0 20px rgba(149, 67, 255, 0.25);
  }
  50% {
    opacity: 1;
    border-color: rgba(184, 252, 255, 1);
    box-shadow:
      0 0 10px rgba(82, 224, 255, 0.9),
      0 0 22px rgba(82, 224, 255, 0.75),
      0 0 34px rgba(149, 67, 255, 0.6);
  }
}

@keyframes logoAuraPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.03);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

.main-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between; /* Equal spacing */
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  margin: 0;
  padding: 0;
  width: 100%;
}
.main-nav li {
  position: relative;
  padding: 9px 16px;
  color: #cfeeff;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: 999px;
  transition: all 0.3s ease;
}

/* Menu item hover highlight with glow */
.main-nav .has-dropdown:not(.has-dropdown:has(.dropdown)):hover,
.main-nav li:hover:not(.has-dropdown) {
  background: rgba(123, 47, 247, 0.25);
  color: #00e6ff;
  box-shadow: 0 0 15px rgba(123, 47, 247, 0.4), inset 0 0 10px rgba(123, 47, 247, 0.1);
  animation: menuBlink 0.6s ease-in-out;
}

/* Menu item hover with dropdown */
.main-nav .has-dropdown:hover {
  background: rgba(123, 47, 247, 0.25);
  color: #00e6ff;
  box-shadow: 0 0 15px rgba(123, 47, 247, 0.4), inset 0 0 10px rgba(123, 47, 247, 0.1);
  animation: menuBlink 0.6s ease-in-out;
}

.main-nav .nav-search-item,
.main-nav .nav-search-item:hover {
  background: transparent;
  box-shadow: none;
  animation: none;
  padding: 0;
}

@keyframes menuBlink {
  0% { 
    opacity: 0.7;
    transform: scale(0.98);
  }
  50% { 
    opacity: 1;
    transform: scale(1.02);
  }
  100% { 
    opacity: 1;
    transform: scale(1);
  }
}


/* Generic dropdown styles for any .has-dropdown */
.has-dropdown { 
  position: relative; 
}
.has-dropdown > .dropdown {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(15, 10, 40, 0.95);
  border: 1px solid rgba(123,47,247,0.3);
  border-radius: 8px;
  padding: 4px 0;
  min-width: 220px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  z-index: 120;
  text-align: center;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  gap: 0;
}

/* Show dropdown only when it has active class */
.has-dropdown > .dropdown.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  animation: dropdownSlideIn 0.3s ease-out;
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Dropdown item base */
.dropdown li {
  padding: 12px 16px;
  color: #dbefff;
  transition: all 0.2s ease;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  display: block;
  text-align: center;
}

#openProfileAction,
#openChangePasswordAction,
#openSettingsAction,
#openHelpAction,
#openLogoutAction {
  display: grid;
  grid-template-columns: 20px auto;
  column-gap: 10px;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-align: center;
}

#openProfileAction::before,
#openChangePasswordAction::before,
#openSettingsAction::before,
#openHelpAction::before,
#openLogoutAction::before {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  border: 1px solid rgba(155, 228, 255, 0.35);
  background: rgba(56, 75, 130, 0.35);
  color: #d8f2ff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#openProfileAction::before { content: "P"; }
#openChangePasswordAction::before { content: "C"; }
#openSettingsAction::before { content: "S"; }
#openHelpAction::before { content: "?"; }
#openLogoutAction::before { content: "L"; }

#openProfileAction:hover::before,
#openChangePasswordAction:hover::before,
#openSettingsAction:hover::before,
#openHelpAction:hover::before,
#openLogoutAction:hover::before {
  transform: scale(1.08);
  border-color: rgba(140, 239, 255, 0.75);
  box-shadow: 0 0 10px rgba(72, 216, 255, 0.4);
}

/* Option hover - clean bottom highlight on full width */
.dropdown li:hover {
  background: rgba(123, 47, 247, 0.25);
  color: #00e6ff;
  border-bottom-color: #00e6ff;
  animation: optionBlink 0.4s ease-in-out;
}

@keyframes optionBlink {
  0% { 
    opacity: 0.7;
    transform: translateY(-1px);
  }
  50% { 
    opacity: 1;
    transform: translateY(0);
  }
  100% { 
    opacity: 1;
    transform: translateY(0);
  }
}


/* profile dropdown opens to the right */
.profile .dropdown { right: 0; left: auto; text-align: center; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.search input { padding: 8px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); color: #fff; outline: none; }
.search input::placeholder { color: rgba(255,255,255,0.45); }
/* Make sure search input fits neatly in navbar */
.main-nav input[type="search"] {
  width: clamp(190px, 22vw, 270px);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(9, 228, 221, 0.72);
  background: linear-gradient(135deg, rgba(24, 30, 64, 0.75), rgba(38, 16, 72, 0.68));
  color: #ffffff;
  outline: none;
  box-shadow: rgb(0, 198, 255) 0 0 12px 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.main-nav input[type="search"]:focus {
  border-color: rgba(102, 250, 243, 0.95);
  box-shadow: 0 0 0 2px rgba(8, 221, 255, 0.15), 0 0 16px rgba(8, 221, 255, 0.45);
  transform: translateY(-1px);
}

.main-nav input[type="search"]::placeholder {
  color: rgba(255,255,255,0.58);
}


.profile { position: relative; }
.profile .dropdown { right: 0; left: auto; }
.profile .profile-label { padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,0.02); }
.profile .dropdown li { white-space: nowrap; }

.home-main { display: flex; align-items: center; justify-content: center; padding: 80px 20px; }
.home-body { /* applied on body for home page */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ensure main area fills available space so hero can center vertically */
.home-body .home-main {
  flex: 1 1 auto;
}
.hero { text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.headline { font-size: 3rem; margin: 0; }
.btn.create-box { padding: 14px 36px; font-size: 1.1rem; border-radius: 40px; }

.home-modal-card {
  width: min(620px, 94vw);
  max-height: 86vh;
  overflow-y: auto;
  border: 1px solid rgba(117, 206, 255, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-modal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(128, 233, 255, 0.55);
  box-shadow: 0 20px 45px rgba(5, 14, 40, 0.55);
}

.home-modal-card .dashboard-modal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 10px 20px;
  margin-bottom: 16px;
  margin-left: -20px;
  margin-right: -20px;
  margin-top: -20px;
  background: linear-gradient(180deg, rgba(17, 19, 43, 0.98), rgba(17, 19, 43, 0.8));
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.home-profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  margin-top: 0;
}

.home-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(149, 229, 255, 0.45);
  box-shadow: 0 0 20px rgba(123, 47, 247, 0.35);
  object-fit: cover;
  background: linear-gradient(135deg, rgba(11, 24, 56, 0.95), rgba(28, 15, 62, 0.95));
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-profile-avatar:hover {
  transform: scale(1.06) rotate(-2deg);
  border-color: rgba(163, 241, 255, 0.9);
  box-shadow: 0 0 24px rgba(70, 221, 255, 0.45), 0 0 14px rgba(123, 47, 247, 0.35);
}

.home-profile-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.home-profile-role {
  margin: 2px 0 0;
  color: #9bdfff;
  font-size: 0.9rem;
}

.home-modal-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  margin-top: 0;
}

.settings-grid {
  margin-top: 0;
}

.home-modal-grid p {
  margin: 0;
  color: #d3e6ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.profile-name-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-edit-btn {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(149, 229, 255, 0.45);
  background: rgba(149, 229, 255, 0.08);
  color: #d9f7ff;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.inline-edit-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(163, 241, 255, 0.9);
  background: rgba(149, 229, 255, 0.18);
}

.home-modal-grid p:hover {
  transform: translateX(3px);
  border-color: rgba(117, 221, 255, 0.4);
  background: rgba(91, 216, 255, 0.08);
}

.settings-grid label {
  display: grid;
  gap: 6px;
  color: #d5e5ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  margin: 0 0 10px 0;
}

.settings-grid label:first-child {
  margin-top: 12px;
}

.settings-grid label:hover {
  transform: translateY(-2px);
  border-color: rgba(109, 223, 255, 0.45);
  background: rgba(109, 223, 255, 0.08);
}

.settings-grid select {
  border: 1px solid rgba(147, 201, 255, 0.38);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #f2f7ff;
  padding: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.settings-grid select option {
  background: #1b2138;
  color: #eef5ff;
}

.settings-grid select:hover,
.settings-grid select:focus {
  border-color: rgba(141, 238, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 2px rgba(84, 204, 255, 0.2);
}

.home-guide-panel {
  border: 1px solid rgba(110, 231, 255, 0.32);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background:
    radial-gradient(circle at 20% 10%, rgba(93, 240, 255, 0.12), transparent 60%),
    linear-gradient(150deg, rgba(13, 22, 54, 0.9), rgba(35, 9, 68, 0.9));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-guide-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(114, 236, 255, 0.65);
  box-shadow: 0 10px 25px rgba(10, 24, 62, 0.45), inset 0 0 14px rgba(93, 240, 255, 0.14);
}

.home-modal-card .modal-close-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-modal-card .modal-close-btn:hover,
.home-modal-card .modal-close-btn:focus-visible {
  transform: scale(1.08);
  border-color: rgba(136, 236, 255, 0.85);
  box-shadow: 0 0 14px rgba(79, 219, 255, 0.35);
}

#logoutCurrentBtn:hover,
#logoutCurrentBtn:focus-visible {
  box-shadow: 0 0 0 2px rgba(90, 215, 255, 0.22), 0 8px 20px rgba(16, 30, 70, 0.45);
}

#logoutAllBtn:hover,
#logoutAllBtn:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 110, 130, 0.24), 0 8px 20px rgba(70, 16, 30, 0.45);
}

.home-guide-panel h4 {
  margin: 0 0 8px;
  color: #9af1ff;
}

.home-guide-panel p {
  margin: 6px 0;
  color: #e5f0ff;
}

.home-body.theme-light {
  background: linear-gradient(180deg, #f5f9ff, #e8f3ff);
  color: #162235;
}

.home-body.theme-light .site-header {
  background: linear-gradient(180deg, rgba(191, 213, 255, 0.9), rgba(240, 246, 255, 0.85));
}

.home-body.theme-light .headline,
.home-body.theme-light .footer-typing,
.home-body.theme-light .logo {
  color: #162235;
}

.home-body.theme-light .settings-grid select {
  background: rgba(255, 255, 255, 0.94);
  color: #1a2942;
  border-color: rgba(52, 103, 184, 0.35);
}

.home-body.theme-light .settings-grid select option {
  background: #ffffff;
  color: #1f2d45;
}

.home-body.theme-neon {
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 255, 204, 0.15), transparent 52%),
    radial-gradient(circle at 92% 20%, rgba(255, 0, 170, 0.14), transparent 48%),
    linear-gradient(145deg, #030615, #090022 62%, #0e0420);
}

/* Global theme application so setting works across private pages too */
body.theme-dark {
  --theme-bg: radial-gradient(circle at top, #0a0a0f, #000);
  --theme-text: #eef4ff;
  --theme-text-muted: #bed0f2;
  --theme-link: #8ad8ff;
  --theme-link-hover: #b8ebff;
  --theme-surface: linear-gradient(160deg, rgba(21, 24, 42, 0.94), rgba(14, 16, 30, 0.92));
  --theme-surface-2: rgba(15, 17, 35, 0.84);
  --theme-border: rgba(131, 162, 255, 0.28);
  --theme-header: linear-gradient(180deg, rgba(81, 18, 227, 0.82), rgba(10, 10, 15, 0.42));
  --theme-nav: rgba(143, 22, 236, 0.44);
  --theme-input-bg: rgba(255, 255, 255, 0.08);
  --theme-input-text: #eef4ff;
  --theme-shadow: 0 16px 36px rgba(4, 8, 22, 0.58);
}

body.theme-light {
  --theme-bg: linear-gradient(180deg, #edf2fa 0%, #e3eaf5 45%, #dce4f1 100%);
  --theme-text: #1f2d45;
  --theme-text-muted: #4e5f7a;
  --theme-link: #2f5da8;
  --theme-link-hover: #1f4a90;
  --theme-surface: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.96));
  --theme-surface-2: rgba(247, 251, 255, 0.94);
  --theme-border: rgba(124, 146, 186, 0.35);
  --theme-header: linear-gradient(180deg, rgba(208, 220, 240, 0.92), rgba(229, 237, 249, 0.88));
  --theme-nav: rgba(255, 255, 255, 0.86);
  --theme-input-bg: rgba(255, 255, 255, 0.98);
  --theme-input-text: #1f2d45;
  --theme-shadow: 0 14px 28px rgba(92, 114, 150, 0.18);
}

body.theme-neon {
  --theme-bg:
    radial-gradient(circle at 10% 5%, rgba(0, 255, 204, 0.16), transparent 52%),
    radial-gradient(circle at 90% 12%, rgba(255, 0, 170, 0.16), transparent 46%),
    linear-gradient(145deg, #030615, #0c0224 60%, #110028);
  --theme-text: #f1f8ff;
  --theme-text-muted: #b8ccf6;
  --theme-link: #7ceeff;
  --theme-link-hover: #b5f8ff;
  --theme-surface: linear-gradient(160deg, rgba(17, 23, 52, 0.96), rgba(18, 8, 45, 0.95));
  --theme-surface-2: rgba(15, 12, 44, 0.88);
  --theme-border: rgba(95, 241, 255, 0.35);
  --theme-header: linear-gradient(180deg, rgba(56, 10, 123, 0.86), rgba(9, 6, 26, 0.45));
  --theme-nav: rgba(56, 17, 130, 0.5);
  --theme-input-bg: rgba(255, 255, 255, 0.08);
  --theme-input-text: #f1f8ff;
  --theme-shadow: 0 0 0 1px rgba(95, 241, 255, 0.2), 0 16px 36px rgba(11, 2, 36, 0.62);
}

body.theme-dark,
body.theme-light,
body.theme-neon {
  background: var(--theme-bg);
  color: var(--theme-text);
}

body.theme-dark :where(h1, h2, h3, h4, h5, h6, p, li, label, small, strong, td, th, legend, span:not(.gradient-text)),
body.theme-light :where(h1, h2, h3, h4, h5, h6, p, li, label, small, strong, td, th, legend, span:not(.gradient-text)),
body.theme-neon :where(h1, h2, h3, h4, h5, h6, p, li, label, small, strong, td, th, legend, span:not(.gradient-text)) {
  color: var(--theme-text);
}

body.theme-dark :where(.muted, .modal-help-text, .upload-meta, .member-chip-meta, .home-profile-role),
body.theme-light :where(.muted, .modal-help-text, .upload-meta, .member-chip-meta, .home-profile-role),
body.theme-neon :where(.muted, .modal-help-text, .upload-meta, .member-chip-meta, .home-profile-role) {
  color: var(--theme-text-muted);
}

body.theme-dark a:not(.btn):not(.social-btn),
body.theme-light a:not(.btn):not(.social-btn),
body.theme-neon a:not(.btn):not(.social-btn) {
  color: var(--theme-link);
}

body.theme-dark a:not(.btn):not(.social-btn):hover,
body.theme-light a:not(.btn):not(.social-btn):hover,
body.theme-neon a:not(.btn):not(.social-btn):hover {
  color: var(--theme-link-hover);
}

body.theme-dark .site-header,
body.theme-light .site-header,
body.theme-neon .site-header {
  background: var(--theme-header);
}

body.theme-dark .nav-inner,
body.theme-light .nav-inner,
body.theme-neon .nav-inner {
  background: var(--theme-nav);
  border-color: var(--theme-border);
  box-shadow: var(--theme-shadow);
}

body.theme-dark .dashboard-modal-card,
body.theme-dark .home-modal-card,
body.theme-dark .uploads-header-card,
body.theme-dark .uploads-members-card,
body.theme-dark .uploads-grid-section,
body.theme-dark .exist-box-card,
body.theme-dark .sidebar,
body.theme-light .dashboard-modal-card,
body.theme-light .home-modal-card,
body.theme-light .uploads-header-card,
body.theme-light .uploads-members-card,
body.theme-light .uploads-grid-section,
body.theme-light .exist-box-card,
body.theme-light .sidebar,
body.theme-neon .dashboard-modal-card,
body.theme-neon .home-modal-card,
body.theme-neon .uploads-header-card,
body.theme-neon .uploads-members-card,
body.theme-neon .uploads-grid-section,
body.theme-neon .exist-box-card,
body.theme-neon .sidebar {
  background: var(--theme-surface);
  border-color: var(--theme-border);
  color: var(--theme-text);
  box-shadow: var(--theme-shadow);
}

body.theme-dark .modal-form input,
body.theme-dark .modal-form select,
body.theme-dark .settings-grid select,
body.theme-dark .login-card input,
body.theme-dark textarea,
body.theme-light .modal-form input,
body.theme-light .modal-form select,
body.theme-light .settings-grid select,
body.theme-light .login-card input,
body.theme-light textarea,
body.theme-neon .modal-form input,
body.theme-neon .modal-form select,
body.theme-neon .settings-grid select,
body.theme-neon .login-card input,
body.theme-neon textarea {
  background: var(--theme-input-bg);
  color: var(--theme-input-text);
  border-color: var(--theme-border);
}

body.theme-dark .settings-grid select option,
body.theme-neon .settings-grid select option {
  background: #1b2138;
  color: #eef5ff;
}

body.theme-light .settings-grid select option {
  background: #ffffff;
  color: #1f2d45;
}

body.theme-dark .main-nav li,
body.theme-dark .headline,
body.theme-dark .title,
body.theme-dark .box-title,
body.theme-dark .section-title,
body.theme-dark .home-modal-grid p,
body.theme-dark .home-profile-name,
body.theme-dark .home-profile-role,
body.theme-dark .logo,
body.theme-dark label,
body.theme-dark .muted,
body.theme-dark .modal-help-text,
body.theme-dark .modal-error,
body.theme-dark .box-description,
body.theme-dark .uploads-grid-head p,
body.theme-dark .uploads-members-head p,
body.theme-dark .footer-typing,
body.theme-light .main-nav li,
body.theme-light .headline,
body.theme-light .title,
body.theme-light .box-title,
body.theme-light .section-title,
body.theme-light .home-modal-grid p,
body.theme-light .home-profile-name,
body.theme-light .home-profile-role,
body.theme-light .logo,
body.theme-light label,
body.theme-light .muted,
body.theme-light .modal-help-text,
body.theme-light .modal-error,
body.theme-light .box-description,
body.theme-light .uploads-grid-head p,
body.theme-light .uploads-members-head p,
body.theme-light .footer-typing,
body.theme-neon .main-nav li,
body.theme-neon .headline,
body.theme-neon .title,
body.theme-neon .box-title,
body.theme-neon .section-title,
body.theme-neon .home-modal-grid p,
body.theme-neon .home-profile-name,
body.theme-neon .home-profile-role,
body.theme-neon .logo,
body.theme-neon label,
body.theme-neon .muted,
body.theme-neon .modal-help-text,
body.theme-neon .modal-error,
body.theme-neon .box-description,
body.theme-neon .uploads-grid-head p,
body.theme-neon .uploads-members-head p,
body.theme-neon .footer-typing {
  color: var(--theme-text);
}

body.theme-dark .muted,
body.theme-light .muted,
body.theme-neon .muted,
body.theme-dark .modal-help-text,
body.theme-light .modal-help-text,
body.theme-neon .modal-help-text {
  color: var(--theme-text-muted);
}

body.theme-light .main-nav input[type="search"],
body.theme-light .search input {
  background: rgba(255, 255, 255, 0.95);
  color: #1f2d45;
  border-color: rgba(98, 127, 176, 0.42);
}

body.theme-light .main-nav input[type="search"]::placeholder,
body.theme-light .search input::placeholder {
  color: rgba(31, 45, 69, 0.45);
}

body.theme-light.dashboard-page .main-layout {
  background:
    radial-gradient(1200px 700px at 100% -10%, rgba(118, 181, 255, 0.22), transparent 58%),
    radial-gradient(900px 600px at 20% 120%, rgba(114, 219, 255, 0.18), transparent 55%),
    linear-gradient(115deg, #edf5ff 0%, #dcecff 45%, #edf4ff 100%);
}

body.theme-neon .btn,
body.theme-neon .modal-submit-btn {
  box-shadow: 0 0 14px rgba(23, 180, 249, 0.45), 0 0 28px rgba(157, 61, 248, 0.25);
}

/* Professional component tuning per theme */
body.theme-light .btn,
body.theme-light .modal-submit-btn,
body.theme-light .action-btn,
body.theme-light .action-chip {
  background: linear-gradient(135deg, #2d8cff, #4f6df5);
  border-color: rgba(62, 112, 205, 0.45);
  color: #f7fbff;
  box-shadow: 0 10px 22px rgba(71, 103, 160, 0.24);
}

body.theme-light .btn:hover,
body.theme-light .modal-submit-btn:hover,
body.theme-light .action-btn:hover,
body.theme-light .action-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(54, 90, 154, 0.3);
}

body.theme-light .modal-submit-btn.danger,
body.theme-light .action-btn.danger,
body.theme-light .action-chip.danger {
  background: linear-gradient(135deg, #d64e5d, #b53f7e);
  border-color: rgba(171, 63, 89, 0.45);
  color: #fff5f7;
}

body.theme-light .dropdown {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.98));
  border-color: rgba(117, 145, 191, 0.35);
  box-shadow: 0 16px 30px rgba(90, 111, 148, 0.2);
}

body.theme-light .dropdown li {
  color: #273a58;
}

body.theme-light .dropdown li:hover {
  background: rgba(76, 123, 211, 0.16);
  color: #123a77;
  border-bottom-color: rgba(50, 102, 196, 0.65);
}

body.theme-light .main-nav li:hover,
body.theme-light .main-nav .has-dropdown:hover {
  background: rgba(76, 123, 211, 0.14);
  color: #1d4f9e;
  box-shadow: 0 0 0 1px rgba(94, 137, 213, 0.2) inset;
}

body.theme-light .footer-inner {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(111, 143, 198, 0.3);
  box-shadow: 0 10px 24px rgba(100, 120, 155, 0.22);
}

body.theme-dark .btn,
body.theme-dark .modal-submit-btn,
body.theme-neon .btn,
body.theme-neon .modal-submit-btn {
  border-color: rgba(84, 208, 255, 0.5);
}

.site-footer { position: fixed; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; }

.footer-inner { pointer-events: auto; display:flex; gap: 16px; align-items: center; background: rgba(255,255,255,0.02); padding: 8px 16px; border-radius: 30px; border: 1px solid rgba(127,82,255,0.06); box-shadow: rgb(0, 198, 255) -3px 5px 3px 5px;}
 

.footer-divider { width: 3px; height: 60px; background: linear-gradient(180deg, #00e6ff, #7b2ff7); border-radius: 1px; }
.footer-typing { font-size: 1rem; color: #fff; 
  position: relative;
  font-family: "Poppins", sans-serif;
  white-space: nowrap; 
}

/* responsive tweaks */
@media (max-width: 800px) {
  .main-nav ul { display: none; }
  .nav-inner { padding: 12px; }
  .headline { font-size: 2rem; }
}


/* ////////////////Create your D-Box  ************CSS//////////////////////*/





/* Smooth background animation */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Container ===== */
.container {
  max-width: 450px;
  width: 100%;
}

/* Title */
.title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ===== Glass Card ===== */
.Box-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ===== Form Elements ===== */
label {
  margin-top: 15px;
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: #dcdcdc;
}

input,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px;
  margin-top: 8px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #fff;
  outline: none;
  transition: 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: #00d9ff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
}

/* ===== Button ===== */
.btn.primary {
  margin-top: 20px;
  width: 100%;
  background: linear-gradient(90deg, #ff00d9, #7b2ff7);
  border: 1px solid rgba(9, 228, 221, 0.915);
  padding: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 217, 255, 0.4);
}

/* ===== Muted Text ===== */
.muted {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.muted a {
  color: #00d9ff;
  text-decoration: none;
}

.muted a:hover {
  text-decoration: underline;
}

/* Decrease textarea size for Box Description */
#createBoxForm textarea {
  height: 100px;      /* decrease height */
  max-width: 100%;    /* keep it responsive */
  font-size: 0.9rem;  /* matches your input styling */
  resize: vertical;   /* allow user to resize vertically if needed */
}


 /* ********************************************************************************************** */
/*Existing styles for the Exist Box - modified to fit in one line */

 /* ********************************************************************************************** */



/* ========== MAIN LAYOUT ========== */
.main-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  min-width: 100vw;
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(1200px 700px at 100% -10%, rgba(64, 108, 255, 0.2), transparent 58%),
    radial-gradient(900px 600px at 20% 120%, rgba(116, 255, 220, 0.14), transparent 55%),
    linear-gradient(115deg, #06071b 0%, #080a24 45%, #050616 100%);
  background-size: 140% 140%;
  animation: dashboardBgMove 16s ease-in-out infinite;
  color: #fff;
  overflow: hidden;
  position: relative;
}

@keyframes dashboardBgMove {
  0% { background-position: 0% 0%, 100% 100%, 0% 50%; }
  50% { background-position: 100% 20%, 20% 80%, 100% 50%; }
  100% { background-position: 0% 0%, 100% 100%, 0% 50%; }
}

.main-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(129, 152, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 152, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.2;
  pointer-events: none;
}

/* ========== SIDEBAR (WIDER + FULL + PREMIUM) ========== */
.sidebar {
  width: 400px;              /* ⭐ wider sidebar */
  min-width: 350px;
  background: linear-gradient(180deg, rgba(17, 11, 43, 0.92), rgba(10, 7, 26, 0.96));
  border-right: 2px solid rgba(138, 54, 255, 0.3);
  backdrop-filter: blur(20px);
  padding: 30px 25px;         /* ⭐ bigger internal spacing */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 35px;

}

/* Sidebar Title */
.sidebar h3 {
  font-size: 2.4rem;          /* ⭐ bigger title */
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #00d9ff, #7b2ff7, #ff007a);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border: 1px solid black;
  width: fit-content;
  box-shadow: rgb(0, 198, 255) -3px 1px 3px 4px;
  border-radius: 440px;
}


/* Menu List */
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar ul li {
  padding: 14px 18px;         /* ⭐ bigger list items */
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;          /* ⭐ bigger readable text */
  color: #d7eaff;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  transition: 0.4s;

  
}


.sidebar ul li::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #6ee7ff, #7c3aed);
  transition: 0.4s;
}


.sidebar ul li:hover {
  color: #6ee7ff;
  transform: translateX(10px);
  text-shadow: 0 0 14px rgba(93, 230, 255, 0.35);
}

.sidebar ul li:hover::after {
  width: 70%;
}

.sidebar ul li.active {
  color: #6ee7ff;
  transform: translateX(10px);
  text-shadow: 0 0 14px rgba(93, 230, 255, 0.35);
}

.sidebar ul li.active::after {
  width: 70%;
}



/* ========== RIGHT SIDE CONTENT ========== */
.exist-box-container {
  flex: 1;
  padding: 50px 56px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 100vh;
  width: auto;
  position: relative;
}

.exist-box-container::before,
.exist-box-container::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.exist-box-container::before {
  top: 28px;
  right: 80px;
  background: rgba(0, 166, 255, 0.16);
}

.exist-box-container::after {
  bottom: 70px;
  left: 120px;
  background: rgba(126, 96, 255, 0.15);
}

/* Page Heading */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ========== BOX CARD LIST ========== */
.box-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Single Box Card */
.exist-box-card {
  padding: 24px 30px;
  border-radius: 20px;
  border: 1px solid rgba(154, 179, 255, 0.24);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 35px rgba(4, 8, 22, 0.58);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.18s cubic-bezier(.4,2,.6,1.2), background 0.18s cubic-bezier(.4,2,.6,1.2), backdrop-filter 0.18s cubic-bezier(.4,2,.6,1.2);
  cursor: pointer;
  width: 100%;
  position: relative;
  overflow: visible;
  background: linear-gradient(160deg, rgba(26, 31, 52, 0.95), rgba(21, 24, 42, 0.9));
}

.exist-box-card:hover {
  border-color: rgba(85, 217, 255, 0.75);
  outline: 1px solid rgba(85, 217, 255, 0.55);
  outline-offset: 2px;
  box-shadow: 0 24px 64px 0 rgba(2,16,36,0.72), 0 0 0 2px rgba(85,217,255,0.18), 0 8px 32px 0 rgba(123,47,247,0.18);
  background: rgba(30, 34, 54, 0.72);
  backdrop-filter: blur(8px);
  transform: scale(1.03);
}

.box-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.box-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  justify-self: start;
}

.box-title {
  font-size: 1.95rem;
  font-weight: 700;
  color: #f7f9ff;
  letter-spacing: 0.3px;
}

.box-meta {
  justify-self: center;
  display: flex;
  gap: 10px;
  align-items: center;
}

.delete-btn {
  justify-self: end;
}

.box-admin-email-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 6px 0;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(110, 231, 255, 0.2);
  border: 1px solid rgba(110, 231, 255, 0.45);
  color: #bdf4ff;
  border-radius: 999px;
  padding: 4px 10px;
  margin-left: 8px;
}

.box-admin-email {
  text-align: center;
  font-size: 0.9rem;
  color: #a8c5ff;
  font-weight: 500;
  letter-spacing: 0.2px;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-email {
  text-align: center;
  font-size: 0.9rem;
  color: #a8c5ff;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 40px;
}

.exist-box-card:hover .box-admin-email {
  opacity: 1;
  transform: scale(1.02);
}

.box-description {
  margin-top: 10px;
  margin-bottom: 14px;
  color: #d8e4ff;
  font-size: 1.02rem;
  line-height: 1.45;
}

.admin-email-top {
  margin: 0 0 12px;
  text-align: center;
  color: #c7dcff;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.1px;
  overflow-wrap: anywhere;
}

.actions,
.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-btn,
.action-chip {
  border: 1px solid rgba(110, 231, 255, 0.4);
  background: rgba(15, 17, 35, 0.85);
  color: #e9f5ff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.action-btn:hover,
.action-chip:hover {
  transform: translateY(-2px);
  border-color: #55d9ff;
  background: linear-gradient(130deg, rgba(33, 50, 89, 0.95), rgba(39, 38, 84, 0.95));
  box-shadow: 0 10px 22px rgba(0, 10, 28, 0.35);
}

.action-btn i,
.action-chip i {
  margin-right: 6px;
}

.action-btn.danger,
.action-chip.danger {
  border-color: rgba(255, 105, 128, 0.55);
  background: linear-gradient(135deg, rgba(43, 17, 28, 0.96), rgba(67, 23, 43, 0.96));
  color: #ffd7de;
}

.action-btn.danger:hover,
.action-chip.danger:hover {
  border-color: rgba(255, 138, 160, 0.9);
  box-shadow: 0 10px 22px rgba(0, 10, 28, 0.35);
}

.content-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #c6d8ff;
  line-height: 1.4;
  justify-content: space-between;
  margin-top: 8px;
}

.capacity-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 18, 38, 0.62);
  border: 1px solid rgba(110, 231, 255, 0.16);
}

.box-meta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.member-action-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 18, 38, 0.62);
  border: 1px solid rgba(110, 231, 255, 0.16);
}

.capacity-line-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.capacity-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 255, 0.35);
  background: rgba(12, 18, 38, 0.7);
  color: #dff7ff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.capacity-caption {
  font-size: 0.84rem;
  color: rgba(220, 235, 255, 0.75);
}

.capacity-edit-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(110, 231, 255, 0.28);
  background: rgba(10, 14, 29, 0.72);
  color: #dff7ff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.capacity-line:hover .capacity-edit-btn,
.capacity-line:focus-within .capacity-edit-btn {
  opacity: 1;
  pointer-events: auto;
}

.capacity-edit-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 231, 255, 0.55);
  background: rgba(22, 28, 52, 0.92);
}

@media (hover: none) {
  .capacity-edit-btn {
    opacity: 1;
    pointer-events: auto;
  }
}

.open-link {
  color: #90ebff;
  text-decoration: none;
  font-weight: 600;
}

.open-link:hover {
  color: #b7f4ff;
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .sidebar {
    width: 300px;
    min-width: 260px;
  }

  .exist-box-container {
    padding: 36px 28px;
  }

  .box-title {
    font-size: 1.6rem;
  }
}

.dashboard-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 14, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dashboard-modal[aria-hidden="false"] {
  display: flex;
}

.dashboard-modal-card {
  width: min(480px, 92vw);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 16px;
  padding: 20px;
  padding-top: 0;
  background: linear-gradient(160deg, rgba(20, 22, 40, 0.98), rgba(14, 10, 34, 0.98));
  border: 1px solid rgba(135, 156, 255, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

body.modal-open {
  overflow: hidden;
}

.dashboard-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dashboard-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #f0f6ff;
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f6f7ff;
  background: transparent;
  cursor: pointer;
}

.modal-form {
  display: grid;
  gap: 10px;
}

.modal-form[hidden] {
  display: none !important;
}

.modal-form label {
  font-size: 0.9rem;
  color: #c8daff;
}

.modal-help-text {
  color: #a9badf;
  font-size: 0.8rem;
  margin-top: -2px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #f2f6ff;
  padding: 10px 12px;
  outline: none;
}

.modal-submit-btn {
  margin-top: 8px;
  border: 1px solid rgba(85, 217, 255, 0.5);
  background: linear-gradient(120deg, #0ea5e9, #7c3aed);
  color: #fff;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
}

.modal-submit-btn i {
  margin-right: 6px;
}

.modal-submit-btn.danger {
  border-color: rgba(255, 107, 129, 0.55);
  background: linear-gradient(120deg, #ef4444, #7c3aed);
}

.modal-error {
  margin-top: 10px;
  min-height: 20px;
  color: #ffb7c4;
  font-size: 0.9rem;
}

.modal-error.warning {
  color: #ffd08a;
}

.modal-error.success {
  color: #a7f3d0;
}

.modal-help-text-inline {
  font-size: 0.8rem;
  color: #9bdfff;
  font-weight: 400;
}

.modal-form input[type="url"] {
  padding: 10px 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(196, 28, 238, 0.459);
  background: rgba(131, 17, 231, 0.055);
  color: #35d1f0;
  outline: none;
}

.modal-form input[type="file"] {
  padding: 8px 10px;
  font-size: 0.92rem;
  border-radius: 8px;
  border: 1px solid rgba(196, 28, 238, 0.459);
  background: rgba(131, 17, 231, 0.055);
  color: #d8f6ff;
}

.modal-form input[type="url"]:focus {
  box-shadow: 0 0 12px rgba(47,200,247,0.12);
  border-color: rgba(15, 140, 242, 0.906);
}

.modal-form input[type="file"]:focus {
  box-shadow: 0 0 12px rgba(47,200,247,0.12);
  border-color: rgba(15, 140, 242, 0.906);
}

.history-table-wrap {
  margin-top: 10px;
  max-height: min(58vh, 440px);
  overflow: auto;
  border: 1px solid rgba(124, 166, 247, 0.28);
  border-radius: 10px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: rgba(7, 13, 28, 0.85);
}

.history-table th,
.history-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: 0.86rem;
  color: #d8e8ff;
  white-space: nowrap;
}

.history-table th {
  position: sticky;
  top: 0;
  background: rgba(17, 24, 45, 0.96);
  color: #aee7ff;
  z-index: 1;
}

/* Lines inside card */
.box-content .line {
  font-size: 1.05rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.box-content .line:last-child {
  border-bottom: none;
}

/* ========== FLOATING ADD BUTTON ========== */
.add-box-btn,.upload-pdf-btn {
 display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;   /* default padding remove */
  line-height: 1; /* baseline issue fix */
  width: 60px;
  height: 60px;
  border: 1px solid #24a7ff;
  border-radius: 50%;
  background: linear-gradient(120deg, #ff00d9, #7b2ff7);
  font-size: 25px;
  color: white;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  transition: 0.25s ease;
}
.add-box-btn i {
  transform: translateY(-2px);
  font-size: 24px;
}

.add-box-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(123,47,247,0.6);
  border: 1px solid rgba(9, 228, 221, 0.915);
}
.add-box-btn i {
  font-size: 24px;   /* thoda balanced look */
  pointer-events: none; /* ensure icon doesn't interfere with button hover */
}
.add-box-btn:first-child i{
  font-size: 26px; /* make the plus icon slightly bigger than the PDF icon for visual hierarchy */
}


/* DASHBOARD BTN */
.button-group{
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.back-nav-btn {
  position: fixed;
  top: 24px;
  left: 24px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(110, 231, 255, 0.45);
  background: linear-gradient(160deg, rgba(8, 16, 38, 0.92), rgba(29, 9, 55, 0.9));
  color: #e8f9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.68),
    0 2px 0 rgba(255, 255, 255, 0.08) inset,
    0 -2px 0 rgba(0, 0, 0, 0.24) inset,
    0 0 18px rgba(0, 230, 255, 0.52),
    0 0 30px rgba(123, 47, 247, 0.42);
  z-index: 1100;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.back-nav-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(0, 230, 255, 0.22), rgba(123, 47, 247, 0.24));
  z-index: -1;
  pointer-events: none;
}

.back-nav-btn i {
  font-size: 20px;
  pointer-events: none;
}

.back-nav-btn span {
  font-size: 24px;
  line-height: 1;
  pointer-events: none;
}

.back-nav-btn .back-nav-glyph {
  font-size: 25px;
  font-weight: 700;
  transform: translateX(-2px);
  text-shadow: 0 0 10px rgba(0, 230, 255, 0.35);
}

.back-nav-btn:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(0, 230, 255, 0.75);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.72),
    0 2px 0 rgba(255, 255, 255, 0.1) inset,
    0 -2px 0 rgba(0, 0, 0, 0.28) inset,
    0 0 26px rgba(0, 230, 255, 0.55),
    0 0 34px rgba(123, 47, 247, 0.45);
}

@media (max-width: 768px) {
  .back-nav-btn {
    top: 14px;
    left: 14px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .back-nav-btn i {
    font-size: 18px;
  }

  .back-nav-btn span {
    font-size: 21px;
  }

  .back-nav-btn .back-nav-glyph {
    font-size: 22px;
  }
}

/* agar label button jaisa behave nahi kar raha ho */
.pdf-btn{
    display: flex;
    align-items: center;
    justify-content: center;
}

/* DASHBOAED PDF BTN */
 .fa-solid.fa-file-pdf{
  background-color: #ff4d4d;
  padding: 10px;
  margin-right: 50px;
} 

/* userboxe.html */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: 'Segoe UI', sans-serif;
}

body{
    background: radial-gradient(circle at top,#0f0f2d,#050510);
    color:white;
}

/* MAIN LAYOUT */
.box-container{
    display:flex;
    min-height:100vh;
}

/* SIDEBAR */
.sidebar{
    width:250px;
    background: linear-gradient(180deg,#120a2a,#070414);
    padding:90px 35px;
    border-right:1px solid rgba(255,255,255,0.05);
}

.side-btn{
    font-size:18px;
    margin-bottom:45px;
    cursor:pointer;
    position:relative;
    transition:.4s;
    letter-spacing:.5px;
}

.side-btn::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0%;
    height:2px;
    background:linear-gradient(90deg,#6ee7ff,#7c3aed);
    transition:.4s;
}

.side-btn:hover{
    color:#6ee7ff;
    transform:translateX(10px);
}

.side-btn:hover::after{
    width:70%;
}

/* MAIN AREA */
.main-area{
    flex:1;
    padding:70px 90px;
}

/* HEADING */
.gradient-text{
    background: linear-gradient(45deg,#6ee7ff,#a78bfa);
  background-clip:text;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

/* UPLOAD AREA */
.upload-area{
    height:70vh;
    display:flex;
    justify-content:center;
    align-items:center;
}

/* UPLOAD BOX */
.upload-box{
    width:460px;
    height:260px;
    border-radius:22px;
    border:1px solid rgba(255,255,255,0.08);
    background: linear-gradient(145deg,#14142b,#0b0b1f);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    transition:.4s;
    box-shadow:0 20px 50px rgba(0,0,0,0.6);
}

.upload-box:hover{
    transform:translateY(-10px) scale(1.03);
    border:1px solid #6ee7ff;
    box-shadow:0 25px 60px rgba(110,231,255,0.25);
}

.plus{
    font-size:60px;
    margin-bottom:15px;
    background: linear-gradient(45deg,#6ee7ff,#7c3aed);
  background-clip:text;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.side-btn.active{
    color:#6ee7ff;
    transform:translateX(10px);
}

.upload-box.minimized{
    position:fixed;
    bottom:30px;
    right:30px;
    width:70px;
    height:70px;
    border-radius:50%;
    font-size:22px;
    z-index:1000;
    box-shadow:0 10px 25px rgba(0,0,0,0.6);
}

.upload-box.minimized p{
  display:none;
}

.upload-box.minimized .plus{
  font-size:30px;
  margin:0;
}

/* ========== UPLOADS PAGE ========== */
.uploads-page-layout {
  --uploads-header-height: 110px;
  --uploads-sticky-gap: 0px;
}

.uploads-page-layout .uploads-container {
  gap: 14px;
  padding-top: 0;
  padding-bottom: 110px;
}

.uploads-header-card,
.uploads-members-card,
.uploads-grid-section,
.uploads-admin-tools {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, rgba(26, 31, 52, 0.95), rgba(49, 71, 190, 0.9));
  border: 1px solid rgba(154, 179, 255, 0.2);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 26px rgba(4, 8, 22, 0.4);
}

.uploads-header-card {
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
  background: linear-gradient(160deg, rgb(15, 20, 40), rgb(10, 14, 32));
  box-shadow: 0 14px 28px rgba(3, 8, 22, 0.68);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
}

.uploads-members-card {
  padding: 12px 16px;
}

.uploads-grid-section {
  position: relative;
  background: linear-gradient(160deg, rgb(15, 20, 40), rgb(10, 14, 32));
  box-shadow: 0 14px 28px rgba(3, 8, 22, 0.62);
  isolation: isolate;
}

.uploads-header-card::before,
.uploads-grid-section::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: inherit;
  z-index: -1;
  pointer-events: none;
}

.uploads-header-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 12px 16px 12px 20px;
}

.uploads-header-card h1 {
  font-size: 1.6rem;
  margin: 2px 0 4px;
}

.uploads-header-card p {
  margin: 0;
  font-size: 0.9rem;
}

.uploads-eyebrow {
  margin: 0 0 8px;
  color: #91d8ff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
}

.uploads-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.uploads-header-card p {
  margin: 8px 0 0;
  color: #cedcff;
}

.uploads-members-head,
.uploads-grid-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.uploads-grid-head {
  position: sticky;
  top: calc(var(--uploads-header-height, 110px) + var(--uploads-sticky-gap, 12px));
  z-index: 950;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(160deg, #2196f3, #9c27b0);
  box-shadow: 0 10px 18px rgba(3, 8, 22, 0.55);
  margin-bottom: 12px;
}

.uploads-members-head h2,
.uploads-grid-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.uploads-members-head p,
.uploads-grid-head p {
  margin: 0;
  color: #abc4f8;
  font-size: 0.9rem;
}

.uploads-path-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}

.uploads-batch-status {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(109, 241, 255, 0.45);
  background: rgba(109, 241, 255, 0.12);
  color: #bdf5ff;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.uploads-batch-status.is-error {
  border-color: rgba(255, 157, 157, 0.55);
  background: rgba(255, 105, 105, 0.15);
  color: #ffd6d6;
}

.uploads-delete-mode-indicator {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 194, 106, 0.62);
  background: rgba(255, 178, 64, 0.16);
  color: #ffe6b8;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.uploads-delete-selected-btn {
  border: 1px solid rgba(248, 113, 113, 0.6);
  background: linear-gradient(140deg, rgba(72, 16, 28, 0.9), rgba(48, 10, 20, 0.92));
  color: #ffd9d9;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.uploads-delete-selected-btn:hover {
  border-color: rgba(255, 142, 142, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(35, 6, 14, 0.45);
}

.uploads-delete-selected-btn:focus-visible {
  outline: 2px solid rgba(255, 156, 156, 0.95);
  outline-offset: 2px;
}

.uploads-parent-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(114, 236, 255, 0.55);
  background:
    radial-gradient(circle at 25% 15%, rgba(164, 245, 255, 0.35), transparent 62%),
    linear-gradient(145deg, rgba(10, 35, 70, 0.94), rgba(7, 20, 48, 0.94));
  color: #9feeff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(3, 10, 32, 0.55), inset 0 0 10px rgba(106, 221, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.uploads-parent-icon-btn i {
  font-size: 0.82rem;
}

.uploads-parent-icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(145, 245, 255, 0.9);
  box-shadow: 0 10px 20px rgba(4, 12, 38, 0.62), 0 0 0 1px rgba(110, 231, 255, 0.26) inset;
}

.uploads-parent-icon-btn:focus-visible {
  outline: 2px solid rgba(145, 230, 255, 0.95);
  outline-offset: 2px;
}

.uploads-members-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.member-chip {
  min-width: 230px;
  max-width: 300px;
  border: 1px solid rgba(110, 231, 255, 0.32);
  border-radius: 12px;
  background: rgba(15, 17, 35, 0.7);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-right: 84px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.member-chip:hover,
.member-chip:focus-within {
  transform: none;
  border-color: rgba(110, 231, 255, 0.7);
  box-shadow: 0 12px 22px rgba(4, 12, 38, 0.34);
}

.member-chip-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, #0ea5e9, #7c3aed);
  font-weight: 700;
}

.member-chip-name,
.member-chip-meta {
  margin: 0;
  line-height: 1.25;
}

.member-chip-name {
  color: #f2f8ff;
  font-weight: 600;
}

.member-chip-meta {
  color: #b6caef;
  font-size: 0.82rem;
}

.member-chip-body {
  min-width: 0;
}

.member-chip-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #a7f3d0;
  font-size: 0.72rem;
  margin-top: 4px;
}

.member-chip.is-owner {
  border-color: rgba(34, 197, 94, 0.55);
  background: linear-gradient(160deg, rgba(15, 17, 35, 0.9), rgba(17, 40, 28, 0.7));
}

.member-chip-actions {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.member-chip:hover .member-chip-actions,
.member-chip:focus-within .member-chip-actions {
  opacity: 1;
  pointer-events: auto;
}

.member-chip-action {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(110, 231, 255, 0.28);
  background: rgba(9, 15, 32, 0.78);
  color: #d9f2ff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.member-chip-action:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 231, 255, 0.75);
  background: rgba(13, 25, 48, 0.95);
}

.member-chip-action.danger {
  color: #ffd2d2;
  border-color: rgba(248, 113, 113, 0.3);
}

.member-chip-action.danger:hover {
  border-color: rgba(248, 113, 113, 0.7);
  background: rgba(55, 14, 22, 0.96);
}

.member-chip-action.promote {
  color: #c9ffe2;
  border-color: rgba(34, 197, 94, 0.28);
}

.member-chip-action.promote:hover {
  border-color: rgba(34, 197, 94, 0.65);
  background: rgba(10, 40, 25, 0.96);
}

.member-chip-action.demote {
  color: #ffd2d2;
  border-color: rgba(248, 113, 113, 0.3);
}

.member-chip-action.demote:hover {
  border-color: rgba(248, 113, 113, 0.7);
  background: rgba(55, 14, 22, 0.96);
}

.member-chip-action[data-tooltip]:hover::after,
.member-chip-action[data-tooltip]:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(23, 180, 249, 0.95);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
  max-width: none;
  text-align: left;
  z-index: 3000;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(4, 8, 22, 0.35);
}

.uploads-admin-tools {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.uploads-member-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.uploads-admin-tools .action-chip {
  width: 46px;
  height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  position: relative;
}

.uploads-admin-tools .action-chip i {
  font-size: 1rem;
  margin-right: 0;
}

.uploads-admin-tools .member-dropdown-trigger {
  width: 75px;
  padding: 0 12px;
  justify-content: space-between;
  gap: 15px;
  overflow: visible;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.uploads-admin-tools .member-dropdown-trigger i:first-child {
  flex: 0 0 auto;
}

.uploads-admin-tools .member-dropdown-trigger i:last-child {
  font-size: 0.78rem;
  opacity: 0.95;
  flex: 0 0 auto;
}

.uploads-admin-tools .member-dropdown-trigger:hover,
.uploads-admin-tools .member-dropdown-trigger:focus-visible {
  border-color: #55d9ff;
  background: linear-gradient(130deg, rgba(33, 50, 89, 0.95), rgba(39, 38, 84, 0.95));
  box-shadow: 0 10px 22px rgba(0, 10, 28, 0.35);
}

.uploads-admin-tools .member-dropdown-trigger:hover i,
.uploads-admin-tools .member-dropdown-trigger:focus-visible i {
  color: #e9f5ff;
}

.uploads-member-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, 82vw);
  min-width: 280px;
  max-height: 280px;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  border-radius: 12px;
  border: 1px solid rgba(110, 231, 255, 0.5);
  background: linear-gradient(160deg, rgba(18, 28, 52, 0.9), rgba(9, 16, 34, 0.9));
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 30px rgba(1, 9, 28, 0.62), 0 0 0 1px rgba(110, 231, 255, 0.2);
  padding: 10px;
  z-index: 5000;
}

.uploads-member-dropdown-panel::-webkit-scrollbar {
  width: 12px;
}

.uploads-member-dropdown-panel::-webkit-scrollbar-track {
  background: rgba(8, 14, 30, 0.8);
  border-radius: 10px;
}

.uploads-member-dropdown-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(136, 219, 255, 0.9), rgba(103, 176, 255, 0.9));
  border-radius: 10px;
  border: 2px solid rgba(8, 14, 30, 0.92);
}

.uploads-member-dropdown-panel::-webkit-scrollbar-button:single-button {
  display: block;
  height: 14px;
  background: rgba(13, 23, 45, 0.95);
  border: 0;
}

.uploads-member-dropdown-panel::-webkit-scrollbar-button:single-button:vertical:decrement {
  background:
    linear-gradient(135deg, transparent 50%, #d6f3ff 50%) left 50% top 58% / 6px 6px no-repeat,
    linear-gradient(225deg, transparent 50%, #d6f3ff 50%) right 50% top 58% / 6px 6px no-repeat,
    rgba(13, 23, 45, 0.95);
}

.uploads-member-dropdown-panel::-webkit-scrollbar-button:single-button:vertical:increment {
  background:
    linear-gradient(315deg, transparent 50%, #d6f3ff 50%) left 50% bottom 58% / 6px 6px no-repeat,
    linear-gradient(45deg, transparent 50%, #d6f3ff 50%) right 50% bottom 58% / 6px 6px no-repeat,
    rgba(13, 23, 45, 0.95);
}

.uploads-member-dropdown-panel {
  scrollbar-width: auto;
  scrollbar-color: rgba(136, 219, 255, 0.9) rgba(8, 14, 30, 0.8);
}

.uploads-member-dropdown-panel:not([hidden]) {
  animation: memberDropdownReveal 0.16s ease-out;
}

.uploads-member-dropdown-title {
  margin: 0 0 8px;
  color: #d7ecff;
  font-size: 0.86rem;
  font-weight: 600;
}

.uploads-member-dropdown-list {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.uploads-member-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e4f0ff;
  font-size: 0.84rem;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(110, 231, 255, 0.26);
  background: rgba(11, 19, 39, 0.82);
}

.uploads-member-dropdown-item input {
  margin: 0;
}

.uploads-member-dropdown-empty {
  margin: 0;
  color: #b8c9e8;
  font-size: 0.84rem;
}

#removeSelectedMembersBtn {
  width: 100%;
}

@keyframes memberDropdownReveal {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.uploads-admin-tools .action-chip[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(23, 180, 249, 0.95);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  white-space: nowrap;
  margin-right: 8px;
  z-index: 3000;
  pointer-events: none;
}

.uploads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.upload-item-card {
  border: 1px solid rgba(145, 170, 252, 0.24);
  border-radius: 14px;
  padding: 12px;
  background: rgba(11, 16, 36, 0.8);
  box-shadow: 0 10px 18px rgba(1, 8, 25, 0.35);
  min-height: 290px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
  transform: translateY(12px);
  opacity: 0;
  animation: uploadCardEnter 0.45s ease forwards;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
}

.upload-select-toggle {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.upload-select-toggle[hidden] {
  display: none !important;
}

.upload-select-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.upload-select-toggle span {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(165, 187, 245, 0.66);
  background: rgba(10, 18, 36, 0.88);
  box-shadow: 0 6px 12px rgba(2, 8, 20, 0.45);
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
}

.upload-select-toggle input:checked + span {
  border-color: rgba(110, 231, 255, 0.95);
  background: linear-gradient(145deg, rgba(38, 112, 197, 0.95), rgba(30, 154, 211, 0.95));
}

.upload-select-toggle input:checked + span::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #ecfcff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.upload-select-toggle input:focus-visible + span {
  outline: 2px solid rgba(145, 230, 255, 0.95);
  outline-offset: 2px;
}

.upload-item-card.is-openable {
  cursor: pointer;
}

.upload-item-card.is-openable:focus-visible {
  outline: 2px solid rgba(141, 230, 255, 0.95);
  outline-offset: 2px;
}

.upload-item-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(110, 231, 255, 0.72);
  box-shadow: 0 22px 38px rgba(5, 12, 32, 0.58), 0 0 0 1px rgba(123, 211, 255, 0.16) inset;
}

.upload-item-card.is-selected {
  border-color: rgba(110, 231, 255, 0.9);
  background: linear-gradient(160deg, rgba(18, 34, 66, 0.96), rgba(10, 18, 42, 0.98));
  box-shadow: 0 20px 34px rgba(4, 12, 30, 0.56), 0 0 0 1px rgba(110, 231, 255, 0.2) inset;
}

.upload-item-card-uploading {
  border-color: rgba(110, 231, 255, 0.55);
  background: linear-gradient(160deg, rgba(15, 26, 54, 0.94), rgba(9, 16, 38, 0.96));
  box-shadow: 0 14px 26px rgba(2, 8, 24, 0.46), 0 0 0 1px rgba(110, 231, 255, 0.12) inset;
}

.upload-item-card-uploading .upload-preview {
  border-color: rgba(110, 231, 255, 0.34);
}

.upload-preview-uploading {
  position: relative;
  overflow: hidden;
}

.upload-preview-spinner {
  color: #9adfff;
  font-size: 2rem;
  animation: uploadSpin 1.1s linear infinite;
}

.upload-progress-text {
  color: #9adfff;
  font-weight: 600;
}

@keyframes uploadSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.upload-card-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.upload-card-actions:hover,
.upload-card-actions:focus-within,
.upload-card-actions.is-open {
  opacity: 1;
  transform: translateY(0);
}

.upload-item-card:hover .upload-card-actions,
.upload-item-card:focus-within .upload-card-actions {
  opacity: 1;
  transform: translateY(0);
}

.upload-card-menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(162, 191, 255, 0.32);
  background: rgba(10, 16, 34, 0.92);
  color: #eef6ff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(2, 8, 20, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.upload-card-menu-btn:hover {
  transform: scale(1.06);
  border-color: rgba(111, 220, 255, 0.75);
  background: rgba(16, 24, 48, 0.98);
}

.upload-card-menu {
  min-width: 170px;
  background: rgba(14, 19, 36, 0.98);
  border: 1px solid rgba(128, 162, 255, 0.22);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 18px 32px rgba(0, 8, 24, 0.55);
  display: grid;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.upload-card-menu-btn:hover + .upload-card-menu,
.upload-card-menu-btn:focus-visible + .upload-card-menu,
.upload-card-menu:hover,
.upload-card-actions.is-open .upload-card-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.upload-card-menu button {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(28, 36, 60, 0.92);
  color: #e8f3ff;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.upload-card-menu button:hover {
  background: rgba(23, 180, 249, 0.16);
  transform: translateX(3px);
}

.upload-card-menu button i {
  margin-right: 8px;
}

.upload-card-menu button.danger {
  color: #ffd5d5;
}


.upload-preview {
  height: 145px;
  border: 1px solid rgba(148, 173, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(120deg, rgba(62, 108, 255, 0.16), rgba(0, 195, 255, 0.1)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.02) 8px,
      rgba(255, 255, 255, 0.04) 8px,
      rgba(255, 255, 255, 0.04) 16px
    );
}

.upload-preview.is-tap-open {
  cursor: pointer;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-preview-pdf {
  width: calc(100% + 18px);
  height: 100%;
  margin-right: -18px;
  border: 0;
  display: block;
  background: rgba(8, 14, 30, 0.9);
  pointer-events: none;
}

.upload-preview-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  border: 1px solid rgba(214, 236, 255, 0.35);
  background: rgba(13, 18, 36, 0.78);
  color: #e8f4ff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  text-transform: uppercase;
}

.upload-preview-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #8fd6ff;
}

.upload-item-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
}

.upload-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.upload-type-pill {
  font-size: 0.7rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1px solid rgba(110, 231, 255, 0.55);
  border-radius: 999px;
  color: #bcf1ff;
  padding: 4px 8px;
}

.upload-item-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #e9f3ff;
  line-height: 1.3;
  min-height: 1.3em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-meta {
  margin: 0;
  color: #b6c8ee;
  font-size: 0.84rem;
}

.upload-important-note {
  margin-top: 6px;
  border: 1px solid rgba(251, 191, 36, 0.48);
  background: linear-gradient(120deg, rgba(234, 179, 8, 0.15), rgba(251, 146, 60, 0.12));
  color: #ffe6a7;
  border-radius: 10px;
  padding: 7px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
}

.upload-important-note span {
  display: inline-block;
  padding-left: 100%;
  animation: importantNoteTicker 11s linear infinite;
}

@keyframes importantNoteTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes uploadCardEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.uploads-empty,
.uploads-empty-card {
  color: #bed0f2;
}

.uploads-empty-card {
  border: 1px dashed rgba(144, 180, 255, 0.36);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  grid-column: 1 / -1;
}

.uploads-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(23, 180, 249, 0.6);
  border-radius: 50%;
  background: linear-gradient(135deg, #17b4f9, #9d3df8);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 2200;
  box-shadow: 0 12px 26px rgba(24, 39, 75, 0.62);
  transition: all 0.3s ease;
}

.uploads-fab:hover {
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 16px 32px rgba(23, 180, 249, 0.5), inset 0 0 20px rgba(157, 61, 248, 0.3);
  border-color: rgba(23, 180, 249, 0.9);
}

.uploads-fab.is-disabled,
.uploads-fab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.35);
  box-shadow: 0 8px 18px rgba(8, 15, 30, 0.35);
}

.uploads-fab.is-disabled:hover,
.uploads-fab:disabled:hover {
  transform: none;
  border-color: rgba(23, 180, 249, 0.35);
  box-shadow: 0 8px 18px rgba(8, 15, 30, 0.35);
}

.uploads-fab-menu {
  position: fixed;
  right: 28px;
  bottom: 94px;
  z-index: 2200;
  min-width: 220px;
  background: rgba(17, 20, 37, 0.97);
  border: 2px solid rgba(23, 180, 249, 0.4);
  border-radius: 14px;
  padding: 8px;
  display: grid;
  gap: 6px;
  box-shadow: 0 16px 30px rgba(2, 10, 26, 0.6), 0 0 20px rgba(23, 180, 249, 0.2);
  animation: fabMenuSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.uploads-fab-menu[hidden] {
  display: none !important;
}

@keyframes fabMenuSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.uploads-fab-menu button {
  border: 1.5px solid rgba(23, 180, 249, 0.3);
  border-radius: 10px;
  background: rgba(31, 36, 62, 0.85);
  color: #edf4ff;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
}

.uploads-fab-menu button:hover {
  background: rgba(23, 180, 249, 0.15);
  border-color: rgba(23, 180, 249, 0.7);
  box-shadow: 0 0 12px rgba(23, 180, 249, 0.4), inset 0 0 8px rgba(23, 180, 249, 0.1);
  transform: translateX(4px);
}

.uploads-fab-menu button i {
  margin-right: 8px;
}

@media (max-width: 900px) {
  .uploads-header-card {
    flex-direction: column;
  }

  .uploads-header-card h1 {
    font-size: 1.6rem;
  }

  .uploads-members-head,
  .uploads-grid-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .uploads-path-controls {
    width: 100%;
    justify-content: space-between;
  }

  .member-chip {
    min-width: 210px;
  }

  .uploads-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .upload-item-card {
    min-height: 270px;
  }

  .uploads-fab,
  .uploads-fab-menu {
    right: 14px;
  }
}

@media (max-width: 560px) {
  .uploads-grid {
    grid-template-columns: 1fr;
  }

  .upload-preview {
    height: 160px;
  }

  .upload-card-actions {
    opacity: 1;
  }
}

/* ================= THEME FINAL POLISH ================= */
/* Keep these rules at the end so they override earlier generic styles. */

body.theme-light {
  color: #1f2d45;
}

body.theme-light .sidebar {
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(233, 241, 252, 0.96));
  border-right: 1px solid rgba(124, 146, 186, 0.3);
}

body.theme-light .sidebar h3 {
  background: linear-gradient(90deg, #2f74ff, #7c3aed, #d64e5d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  box-shadow: 0 6px 18px rgba(76, 107, 161, 0.22);
}

body.theme-light .sidebar ul li {
  color: #5d7192;
  text-shadow: none;
}

body.theme-light .sidebar ul li:hover,
body.theme-light .sidebar ul li.active {
  color: #2359a8;
  text-shadow: none;
  background: rgba(76, 123, 211, 0.12);
}

body.theme-light .sidebar ul li::after {
  background: linear-gradient(90deg, #3198ff, #6158e7);
}

body.theme-light .exist-box-card,
body.theme-light .upload-item-card,
body.theme-light .member-chip,
body.theme-light .uploads-fab-menu,
body.theme-light .upload-card-menu,
body.theme-light .Box-card,
body.theme-light .login-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(243, 248, 255, 0.95));
  border-color: rgba(124, 146, 186, 0.34);
  box-shadow: 0 14px 28px rgba(88, 109, 146, 0.2);
}

body.theme-light .box-title,
body.theme-light .section-title,
body.theme-light .headline,
body.theme-light .title,
body.theme-light .member-chip-name,
body.theme-light .uploads-grid-head h2,
body.theme-light .uploads-members-head h2 {
  color: #1f2d45;
}

body.theme-light .box-description,
body.theme-light .members-line,
body.theme-light .content-row,
body.theme-light .upload-meta,
body.theme-light .member-chip-meta,
body.theme-light .uploads-grid-head p,
body.theme-light .uploads-members-head p,
body.theme-light .muted,
body.theme-light .modal-help-text {
  color: #546782;
}

body.theme-light .open-link,
body.theme-light .muted a {
  color: #2a5ea8;
}

body.theme-light .open-link:hover,
body.theme-light .muted a:hover {
  color: #1f4a90;
}

body.theme-light #createBoxForm label,
body.theme-light .Box-card label,
body.theme-light .login-card label,
body.theme-light .modal-form label {
  color: #2f3f5b;
}

body.theme-light #createBoxForm input,
body.theme-light #createBoxForm textarea,
body.theme-light .login-card input,
body.theme-light .login-card select,
body.theme-light .modal-form input,
body.theme-light .modal-form select,
body.theme-light .modal-form textarea,
body.theme-light .settings-grid select {
  background: #ffffff;
  color: #1f2d45;
  border: 1px solid rgba(123, 148, 192, 0.45);
}

body.theme-light #createBoxForm input::placeholder,
body.theme-light #createBoxForm textarea::placeholder,
body.theme-light .login-card input::placeholder,
body.theme-light .modal-form input::placeholder,
body.theme-light .modal-form textarea::placeholder {
  color: rgba(31, 45, 69, 0.45);
}

body.theme-light #createBoxForm input:focus,
body.theme-light #createBoxForm textarea:focus,
body.theme-light .login-card input:focus,
body.theme-light .modal-form input:focus,
body.theme-light .modal-form textarea:focus,
body.theme-light .settings-grid select:focus {
  border-color: #4f78c6;
  box-shadow: 0 0 0 2px rgba(86, 132, 212, 0.22);
}

body.theme-dark #createBoxForm input,
body.theme-dark #createBoxForm textarea,
body.theme-neon #createBoxForm input,
body.theme-neon #createBoxForm textarea {
  color: var(--theme-input-text);
}

.app-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 5000;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(119, 229, 255, 0.45);
  background: linear-gradient(140deg, rgba(18, 23, 50, 0.96), rgba(24, 16, 54, 0.96));
  color: #eaf5ff;
  box-shadow: 0 14px 30px rgba(6, 10, 28, 0.55);
  font-weight: 600;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

body.theme-light .app-toast {
  border-color: rgba(108, 143, 196, 0.42);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.98));
  color: #1f2d45;
  box-shadow: 0 12px 24px rgba(99, 121, 160, 0.22);
}

body.theme-neon .app-toast {
  border-color: rgba(105, 244, 255, 0.58);
  background: linear-gradient(140deg, rgba(17, 14, 48, 0.98), rgba(32, 12, 69, 0.98));
  color: #eaffff;
  box-shadow: 0 0 0 1px rgba(95, 241, 255, 0.22), 0 12px 26px rgba(11, 2, 36, 0.62);
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-bell {
  position: relative;
  border: 1px solid rgba(0, 230, 255, 0.45);
  background: rgba(8, 20, 40, 0.75);
  color: #bdefff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.notification-bell:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(0, 230, 255, 0.25);
}

.notification-bell.has-unread {
  color: #ffdd7c;
  border-color: rgba(255, 199, 78, 0.8);
  box-shadow: 0 0 18px rgba(255, 199, 78, 0.35);
}

.notification-bell-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  background: #ff4d4f;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.notification-panel {
  position: absolute;
  top: 52px;
  right: 0;
  width: min(420px, 92vw);
  max-height: 72vh;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(0, 230, 255, 0.25);
  background: rgba(10, 18, 38, 0.97);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  z-index: 220;
  display: flex;
  flex-direction: column;
}

.notification-panel[hidden] {
  display: none !important;
}

.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-panel-head h4 {
  margin: 0;
  font-size: 0.96rem;
}

.notification-link-btn {
  background: transparent;
  border: none;
  color: #55d8ff;
  cursor: pointer;
  font-size: 0.82rem;
}

.notification-list {
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notification-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding: 14px 8px;
}

.notification-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: rgba(24, 32, 58, 0.86);
}

.notification-item.unread {
  border-color: rgba(255, 199, 78, 0.65);
  background: rgba(56, 42, 12, 0.5);
}

.notification-item-content {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-item-content strong {
  font-size: 0.9rem;
}

.notification-item-content span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.86);
}

.notification-item-content small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
}

.notification-delete-btn {
  align-self: stretch;
  border: 1px solid rgba(255, 107, 107, 0.7);
  border-radius: 8px;
  background: rgba(89, 18, 29, 0.7);
  color: #ffd8d8;
  padding: 6px 9px;
  cursor: pointer;
  font-size: 0.75rem;
  min-width: 74px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.notification-item-actions {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.notification-item:hover .notification-item-actions,
.notification-item:focus-within .notification-item-actions {
  opacity: 1;
  pointer-events: auto;
}

.notification-reply-btn {
  align-self: stretch;
  border: 1px solid rgba(90, 200, 255, 0.72);
  border-radius: 8px;
  background: rgba(17, 74, 108, 0.78);
  color: #d8f5ff;
  padding: 6px 9px;
  cursor: pointer;
  font-size: 0.75rem;
  min-width: 74px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.notification-reply-btn:hover {
  border-color: rgba(90, 200, 255, 0.95);
  background: rgba(17, 92, 136, 0.92);
}

.notification-detail-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-detail-reply-btn {
  min-width: 84px;
}

.notification-delete-btn:hover {
  border-color: rgba(255, 107, 107, 0.95);
  background: rgba(117, 20, 35, 0.92);
}

.notification-ask-toggle {
  margin: 8px auto;
  width: 60%;
  border: 1px solid rgba(90, 200, 255, 0.75);
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(34, 193, 195) 0%, rgb(60, 120, 255) 50%, rgb(253, 187, 45) 100%);
  color: #081126;
  padding: 11px 16px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(46, 149, 255, 0.28),
    0 4px 10px rgba(253, 187, 45, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 6px rgba(0, 0, 0, 0.22);
  transition: all 0.22s ease;
}

.notification-ask-toggle:hover {
  color: #020814;
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(46, 149, 255, 0.34),
    0 8px 14px rgba(253, 187, 45, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 6px rgba(0, 0, 0, 0.25);
}

.notification-ask-form {
  border-top: 1px solid rgba(0, 230, 255, 0.2);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(135deg, rgba(8, 14, 30, 0.4) 0%, rgba(10, 25, 50, 0.2) 100%);
  border-radius: 12px;
  margin: 8px;
  box-shadow: 
    0 8px 32px rgba(0, 230, 255, 0.15),
    0 4px 16px rgba(123, 47, 247, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-ask-form:hover {
  box-shadow: 
    0 12px 48px rgba(0, 230, 255, 0.25),
    0 8px 24px rgba(123, 47, 247, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.notification-ask-form[hidden] {
  display: none !important;
}

.notification-ask-form label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-bottom: 4px;
}

.select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.notification-ask-form select {
  width: 100%;
  border-radius: 10px;
  border: 2px solid rgba(0, 230, 255, 0.35);
  background: linear-gradient(135deg, rgba(8, 14, 30, 0.8) 0%, rgba(10, 25, 50, 0.6) 100%);
  color: #fff;
  padding: 12px 12px 12px 12px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  font-size: 0.9rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #00e6ff;
  font-size: 0.7rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-ask-form select:hover {
  border-color: rgba(0, 230, 255, 0.7);
  background: linear-gradient(135deg, rgba(8, 14, 30, 1) 0%, rgba(10, 25, 50, 0.8) 100%);
  box-shadow: 0 0 12px rgba(0, 230, 255, 0.2);
}

.notification-ask-form select:hover ~ .select-arrow {
  color: #ffdd7c;
  transform: translateY(-50%) scale(1.2);
}

.notification-ask-form select:focus {
  outline: none;
  border-color: #00e6ff;
  box-shadow: 0 0 16px rgba(0, 230, 255, 0.4), inset 0 0 8px rgba(0, 230, 255, 0.1);
  background: linear-gradient(135deg, rgba(8, 14, 30, 1) 0%, rgba(10, 25, 50, 0.9) 100%);
}

.notification-ask-form select:focus ~ .select-arrow {
  color: #ffdd7c;
  transform: translateY(-50%) rotate(180deg);
}

.notification-ask-form select option {
  background: #0a0a0f;
  color: #fff;
  padding: 8px;
}

.notification-ask-form textarea {
  resize: vertical;
  min-height: 58px;
  max-height: 120px;
  border-radius: 10px;
  border: 2px solid rgba(0, 230, 255, 0.35);
  background: linear-gradient(135deg, rgba(8, 14, 30, 0.8) 0%, rgba(10, 25, 50, 0.6) 100%);
  color: #fff;
  padding: 10px 12px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-ask-form textarea:hover {
  border-color: rgba(0, 230, 255, 0.6);
  background: linear-gradient(135deg, rgba(8, 14, 30, 1) 0%, rgba(10, 25, 50, 0.8) 100%);
  box-shadow: 0 0 12px rgba(0, 230, 255, 0.2);
}

.notification-ask-form textarea:focus {
  outline: none;
  border-color: #00e6ff;
  box-shadow: 0 0 16px rgba(0, 230, 255, 0.4), inset 0 0 8px rgba(0, 230, 255, 0.1);
}

@media (max-width: 900px) {
  .notification-delete-btn {
    opacity: 1;
    pointer-events: auto;
  }
}
