/* ---------------------------------------------------
   VoraCMS � Modern Admin Theme
   Net, c�lid, professional, user-friendly
   (CSS custom properties moved to root.css)
   --------------------------------------------------- */

/* --------- Layout --------- */
body {
  background: var(--s-main-bg, var(--s-bg));
  color: var(--s-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  transition:
    background 0.35s ease,
    color 0.35s ease;
}

.s-body {
  display: flex;
  min-height: 100vh;
}

/* --------- Sidebar --------- */
.s-sidebar {
  width: var(--s-sidebar-width);
  background: var(--s-sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1030;
  transition: transform var(--s-transition);
}

.s-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 24px;
  color: #fff;
  text-decoration: none;
}

.s-sidebar-logo {
  height: 42px;
  width: auto;
  display: block;
}

.s-sidebar-brand:hover {
  color: #fff;
}

.s-sidebar-brand-icon {
  width: 32px;
  height: 32px;
  background: var(--s-primary);
  border-radius: var(--s-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.s-sidebar-nav {
  flex: 1;
  padding: 8px 12px;
  overflow-y: auto;
}

.s-sidebar-section {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--s-sidebar-text);
  padding: 24px 8px 8px;
  opacity: 0.5;
}

.s-sidebar-link,
.s-sidebar-link:visited {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: var(--s-radius);
  color: var(--s-sidebar-text) !important;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--s-transition);
  position: relative;
}

.s-sidebar-link i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Left glow accent on hover/active */
.s-sidebar-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.9), rgba(250, 204, 21, 0.85));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.s-sidebar-link:hover {
  background: var(--s-sidebar-hover);
  color: var(--s-sidebar-text-hover) !important;
}

.s-sidebar-link:hover::before,
.s-sidebar-link.active::before {
  opacity: 1;
}

.s-sidebar-link.active {
  background: var(--s-sidebar-active);
  color: #fff !important;
  box-shadow: none;
}

/* Sub-links (indentats, estil secundari) */
.s-sidebar-link--sub {
  padding-left: 42px !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  gap: 10px !important;
}

/* Sub-links profunds (seccions dins d'una pàgina) */
.s-sidebar-link--sub-deep {
  padding-left: 62px !important;
  font-size: 0.7rem !important;
  font-weight: 400 !important;
  gap: 8px !important;
}

/* ─── Grup col·lapsable al sidebar ─── */
.s-sidebar-group-children {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.s-sidebar-group.is-open .s-sidebar-group-children {
  max-height: 200px;
}

.s-sidebar-group-arrow {
  margin-left: auto;
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}

.s-sidebar-group.is-open .s-sidebar-group-arrow {
  transform: rotate(180deg);
}

.s-sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--s-sidebar-divider);
}

.s-sidebar-footer .dropdown-toggle {
  color: var(--s-sidebar-text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--s-radius);
  transition: all var(--s-transition);
  width: 100%;
  text-align: left;
}

.s-sidebar-footer .dropdown-toggle:hover {
  background: var(--s-sidebar-hover);
  color: #fff;
}

.s-sidebar-footer .dropdown-menu {
  margin-bottom: 8px;
  border-radius: var(--s-radius-lg);
  border: 1px solid var(--s-border);
  box-shadow: var(--s-shadow-md);
  padding: 4px;
}

.s-sidebar-footer .dropdown-item {
  border-radius: var(--s-radius);
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--s-text);
}

.s-sidebar-footer .dropdown-item:hover {
  background: var(--s-primary-bg);
  color: var(--s-primary);
}

/* --------- Main Content --------- */
.s-main {
  flex: 1;
  margin-left: var(--s-sidebar-width);
  min-width: 0;
  background: transparent;
  padding: 0;
}

.s-topbar {
  background: var(--s-topbar-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: none;
  border-left: none;
  padding: 16px 28px 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.s-topbar-header-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.s-topbar-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--d2-font-mono, "JetBrains Mono", "DM Mono", monospace);
  font-size: 0.68rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.s-topbar-title-gradient {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  background: var(--s-gradient, linear-gradient(135deg, #f97316, #fbbf24));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin: 0;
}

[data-theme="light"] .s-topbar-title-gradient {
  background: var(--s-gradient-2, linear-gradient(135deg, #ea580c, #f59e0b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.s-topbar-desc {
  font-size: 0.72rem;
  color: var(--s-text-secondary);
  opacity: 0.65;
  margin: 2px 0 0 0;
  display: block;
}

.s-topbar-title {
  font-size: 1.15rem;
  font-weight: 650;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}

.s-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s-action-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 28px;
  background: rgba(15, 15, 19, 0.7);
  border-bottom: 1px solid var(--s-border-light);
  min-height: 48px;
}

.s-action-bar:empty {
  display: none;
}

.s-action-bar .btn {
  margin: 0;
}

/* --- Field Labels (entry show) --- */
.s-field-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

/* --- User Card & Dropdown --- */
.s-user-dropdown {
  position: relative;
  display: inline-block;
}

.s-user-card {
  margin-left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 5px 10px 5px 6px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  text-align: left;
  transition:
    background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.s-user-card:hover,
.s-user-dropdown.is-open .s-user-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.18);
}

.s-user-card-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: contain;
  background: linear-gradient(135deg, #f97316 0%, #7c2d12 100%);
  padding: 5px;
  flex-shrink: 0;
  box-shadow: 0 1px 6px rgba(249, 115, 22, 0.3);
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.s-user-card:hover .s-user-card-avatar,
.s-user-dropdown.is-open .s-user-card-avatar {
  transform: scale(1.06);
  box-shadow: 0 2px 14px rgba(249, 115, 22, 0.45);
}

.s-user-card-info {
  line-height: 1.25;
}

.s-user-card-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  display: block;
}

.s-user-card-role {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--s-text-secondary);
  white-space: nowrap;
  display: block;
  text-transform: capitalize;
}

.s-user-card-chevron {
  color: var(--s-text-secondary);
  font-size: 0.75rem;
  margin-left: 2px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

/* --- Language Switcher Component --- */
.s-lang-switcher {
  position: relative;
}

.s-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--s-border-light, rgba(255, 255, 255, 0.1));
  color: var(--s-text, #fff);
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.s-lang-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(249, 115, 22, 0.3);
}

.s-lang-icon {
  font-size: 0.85rem;
  color: #f97316;
}

.s-lang-chevron {
  font-size: 0.65rem;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.s-lang-switcher.is-open .s-lang-chevron {
  transform: rotate(180deg);
  color: #f97316;
}

.s-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: linear-gradient(135deg, rgba(18, 14, 22, 0.98) 0%, rgba(24, 18, 28, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(249, 115, 22, 0.12);
  padding: 6px;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s ease;
}

.s-lang-switcher.is-open .s-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.s-lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  color: var(--s-text-primary, #e2e8f0);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}

.s-lang-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.s-lang-item.active {
  background: rgba(249, 115, 22, 0.14);
  color: #fb923c;
  font-weight: 700;
}

.s-lang-code {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 5px;
  border-radius: 4px;
  margin-right: 6px;
}

.s-lang-item.active .s-lang-code {
  background: rgba(249, 115, 22, 0.25);
  color: #fb923c;
}

/* User Dropdown Menu */
.s-user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: linear-gradient(135deg, rgba(16, 12, 10, 0.96) 0%, rgba(24, 15, 12, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(249, 115, 22, 0.12);
  padding: 6px;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s ease;
}

.s-user-dropdown.is-open .s-user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.s-user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--s-text-primary, #e2e8f0);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.s-user-dropdown-item i {
  font-size: 1rem;
  color: #f97316;
  transition: transform 0.18s ease;
}

.s-user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(2px);
}

.s-user-dropdown-item:hover i {
  transform: scale(1.1);
}

.s-user-dropdown-item--logout {
  color: #f87171;
}

.s-user-dropdown-item--logout i {
  color: #ef4444;
}

.s-user-dropdown-item--logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.s-user-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 6px;
}

/* --- Profile Card Component --- */
.profile-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.profile-card-header {
  padding: 28px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(124, 45, 18, 0.04) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f97316 0%, #7c2d12 100%);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
  flex-shrink: 0;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.profile-badge-role {
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #fb923c;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.profile-badge-status.active {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.profile-badge-status.inactive {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.profile-email {
  color: var(--s-text-secondary, #94a3b8);
  font-size: 0.88rem;
  margin-top: 4px;
}

.profile-card-body {
  padding: 28px;
}

.profile-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-section-title i {
  color: #f97316;
}

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

.profile-grid-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.profile-grid-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.profile-grid-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--s-text-secondary, #94a3b8);
}

.profile-grid-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.profile-card-footer {
  padding: 20px 28px;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* --- Theme Toggle --- */
.s-theme-toggle {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 8px;
  color: var(--s-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition:
    background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.s-theme-toggle:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.s-theme-toggle .s-theme-icon-light {
  display: block;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.s-theme-toggle .s-theme-icon-dark {
  display: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* --- Help toggle --- */
.s-help-toggle {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.s-help-toggle i {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: s-help-pulse 3s ease-in-out infinite;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

@keyframes s-help-pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.s-help-toggle:hover {
  transform: scale(1.15);
}

.s-help-toggle:hover i {
  animation: none;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
}

[data-theme="light"] .s-help-toggle i {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .s-help-toggle:hover i {
  animation: none;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4));
}

.s-content {
  max-width: 1280px;
  margin: 0 auto !important;
  padding: 14px 28px 28px 28px;
}
.s-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 28px 28px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.03em;
}

.s-footer img {
  height: 16px;
  width: auto;
  margin-left: 6px;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.s-footer:hover img {
  opacity: 0.7;
}

/* --- Sidebar subsection subtitle --- */
.s-sidebar-section--indented {
  padding-left: 20px;
}

.s-sidebar-section__subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Calendar icon always white --- */
.bi-calendar-event {
  color: #fff !important;
}

/* --- Section Header --- */
.cyber-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.cyber-section-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(245, 158, 11, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.cyber-section-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.cyber-section-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(249, 115, 22, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.06);
}

/* --- Breadcrumbs --- */
.cyber-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--d2-font-mono, "JetBrains Mono", "DM Mono", monospace);
  font-size: 0.72rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.cyber-breadcrumb-item {
  color: rgba(248, 250, 252, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cyber-breadcrumb-item:hover {
  color: rgba(248, 250, 252, 0.9);
}

.cyber-breadcrumb-item.active {
  color: var(--s-primary, #f97316);
  font-weight: 600;
}

.cyber-breadcrumb-separator {
  color: rgba(248, 250, 252, 0.3);
  font-weight: 400;
}

[data-theme="light"] .cyber-breadcrumb-item {
  color: rgba(30, 41, 59, 0.55);
}

[data-theme="light"] .cyber-breadcrumb-item:hover {
  color: rgba(30, 41, 59, 0.9);
}

[data-theme="light"] .cyber-breadcrumb-item.active {
  color: var(--s-primary, #f97316);
}

[data-theme="light"] .cyber-breadcrumb-separator {
  color: rgba(30, 41, 59, 0.3);
}

.cyber-section-title {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
  background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.cyber-section-desc {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.8);
  margin: 2px 0 0 0;
  font-weight: 400;
}

.cyber-section-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.cyber-stat-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.06);
  min-width: 60px;
}

.cyber-stat-mini-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cyber-stat-mini-value--active {
  color: #10b981;
}

.cyber-stat-mini-label {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.6);
  margin-top: 2px;
}

/* --- Cyber Card Table (wrapper for table) --- */
.cyber-card--table {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(245, 158, 11, 0.04) inset,
    0 0 60px rgba(245, 158, 11, 0.02);
}

.cyber-card--table:hover {
  transform: none !important;
  background: rgba(15, 23, 42, 0.65) !important;
  border-color: rgba(245, 158, 11, 0.22) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(245, 158, 11, 0.06) inset,
    0 0 40px rgba(245, 158, 11, 0.03) !important;
}

/* --- Cyber Form Header --- */
.cyber-form-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.3), transparent);
}

.cyber-form-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(249, 115, 22, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  flex-shrink: 0;
}
/* --------- Responsive --------- */
.s-sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--s-text);
  font-size: 1.2rem;
  padding: 4px;
  cursor: pointer;
}

.s-sidebar-overlay {
  display: none;
}

@media (max-width: 768px) {
  .s-sidebar {
    transform: translateX(-100%);
  }

  .s-sidebar.open {
    transform: translateX(0);
  }

  .s-sidebar.open + .s-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1029;
  }

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

  .s-sidebar-toggle {
    display: block !important;
  }

  .s-content {
    padding: 16px;
  }

  .s-topbar {
    padding: 12px 16px;
  }

  .s-topbar-title {
    font-size: 1rem;
  }
}
