/*
  RSA — Glassmorphism Landing
  Trend 2025: soft 3D, frosted glass, subtle aurora, smooth motion, high contrast accessibility.
*/

:root {
  /* Light theme (default) — harmonisasi dengan logo RSA: hijau & emas */
  --bg: #fbfdfb;
  --ink: #172a1a;
  --muted: #4a5b4d;
  --brand: #10b15a; /* hijau utama */
  --brand-2: #34d399; /* hijau muda */
  --accent: #c9a73a; /* emas */
  --glass: rgba(255, 255, 255, 0.75);
  --stroke: rgba(20, 35, 70, 0.08);
  --shadow: 0 10px 30px rgba(20, 35, 70, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --chip-bg: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.95);
  --nav-bg-0: rgba(255, 255, 255, 0.9);
  --nav-bg-1: rgba(255, 255, 255, 0.7);
  --menu-bg: rgba(255, 255, 255, 0.95);
  --radius-xl: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --space: clamp(16px, 2.5vw, 28px);
  --gutter: clamp(20px, 6vw, 56px);
  --max: 1200px;
  --nav-h: 64px;
}

[data-theme="dark"] {
  /* Dark theme */
  --bg: #0b0f14;
  --ink: #e9eef1;
  --muted: #b7c0c2;
  --brand: #22c55e;
  --brand-2: #34d399;
  --accent: #d1ae4c;
  --glass: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.14);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --chip-bg: rgba(255, 255, 255, 0.06);
  --card-bg: rgba(255, 255, 255, 0.04);
  --nav-bg-0: rgba(5, 6, 10, 0.8);
  --nav-bg-1: rgba(5, 6, 10, 0.3);
  --menu-bg: rgba(5, 6, 10, 0.95);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(
      1200px 600px at 20% -10%,
      #eefaf0 0%,
      var(--bg) 60%
    ),
    #fff;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Landing page specific - add padding for fixed navbar */
body:not(.dashboard-layout) {
  padding-top: var(--nav-h);
}

/* Dashboard layout specific */
body.dashboard-layout {
  background: #f0f0f1;
}

[data-theme="dark"] body.dashboard-layout {
  background: #1d2327;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.aurora .blob {
  position: absolute;
  filter: blur(60px);
  opacity: 0.35;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .aurora .blob {
  opacity: 0.55;
  mix-blend-mode: screen;
}
.aurora .b1 {
  background: radial-gradient(closest-side, #22c55e, transparent);
  width: 50vw;
  height: 50vh;
  left: -10vw;
  top: -10vh;
  animation: float 16s ease-in-out infinite;
}
.aurora .b2 {
  background: radial-gradient(closest-side, #34d399, transparent);
  width: 45vw;
  height: 45vh;
  right: -10vw;
  top: 10vh;
  animation: float 20s ease-in-out infinite reverse;
}
.aurora .b3 {
  background: radial-gradient(closest-side, #c9a73a, transparent);
  width: 55vw;
  height: 55vh;
  left: 20vw;
  bottom: -20vh;
  animation: float 24s ease-in-out infinite;
}
.aurora .noise {
  position: absolute;
  inset: -100px;
  opacity: 0.02;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/></filter><rect width="120" height="120" filter="url(%23n)" opacity="0.9"/></svg>');
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  50% {
    transform: translateY(-20px) translateX(10px) scale(1.03);
  }
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.container.narrow {
  width: min(100% - 2 * var(--gutter), 900px);
}
.section {
  padding: calc(var(--space) * 3) 0;
  padding-inline: var(--gutter); /* jarak kiri-kanan agar tidak mepet */
}
#top,
.section {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}
.glass {
  backdrop-filter: blur(18px) saturate(150%);
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  transition: all 0.25s ease;
}
.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #ffffff;
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(123, 181, 255, 0.2);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space);
  padding: 12px var(--gutter);
  background: linear-gradient(to bottom, var(--nav-bg-0), var(--nav-bg-1));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.nav-links {
  display: inline-flex;
  gap: 18px;
  align-items: center;
}
.nav-links a {
  opacity: 0.85;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-links a:hover {
  background: rgba(20, 35, 70, 0.06);
  opacity: 1;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--stroke);
  background: var(--chip-bg);
  color: inherit;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.mode-toggle .sun {
  display: inline;
}
.mode-toggle .moon {
  display: none;
}
[data-theme="dark"] .mode-toggle .sun {
  display: none;
}
[data-theme="dark"] .mode-toggle .moon {
  display: inline;
}
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--ink);
  border: none;
  font-size: 20px;
}

/* Hide mobile actions on desktop */
.mobile-actions {
  display: none !important;
}

/* Hide mobile mode toggle on desktop */
.mobile-mode-toggle {
  display: none !important;
}

/* Hide mobile buttons on desktop */
.mobile-cta {
  display: none !important;
}

/* Desktop navigation already defined above */

.hero {
  padding: calc(var(--space) * 4) 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: calc(var(--space) * 2);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 16px;
}
.hero .accent {
  background: linear-gradient(
    90deg,
    var(--brand),
    var(--accent),
    var(--brand-2)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  margin: 0 0 18px;
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 24px;
}
.highlights {
  display: flex;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  opacity: 0.9;
  flex-wrap: wrap;
}
.highlights li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--chip-bg);
}
.hero-visual {
  position: relative;
}
.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  background: radial-gradient(
    80% 100% at 50% 0%,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.4)
  );
  box-shadow: var(--shadow);
}

.about .card {
  padding: calc(var(--space) * 1.5);
}
.about h2,
.facilities h2,
.location h2,
.support h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 12px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space);
  margin-top: var(--space);
}
.feature {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--card-bg);
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.feature p {
  margin: 0;
  color: var(--muted);
}

.facilities .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space);
  margin-top: var(--space);
}
.facilities .item {
  padding: var(--space);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.facilities .item i {
  font-size: 28px;
  color: var(--brand);
  margin-bottom: 8px;
}
.facilities .item h3 {
  margin: 6px 0;
}
.facilities .item p {
  margin: 0;
  color: var(--muted);
}

.location .card {
  padding: calc(var(--space) * 1.5);
}
.criteria .criteria-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space);
  align-items: center;
}
.criteria .criteria-card {
  padding: calc(var(--space) * 1.5);
}
.criteria .criteria-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space);
}
.criteria ol {
  margin: 8px 0 0;
  padding-left: 18px;
}
.criteria h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.criteria-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  background: var(--card-bg);
}

@media (max-width: 1024px) {
  .criteria .criteria-grid {
    grid-template-columns: 1fr;
  }
  .criteria .criteria-columns {
    grid-template-columns: 1fr;
  }
}
.address {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.support .support-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space);
}
.support .support-card {
  padding: calc(var(--space) * 1.5);
}
.support .support-card.alt h3 {
  margin-top: 0;
}
.note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

.footer {
  border-top: 1px solid rgba(20, 35, 70, 0.08);
  padding: calc(var(--space) * 2) 0;
  background: linear-gradient(to top, rgba(20, 35, 70, 0.04), transparent);
}
[data-theme="dark"] .footer {
  border-top-color: rgba(255, 255, 255, 0.06);
  background: linear-gradient(to top, rgba(255, 255, 255, 0.02), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space);
  align-items: center;
}
.footer .info p {
  margin: 0;
  color: var(--muted);
}
.footer .legal {
  justify-self: end;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .support .support-grid {
    grid-template-columns: 1fr;
  }
  .facilities .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    grid-template-columns: 1fr auto;
    padding: 8px var(--gutter);
    min-height: 60px;
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--stroke);
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
  }

  .brand span {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: 100%;
    padding: 12px;
    background: var(--menu-bg);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 50;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-cta {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex;
    padding: 8px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
  }

  .nav-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  /* Mobile menu items */
  .nav-links a {
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
  }

  /* Mobile actions */
  .mobile-actions {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--stroke);
  }

  .mobile-cta {
    text-align: center;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
  }

  .mobile-cta.primary {
    background: var(--accent) !important;
    color: white !important;
  }

  .mobile-cta.ghost {
    border: 1px solid var(--stroke) !important;
    color: var(--ink) !important;
  }

  /* Mobile mode toggle */
  .mobile-mode-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--stroke);
    border-radius: 8px;
    background: var(--chip-bg);
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
  }

  .mobile-mode-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  [data-theme="dark"] .mobile-mode-toggle .sun {
    display: none;
  }
  [data-theme="light"] .mobile-mode-toggle .moon {
    display: none;
  }

  /* Hero section adjustment for fixed navbar */
  .hero {
    padding-top: calc(60px + var(--space) * 2);
  }
  .hero {
    padding: calc(var(--space) * 3) 0;
  }
  .facilities .grid {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer .legal {
    justify-self: center;
  }
}

/* Form Styles */
.form-hero {
  padding: calc(var(--space) * 2) 0;
}
.form-header {
  text-align: center;
  margin-bottom: var(--space);
}
.form-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 12px;
}

.registration-form {
  padding: calc(var(--space) * 2);
  max-width: none;
}
.form-group-title {
  margin: calc(var(--space) * 1.5) 0 var(--space);
}
.form-group-title h2,
.form-group-title h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--brand);
}
.form-group-title i {
  font-size: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space);
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.required {
  color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--chip-bg);
  color: var(--ink);
  font-size: 16px;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-group input[type="file"] {
  padding: 8px 12px;
  cursor: pointer;
}

.file-info {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: calc(var(--space) * 1.5);
  padding-top: var(--space);
  border-top: 1px solid var(--stroke);
}

/* Modal Styles */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(4px);
}

.modal-content {
  max-width: 480px;
  margin: var(--space);
  padding: calc(var(--space) * 1.5);
  text-align: center;
}

.modal-content h3 {
  margin: 0 0 12px;
}
.modal-content p {
  margin: 0 0 18px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--stroke);
  border-top: 4px solid var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Thank You Page Styles */
.thank-you {
  padding: calc(var(--space) * 4) 0;
}
.thank-you-card {
  padding: calc(var(--space) * 2);
  text-align: center;
}
.thank-you-icon {
  font-size: 64px;
  color: var(--brand);
  margin-bottom: var(--space);
}
.thank-you h1 {
  margin: 0 0 16px;
}

.next-steps,
.contact-info {
  margin: calc(var(--space) * 1.5) 0;
  text-align: left;
}
.next-steps h3,
.contact-info h3 {
  margin: 0 0 12px;
  color: var(--brand);
}
.next-steps ol {
  padding-left: 20px;
}
.next-steps li {
  margin-bottom: 8px;
}

.contact-methods {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.back-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: calc(var(--space) * 1.5);
}

/* Documents Checklist */
.documents-checklist {
  display: grid;
  gap: 12px;
  margin: var(--space) 0;
}
.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--chip-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
}
.checklist-item i {
  color: var(--brand);
  font-size: 18px;
  min-width: 20px;
}

/* Alert styles */
.alert {
  border-radius: var(--radius-sm);
  font-size: 14px;
  padding: 12px 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.alert-warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

.alert-info {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

/* Login & Dashboard Styles */
.login-hero {
  padding: calc(var(--space) * 2) var(--gutter);
  text-align: center;
}

.login-header {
  max-width: 480px;
  margin: 0 auto;
}

.login-icon {
  width: 80px;
  height: 80px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto calc(var(--space) * 1.5);
  font-size: 32px;
  color: white;
}

.login-form {
  max-width: 480px;
  margin: 0 auto;
  padding: calc(var(--space) * 1.5);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 16px;
  color: var(--muted);
  font-size: 18px;
  z-index: 2;
}

.input-with-icon input {
  padding-left: 48px;
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.password-toggle:hover {
  color: var(--brand);
  background: var(--chip-bg);
}

.security-info {
  margin: calc(var(--space) * 1.5) 0;
  padding: var(--space);
  background: var(--chip-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.security-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.security-item:last-child {
  margin-bottom: 0;
}

.security-item i {
  color: var(--brand);
  font-size: 16px;
  min-width: 20px;
}

.login-help {
  text-align: center;
  margin-top: var(--space);
  padding-top: var(--space);
  border-top: 1px solid var(--stroke);
  font-size: 14px;
  color: var(--muted);
}

.full-width {
  width: 100%;
}

/* Dashboard Styles */
.dashboard-header {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--stroke);
  padding: var(--space) var(--gutter);
  margin-bottom: calc(var(--space) * 2);
}

.dashboard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 24px;
  color: var(--ink);
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--stroke);
  object-fit: cover;
}

.admin-info {
  display: flex;
  flex-direction: column;
}

.admin-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

.admin-role {
  color: var(--muted);
  font-size: 12px;
  text-transform: capitalize;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space);
  margin-bottom: calc(var(--space) * 2);
}

.stat-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: var(--space);
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.stat-detail {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

/* Charts Section */
.charts-section {
  margin: calc(var(--space) * 2) 0;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space);
}

.chart-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
}

.chart-header {
  padding: var(--space);
  background: var(--chip-bg);
  border-bottom: 1px solid var(--stroke);
}

.chart-header h3 {
  margin: 0;
  color: var(--brand);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-body {
  padding: var(--space);
  height: 300px;
  position: relative;
}

.chart-body canvas {
  max-width: 100%;
  height: 100% !important;
}

.data-table {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: calc(var(--space) * 2);
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space);
  border-bottom: 1px solid var(--stroke);
  background: var(--chip-bg);
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.table-filters {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space);
  flex-wrap: wrap;
}

.filter-input {
  padding: 6px 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--glass);
  color: var(--ink);
  font-size: 13px;
  min-width: 120px;
}

.bulk-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--amber);
  border-radius: var(--radius-sm);
  color: #8b5a00;
  font-size: 14px;
  justify-content: flex-end;
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.storage-warning {
  background: var(--amber);
  color: #8b5a00;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: var(--space);
  display: flex;
  align-items: center;
  gap: 8px;
}

.storage-critical {
  background: #fee;
  color: #dc2626;
}

/* Responsive Tables */
.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--stroke);
}

th {
  background: var(--chip-bg);
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

td {
  color: var(--muted);
  font-size: 14px;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-approved {
  background: #d4edda;
  color: #155724;
}

.status-rejected {
  background: #f8d7da;
  color: #721c24;
}

/* Select Checkbox */
.select-checkbox {
  transform: scale(1.2);
  cursor: pointer;
}

/* Button Variants */
.btn.success {
  background: #16a34a;
  color: white;
  border: 1px solid #16a34a;
}

.btn.success:hover {
  background: #15803d;
  border-color: #15803d;
}

.btn.warning {
  background: #f59e0b;
  color: white;
  border: 1px solid #f59e0b;
}

.btn.warning:hover {
  background: #d97706;
  border-color: #d97706;
}

.btn.danger {
  background: #dc2626;
  color: white;
  border: 1px solid #dc2626;
}

.btn.danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

/* Enhanced Modal Styles */
.modal-content.large {
  max-width: 900px;
  width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space);
  border-bottom: 1px solid var(--stroke);
}

.modal-body {
  padding: var(--space);
  max-height: calc(90vh - 120px);
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: var(--space);
  border-top: 1px solid var(--stroke);
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--chip-bg);
  color: var(--ink);
}

/* Detail Grid */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space);
  margin-bottom: var(--space);
}

.detail-section {
  background: var(--chip-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: var(--space);
}

.detail-section h4 {
  margin: 0 0 var(--space) 0;
  color: var(--brand);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-item {
  display: flex;
  margin-bottom: 8px;
}

.detail-label {
  font-weight: 600;
  color: var(--ink);
  min-width: 120px;
  flex-shrink: 0;
}

.detail-value {
  color: var(--muted);
  flex: 1;
}

/* File Preview */
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: var(--space);
}

.file-item {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.file-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.file-thumbnail {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--chip-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--muted);
  cursor: pointer;
}

.file-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.file-name {
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
  margin-bottom: 4px;
}

.file-size {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.file-actions {
  display: flex;
  gap: 4px;
  justify-content: center;
}

/* Action Buttons Grid */
.action-buttons {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.action-buttons .btn {
  padding: 4px 8px;
  font-size: 11px;
  min-width: 32px;
}

/* Form Control */
.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--glass);
  color: var(--ink);
  font-family: inherit;
  resize: vertical;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(84, 51, 255, 0.1);
}

/* WordPress Style Dashboard Layout */
.wp-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 0;
  margin-top: 0;
}

.wp-sidebar {
  width: 280px;
  background: #23282d;
  border-right: 1px solid #32373c;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.wp-sidebar.collapsed {
  transform: translateX(-280px);
}

.wp-logo {
  padding: 20px 24px;
  background: #1d2327;
  border-bottom: 1px solid #32373c;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wp-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.wp-logo span {
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
}

.wp-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-menu .menu-item {
  border-bottom: 1px solid #32373c;
}

.wp-menu .menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  color: #c3c4c7;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.wp-menu .menu-item a:hover {
  background: #32373c;
  color: #00a0d2;
}

.wp-menu .menu-item.active a {
  background: #0073aa;
  color: #ffffff;
}

.wp-menu .menu-item i {
  width: 20px;
  text-align: center;
}

.wp-main {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

.wp-sidebar.collapsed + .wp-main {
  margin-left: 0;
}

.wp-navbar {
  background: #ffffff;
  border-bottom: 1px solid #dcdcde;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
}

[data-theme="dark"] .wp-navbar {
  background: #1d2327;
  border-bottom-color: #32373c;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: #50575e;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.sidebar-toggle:hover {
  background: #f0f0f1;
  color: #1d2327;
}

[data-theme="dark"] .sidebar-toggle {
  color: #c3c4c7;
}

[data-theme="dark"] .sidebar-toggle:hover {
  background: #32373c;
  color: #ffffff;
}

.page-title {
  margin: 0;
  font-size: 20px;
  color: #1d2327;
  font-weight: 600;
}

[data-theme="dark"] .page-title {
  color: #ffffff;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Notification System */
.notification-wrapper {
  position: relative;
}

.notification-btn {
  background: none;
  border: none;
  color: #50575e;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
  position: relative;
}

.notification-btn:hover {
  background: #f0f0f1;
  color: #1d2327;
}

[data-theme="dark"] .notification-btn {
  color: #c3c4c7;
}

[data-theme="dark"] .notification-btn:hover {
  background: #32373c;
  color: #ffffff;
}

.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #d63638;
  color: #ffffff;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  min-width: 16px;
  text-align: center;
}

.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 320px;
  max-height: 400px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1001;
  overflow: hidden;
}

[data-theme="dark"] .notification-dropdown {
  background: #1d2327;
  border-color: #32373c;
}

.notification-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-header {
  padding: 16px 20px;
  background: #f9f9f9;
  border-bottom: 1px solid #dcdcde;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="dark"] .notification-header {
  background: #23282d;
  border-bottom-color: #32373c;
}

.notification-header h4 {
  margin: 0;
  color: #1d2327;
  font-size: 16px;
  font-weight: 600;
}

[data-theme="dark"] .notification-header h4 {
  color: #ffffff;
}

.clear-all-btn {
  background: none;
  border: none;
  color: #0073aa;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.clear-all-btn:hover {
  background: #f0f6fc;
}

[data-theme="dark"] .clear-all-btn {
  color: #00a0d2;
}

[data-theme="dark"] .clear-all-btn:hover {
  background: #0a2e1c;
}

.notification-list {
  max-height: 300px;
  overflow-y: auto;
}

.notification-item {
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f1;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.notification-item:hover {
  background: #f9f9f9;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  background: #f0f6fc;
  border-left: 3px solid #0073aa;
}

[data-theme="dark"] .notification-item {
  border-bottom-color: #32373c;
}

[data-theme="dark"] .notification-item:hover {
  background: #23282d;
}

[data-theme="dark"] .notification-item.unread {
  background: #0a2e1c;
  border-left-color: #00a0d2;
}

.notification-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0073aa;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  color: #1d2327;
  font-size: 14px;
  margin-bottom: 4px;
}

[data-theme="dark"] .notification-title {
  color: #ffffff;
}

.notification-message {
  color: #50575e;
  font-size: 13px;
  margin-bottom: 4px;
}

[data-theme="dark"] .notification-message {
  color: #c3c4c7;
}

.notification-time {
  color: #8c8f94;
  font-size: 12px;
}

.no-notifications {
  padding: 40px 20px;
  text-align: center;
  color: #8c8f94;
}

.no-notifications i {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}

.profile-dropdown {
  position: relative;
}

.profile-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.profile-btn:hover {
  background: #f0f0f1;
}

[data-theme="dark"] .profile-btn:hover {
  background: #32373c;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-name {
  color: #1d2327;
  font-weight: 500;
  font-size: 14px;
}

[data-theme="dark"] .profile-name {
  color: #ffffff;
}

.profile-btn i {
  color: #50575e;
  font-size: 12px;
}

[data-theme="dark"] .profile-btn i {
  color: #c3c4c7;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1001;
}

[data-theme="dark"] .dropdown-menu {
  background: #1d2327;
  border-color: #32373c;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 16px;
  border-bottom: 1px solid #f0f0f1;
  display: flex;
  align-items: center;
  gap: 12px;
}

[data-theme="dark"] .dropdown-header {
  border-bottom-color: #32373c;
}

.dropdown-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-name {
  font-weight: 600;
  color: #1d2327;
  font-size: 16px;
}

[data-theme="dark"] .dropdown-name {
  color: #ffffff;
}

.dropdown-role {
  color: #50575e;
  font-size: 14px;
}

[data-theme="dark"] .dropdown-role {
  color: #c3c4c7;
}

.dropdown-divider {
  height: 1px;
  background: #f0f0f1;
  margin: 0;
}

[data-theme="dark"] .dropdown-divider {
  background: #32373c;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #50575e;
  text-decoration: none;
  transition: background 0.2s ease;
}

.dropdown-item:hover {
  background: #f0f0f1;
  color: #0073aa;
}

[data-theme="dark"] .dropdown-item {
  color: #c3c4c7;
}

[data-theme="dark"] .dropdown-item:hover {
  background: #32373c;
  color: #00a0d2;
}

.dropdown-item i {
  width: 16px;
  text-align: center;
}

.wp-content {
  flex: 1;
  padding: 24px;
  background: #f0f0f1;
}

[data-theme="dark"] .wp-content {
  background: #1d2327;
}

/* Dashboard Footer */
.dashboard-footer {
  background: #ffffff;
  border-top: 1px solid #dcdcde;
  padding: 16px 24px;
  text-align: center;
  margin-top: auto;
}

[data-theme="dark"] .dashboard-footer {
  background: #1d2327;
  border-top-color: #32373c;
}

.footer-content p {
  margin: 0;
  color: #50575e;
  font-size: 14px;
}

[data-theme="dark"] .footer-content p {
  color: #c3c4c7;
}

/* Dashboard Data Table Styles */
.data-table {
  background: #ffffff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}

[data-theme="dark"] .data-table {
  background: #1d2327;
  border-color: #32373c;
}

.table-header {
  padding: 16px 20px;
  background: #f9f9f9;
  border-bottom: 1px solid #dcdcde;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

[data-theme="dark"] .table-header {
  background: #23282d;
  border-bottom-color: #32373c;
}

.table-header h3 {
  margin: 0;
  color: #1d2327;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .table-header h3 {
  color: #ffffff;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.table-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-input {
  padding: 8px 12px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  font-size: 14px;
  background: #ffffff;
  color: #1d2327;
}

[data-theme="dark"] .filter-input {
  background: #32373c;
  border-color: #50575e;
  color: #ffffff;
}

.table-responsive {
  overflow-x: auto;
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-responsive th,
.table-responsive td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f0f0f1;
}

[data-theme="dark"] .table-responsive th,
[data-theme="dark"] .table-responsive td {
  border-bottom-color: #32373c;
}

.table-responsive th {
  background: #f9f9f9;
  font-weight: 600;
  color: #1d2327;
  position: sticky;
  top: 0;
  z-index: 10;
}

[data-theme="dark"] .table-responsive th {
  background: #23282d;
  color: #ffffff;
}

.table-responsive tbody tr:hover {
  background: #f9f9f9;
}

[data-theme="dark"] .table-responsive tbody tr:hover {
  background: #23282d;
}

.action-buttons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.btn-small {
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  transition: all 0.2s ease;
}

.btn-small.ghost {
  background: transparent;
  color: #50575e;
  border: 1px solid #dcdcde;
}

.btn-small.ghost:hover {
  background: #f0f0f1;
  color: #1d2327;
}

.btn-small.primary {
  background: #0073aa;
  color: #ffffff;
}

.btn-small.primary:hover {
  background: #005a87;
}

.btn-small.success {
  background: #00a32a;
  color: #ffffff;
}

.btn-small.success:hover {
  background: #007a1f;
}

.btn-small.warning {
  background: #dba617;
  color: #ffffff;
}

.btn-small.warning:hover {
  background: #a08212;
}

.btn-small.danger {
  background: #d63638;
  color: #ffffff;
}

.btn-small.danger:hover {
  background: #b32d2e;
}

[data-theme="dark"] .btn-small.ghost {
  color: #c3c4c7;
  border-color: #50575e;
}

[data-theme="dark"] .btn-small.ghost:hover {
  background: #32373c;
  color: #ffffff;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending {
  background: #fef3cd;
  color: #856404;
}

.status-approved {
  background: #d1edff;
  color: #0c5aa6;
}

.status-rejected {
  background: #f8d7da;
  color: #721c24;
}

[data-theme="dark"] .status-pending {
  background: #856404;
  color: #fef3cd;
}

[data-theme="dark"] .status-approved {
  background: #0c5aa6;
  color: #d1edff;
}

[data-theme="dark"] .status-rejected {
  background: #721c24;
  color: #f8d7da;
}

/* Statistics Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

[data-theme="dark"] .stat-card {
  background: #1d2327;
  border-color: #32373c;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #0073aa;
  margin-bottom: 8px;
}

.stat-label {
  color: #50575e;
  font-size: 14px;
  font-weight: 500;
}

[data-theme="dark"] .stat-label {
  color: #c3c4c7;
}

.stat-detail {
  color: #8c8f94;
  font-size: 12px;
  margin-top: 4px;
}

/* Charts Section */
.charts-section {
  margin-bottom: 32px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.chart-card {
  background: #ffffff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  overflow: hidden;
}

[data-theme="dark"] .chart-card {
  background: #1d2327;
  border-color: #32373c;
}

.chart-header {
  padding: 16px 20px;
  background: #f9f9f9;
  border-bottom: 1px solid #dcdcde;
}

[data-theme="dark"] .chart-header {
  background: #23282d;
  border-bottom-color: #32373c;
}

.chart-header h3 {
  margin: 0;
  color: #1d2327;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .chart-header h3 {
  color: #ffffff;
}

.chart-body {
  padding: 20px;
  height: 300px;
  position: relative;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .wp-sidebar {
    transform: translateX(-280px);
  }

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

  .wp-main {
    margin-left: 0;
  }

  .page-title {
    font-size: 18px;
  }

  .profile-name {
    display: none;
  }

  .table-header {
    flex-direction: column;
    align-items: stretch;
  }

  .table-actions {
    justify-content: center;
  }

  .action-buttons {
    flex-direction: column;
    gap: 2px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.modal-content {
  background: #ffffff;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

[data-theme="dark"] .modal-content {
  background: #1d2327;
}

.modal-content.large {
  max-width: 900px;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #dcdcde;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="dark"] .modal-header {
  border-bottom-color: #32373c;
}

.modal-header h3 {
  margin: 0;
  color: #1d2327;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .modal-header h3 {
  color: #ffffff;
}

.modal-close {
  background: none;
  border: none;
  color: #50575e;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: #f0f0f1;
  color: #1d2327;
}

[data-theme="dark"] .modal-close {
  color: #c3c4c7;
}

[data-theme="dark"] .modal-close:hover {
  background: #32373c;
  color: #ffffff;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid #dcdcde;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

[data-theme="dark"] .modal-footer {
  border-top-color: #32373c;
}

/* Detail Modal Specific Styles */
.detail-section {
  margin-bottom: 24px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section h4 {
  margin: 0 0 16px 0;
  color: #0073aa;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dcdcde;
}

[data-theme="dark"] .detail-section h4 {
  color: #00a0d2;
  border-bottom-color: #32373c;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-weight: 600;
  color: #1d2327;
  font-size: 14px;
}

[data-theme="dark"] .detail-label {
  color: #ffffff;
}

.detail-value {
  color: #50575e;
  font-size: 14px;
  word-break: break-word;
}

[data-theme="dark"] .detail-value {
  color: #c3c4c7;
}

/* Files Grid */
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.file-item {
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  background: #f9f9f9;
}

[data-theme="dark"] .file-item {
  border-color: #32373c;
  background: #23282d;
}

.file-thumbnail {
  width: 60px;
  height: 60px;
  margin: 0 auto 8px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dcdcde;
  cursor: pointer;
}

[data-theme="dark"] .file-thumbnail {
  background: #32373c;
}

.file-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-thumbnail i {
  font-size: 24px;
  color: #50575e;
}

[data-theme="dark"] .file-thumbnail i {
  color: #c3c4c7;
}

.file-name {
  font-size: 12px;
  font-weight: 500;
  color: #1d2327;
  margin-bottom: 4px;
  word-break: break-word;
}

[data-theme="dark"] .file-name {
  color: #ffffff;
}

.file-size {
  font-size: 11px;
  color: #8c8f94;
  margin-bottom: 8px;
}

.file-actions {
  display: flex;
  gap: 4px;
  justify-content: center;
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f0f0f1;
  border-top: 4px solid #0073aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

[data-theme="dark"] .loading-spinner {
  border-color: #32373c;
  border-top-color: #00a0d2;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Alert Styles */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.alert-success {
  background: #d1edff;
  color: #0c5aa6;
  border: 1px solid #b3d4fc;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f1aeb5;
}

.alert-warning {
  background: #fef3cd;
  color: #856404;
  border: 1px solid #fce788;
}

[data-theme="dark"] .alert-success {
  background: #0c5aa6;
  color: #d1edff;
  border-color: #005a87;
}

[data-theme="dark"] .alert-error {
  background: #721c24;
  color: #f8d7da;
  border-color: #b32d2e;
}

[data-theme="dark"] .alert-warning {
  background: #856404;
  color: #fef3cd;
  border-color: #a08212;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
}

[data-theme="dark"] .pagination {
  background: #1d2327;
  border-color: #32373c;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination button:disabled:hover {
  background: transparent;
  color: inherit;
}

/* Bulk Actions */
.bulk-actions {
  padding: 12px 20px;
  background: #f0f6fc;
  border-bottom: 1px solid #dcdcde;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

[data-theme="dark"] .bulk-actions {
  background: #0a2e1c;
  border-bottom-color: #32373c;
}

#selectedCount {
  color: #0073aa;
  font-weight: 500;
  margin-right: auto;
}

[data-theme="dark"] #selectedCount {
  color: #00a0d2;
}

/* Storage Warning */
.storage-warning {
  padding: 12px 16px;
  background: #fef3cd;
  color: #856404;
  border: 1px solid #fce788;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.storage-warning.storage-critical {
  background: #f8d7da;
  color: #721c24;
  border-color: #f1aeb5;
}

[data-theme="dark"] .storage-warning {
  background: #856404;
  color: #fef3cd;
  border-color: #a08212;
}

[data-theme="dark"] .storage-warning.storage-critical {
  background: #721c24;
  color: #f8d7da;
  border-color: #b32d2e;
}

.footer-content strong {
  color: var(--brand);
}

/* Profile Page Styles */
.profile-photo-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: calc(var(--space) * 2);
}

.current-photo {
  position: relative;
  cursor: pointer;
}

.profile-photo-small {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #dcdcde;
}

[data-theme="dark"] .profile-photo-small {
  border-color: #32373c;
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 12px;
  gap: 4px;
}

.current-photo:hover .photo-overlay {
  opacity: 1;
}

.readonly-input {
  background: var(--chip-bg) !important;
  color: var(--muted) !important;
  cursor: not-allowed;
}

.form-help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

.form-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  font-weight: normal;
}

.account-info {
  background: var(--chip-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: var(--space);
  margin-bottom: calc(var(--space) * 2);
}

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

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  font-weight: 600;
  color: var(--ink);
}

.info-value {
  color: var(--muted);
}

.status-active {
  color: #16a34a !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-active i {
  font-size: 8px;
}

/* Detail Page Styles */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--space) * 2);
  padding: var(--space);
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.detail-id h2 {
  margin: 0;
  color: var(--brand);
  font-size: 24px;
}

.detail-actions {
  display: flex;
  gap: 8px;
}

.detail-content {
  display: grid;
  gap: var(--space);
}

.detail-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  padding: var(--space);
  background: var(--chip-bg);
  border-bottom: 1px solid var(--stroke);
}

.card-header h3 {
  margin: 0;
  color: var(--brand);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: var(--space);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

.detail-value {
  color: var(--muted);
  font-size: 16px;
  word-break: break-word;
}

.no-files {
  text-align: center;
  padding: calc(var(--space) * 2);
  color: var(--muted);
}

.no-files i {
  font-size: 48px;
  margin-bottom: var(--space);
  display: block;
}

/* Responsive Detail */
@media (max-width: 768px) {
  .detail-header {
    flex-direction: column;
    gap: var(--space);
    text-align: center;
  }

  .detail-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Form Adjustments */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-direction: column;
  }
  .registration-form {
    padding: var(--space);
  }
  .contact-methods,
  .back-actions {
    flex-direction: column;
  }
}

/* Accessibility focus */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 8px;
}
