/* ===================================================
   COMPONENTS.CSS — REUSABLE UI COMPONENTS & THEMES
   MD Saib Hossain Portfolio
   =================================================== */

/* ===== GLASSMORPHIC CARDS ===== */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
  border-radius: inherit;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), 0 0 20px var(--primary-glow);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Card variants */
.glass-card-sm { padding: 1.25rem; border-radius: var(--radius-md); }
.glass-card-lg { padding: 2.5rem; border-radius: var(--radius-xl); }

/* ===== GRADIENT TEXT ===== */
.gradient-text,
.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-weight: 700;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1.5px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gradient-main);
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
  filter: brightness(1.08);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: #ffffff !important;
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== NAVIGATION HEADER ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  padding: 0.75rem 0;
  transition: background var(--transition-normal), padding var(--transition-normal), box-shadow var(--transition-normal);
}

.nav.scrolled {
  padding: 0.55rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 2px 10px var(--primary-glow);
  transition: transform var(--transition-normal);
}

.nav-logo:hover .logo-badge {
  transform: rotate(-8deg) scale(1.08);
}

.logo-name {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.12rem;
}

/* Desktop Menu Wrapper */
.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.86rem;
  padding: 0.42rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--badge-bg);
}

.nav-links a.active {
  color: var(--primary);
  background: var(--badge-bg);
  font-weight: 600;
}

[data-theme="dark"] .nav-links a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

[data-theme="dark"] .nav-links a.active {
  color: var(--primary-light);
  background: var(--badge-bg);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2.5px;
  background: var(--gradient-main);
  border-radius: 2px;
}

/* Nav Actions (CV + Theme + Toggle) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cv-view {
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
}

.nav-cv-view:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--badge-bg);
  transform: translateY(-1px);
}

.nav-cv-download {
  background: var(--gradient-main);
  color: #ffffff !important;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.nav-cv-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--primary-glow);
  filter: brightness(1.1);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
  padding: 0;
  position: relative;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--badge-bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.theme-toggle-btn .icon-sun {
  display: none;
}

.theme-toggle-btn .icon-moon {
  display: block;
  color: #38bdf8;
}

[data-theme="light"] .theme-toggle-btn .icon-sun {
  display: block;
  color: #f59e0b;
}

[data-theme="light"] .theme-toggle-btn .icon-moon {
  display: none;
}

.theme-btn-label {
  display: none;
}

/* Mobile Top Actions (Theme Toggle + Hamburger) */
.nav-actions-mobile-wrap {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

.mobile-theme-btn {
  display: inline-flex;
}

/* Hamburger Toggle Button */
.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  transition: all var(--transition-normal);
  color: var(--text);
}

.nav-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: currentColor;
  left: 0;
  transition: transform var(--transition-normal);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Drawer Header & Elements */
.mobile-drawer-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.drawer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.drawer-close-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: all var(--transition-fast);
}

.drawer-close-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--surface-hover);
}

.mobile-nav-arrow {
  display: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

/* Backdrop Overlay */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile & iPad Navigation Drawer (up to 992px) */
@media (max-width: 992px) {
  .nav-actions-mobile-wrap {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-drawer-header {
    display: flex;
  }

  .mobile-nav-arrow {
    display: inline-block;
  }

  .nav-menu-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: min(88vw, 380px);
    background: var(--surface-card);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.25rem 2.5rem;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform var(--transition-smooth), visibility var(--transition-smooth);
    visibility: hidden;
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }

  .nav-menu-wrapper.active {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0.45rem;
    align-items: stretch;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    padding: 0.85rem 1.15rem;
    font-size: 1.02rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    color: var(--text);
  }

  .nav-links a:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    color: var(--accent);
  }

  .nav-links a:hover .mobile-nav-arrow {
    transform: translateX(4px);
    color: var(--accent);
  }

  .nav-links a.active {
    background: var(--badge-bg);
    border-color: var(--primary);
    color: var(--primary-light);
  }

  [data-theme="light"] .nav-links a.active {
    color: var(--primary);
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
  }

  .nav-actions .nav-cv-btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    min-height: 48px;
    font-size: 0.98rem;
    border-radius: var(--radius-md);
  }

  .nav-actions .desktop-theme-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: var(--radius-md);
  }

  .nav-actions .desktop-theme-btn .theme-btn-label {
    display: inline;
  }
}

/* Touch Device Optimization for Buttons */
@media (max-width: 768px) {
  .btn {
    min-height: 46px;
    padding: 0.7rem 1.35rem;
    font-size: 0.95rem;
  }

  .btn-sm {
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .logo-name {
    font-size: 1.05rem;
  }
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  padding: 4.5rem 0 2.5rem 0;
  color: var(--text-muted);
  margin-top: 6rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-tagline {
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 380px;
}

.footer-social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.footer-social-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-title {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-list a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-list a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-bottom .back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-bottom .back-to-top:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 3.5rem 0 2rem 0;
    margin-top: 4rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

/* ===== BADGES & TAGS ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.badge-accent {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.3);
  color: #06b6d4;
}

.tag, .tech-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--surface-active);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.tag:hover, .tech-tag:hover {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px var(--primary-glow);
}

/* ===== STATUS BADGE & PULSE DOT ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: #10b981;
  opacity: 0.5;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* ===== PROGRESS BARS ===== */
.progress-container {
  margin: 1rem 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.progress-value {
  font-weight: 700;
  color: var(--primary-light);
  font-family: var(--font-mono);
}

[data-theme="light"] .progress-value {
  color: var(--primary);
}

.progress-bar {
  height: 8px;
  background: var(--surface-active);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

.progress-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shimmer-bar 2.5s infinite;
}

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

/* ===== FILTER BARS ===== */
.filter-bar, .project-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  margin: 2rem 0;
}

.filter-btn {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--primary);
  background: var(--badge-bg);
  border-color: var(--badge-border);
}

[data-theme="dark"] .filter-btn:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: transparent;
}

.filter-btn.active {
  background: var(--gradient-main) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* ===== FORM ELEMENTS ===== */
.form-card {
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface-input);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

/* ===== MODAL OVERLAYS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-content {
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--surface-active);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--primary);
  transform: rotate(90deg);
}

/* ===== TABLE STYLES ===== */
.stats-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.stats-table th {
  background: var(--surface-active);
  color: var(--text);
  padding: 1.1rem 1.5rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.stats-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.stats-table tr:last-child td {
  border-bottom: none;
}

.stats-table tr:hover td {
  background: var(--surface-hover);
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .modal-content {
    padding: 1.75rem 1.25rem;
  }
}