:root {
  color-scheme: dark;
  --glass-surface: rgba(255, 255, 255, 0.12);
  --glass-surface-strong: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
  --text-main: #fff;
  --text-muted: rgba(255, 255, 255, 0.82);
  --glass-blur: 16px;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #16202a; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text-main) !important;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.30)),
    url("https://lh3.googleusercontent.com/d/233210") center / cover fixed no-repeat;
}
#landingPage, #dashboardPage { min-height: 100vh; }
.hero-section {
  padding: clamp(3.5rem, 9vw, 6rem) 1.25rem;
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
.wrapper { display: flex; width: 100%; min-height: 100vh; }
#sidebar {
  flex: 0 0 260px;
  width: 260px;
  min-width: 260px;
  color: #fff !important;
  background: rgba(12, 18, 28, 0.36);
  border-right: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
#sidebar .sidebar-header {
  padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--glass-border);
}
#sidebar ul.components { padding: 15px 0; }
#sidebar ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #fff !important;
  text-decoration: none;
  border-left: 4px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}
#sidebar ul li a:hover, #sidebar ul li a.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.18);
  border-left-color: rgba(255, 255, 255, 0.85);
}
#content { width: 100%; min-width: 0; min-height: 100vh; padding: clamp(14px, 2.5vw, 25px); }
.glass-card {
  color: #fff !important;
  background: var(--glass-surface) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
#areaA4 { background: rgba(15, 20, 28, 0.30) !important; }
h1, h2, h3, h4, h5, h6, p, label, small, span, strong, em, th, td,
.text-primary, .text-warning, .text-dark, .text-white, .text-opacity-custom,
.form-label, #sidebar, #sidebar * { color: #fff !important; }
.text-opacity-custom { color: var(--text-muted) !important; }
.profile-img { width: 90px; height: 90px; object-fit: cover; border: 2px solid var(--glass-border); border-radius: 50%; }
.list-group-item, .table, .table > :not(caption) > * > *, .table-dark,
.table-dark th, .table-dark td, .bg-white, .bg-white.bg-opacity-10 {
  color: #fff !important;
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
}
.table-responsive { border-radius: 16px; }
.form-control, .form-select {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 10px;
}
.form-control::placeholder { color: rgba(255, 255, 255, 0.72) !important; opacity: 1; }
.form-control:focus, .form-select:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 0 0 .2rem rgba(255, 255, 255, 0.12) !important;
}
.form-select option { color: #fff; background: #27313d; }
.form-check-input { background-color: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.65); }
.form-check-input:checked { background-color: rgba(255, 255, 255, 0.7); border-color: #fff; }
.btn, .btn-primary, .btn-light, .btn-success, .btn-warning, .btn-outline-light {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  box-shadow: none;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
.btn:hover, .btn:focus-visible {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.24) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
}
.badge { color: #fff !important; background: rgba(255, 255, 255, 0.16) !important; }
.border, .border-bottom, .border-secondary { border-color: var(--glass-border) !important; }
a { color: #fff; }
a:hover { color: #fff; }
input, textarea, select, button { accent-color: #fff; }
#loginFormSection { max-width: 400px; }
@media (max-width: 768px) {
  .wrapper { flex-direction: column; }
  #sidebar { flex: 0 0 auto; width: 100%; min-width: 0; max-width: 100%; }
  #content { padding: 14px; }
  #areaA4 { padding: 1rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
