/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Light Theme (Default) */
:root {
  --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-container: white;
  --color-text: #333;
  --color-text-light: #666;
  --color-link: #667eea;
  --color-border: #d0d0d0;
  --color-hover: #f8f9fa;
  --color-accent: #ff69b4;
  --color-success: #28a745;
  --color-error: #dc3545;
  --color-warning: #ffc107;
  --color-info: #17a2b8;

  /* Teal accent for glassy hover */
  --color-teal-accent: #14b8a6;
  --color-teal-glow: rgba(20, 184, 166, 0.55);

  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --header-bg: white;
  --table-header-bg: #667eea;
  --table-text: white;
}

/* Dark Neo-Futuristic Theme - Following uidesign.md Exactly */
.dark-theme {
  /* Teal accent for dark mode glassy hover */
  --color-teal-accent: #22d3ee;
  --color-teal-glow: rgba(34, 211, 238, 0.6);
  /* Backgrounds - from uidesign.md */
  --bg-primary: linear-gradient(180deg, #0F1220 0%, #151A2E 100%);
  --bg-container: rgba(255, 255, 255, 0.04);
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-hover: rgba(255, 255, 255, 0.07);
  --bg-selected: rgba(99, 102, 241, 0.18);
  
  /* Text Colors - from uidesign.md */
  --color-text: #E5E7EB; /* Primary text */
  --color-text-light: #9CA3AF; /* Secondary text */
  --color-text-muted: #6B7280; /* Muted/placeholder */
  --color-link: #6366F1; /* Indigo primary */
  --color-border: rgba(255, 255, 255, 0.05); /* Thin, less contrast */
  --color-hover: rgba(255, 255, 255, 0.07);
  --color-accent: #22D3EE; /* Cyan secondary */
  --color-success: #22C55E;
  --color-error: #ff6b6b;
  --color-warning: #F59E0B;
  --color-info: #22D3EE;
  
  /* Shadows and depth */
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  --header-bg: #1e1534; /* Dark purple */
  --table-header-bg: rgba(30, 21, 52, 0.95); /* Dark purple for sticky header */
  --table-text: #E5E7EB; /* Primary text for tables */
}

body {
  font-family: 'Inter', 'SF Pro Display', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-primary);
  min-height: 100vh;
  line-height: 1.6;
  color: var(--color-text);
  transition: all 0.3s ease;
  font-size: 14px;
}

.container {
  max-width: 95%;
  margin: 0 auto;
  padding: 2.5%;
}

/* Header */
header {
  background: var(--header-bg);
  padding: 20px 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  position: relative;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.header-nav h1 {
  font-size: 1.8rem;
  color: var(--color-link);
  flex-shrink: 0;
}

/* Header Time Display */
.header-time {
  flex-grow: 0;
  text-align: right;
  font-size: 0.9rem;
  color: var(--color-link);
  font-weight: 500;
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 5px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  width: fit-content;
  font-variant-numeric: tabular-nums;
}

.dark-theme .header-time {
  color: var(--color-accent);
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.2);
}

/* Header User Info Section */
.header-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logged-in-text {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
}

.logged-in-text span {
  color: var(--color-link);
  font-weight: 600;
}

.dark-theme .logged-in-text {
  color: var(--color-text-light);
}

.dark-theme .logged-in-text span {
  color: var(--color-accent);
}

.subheader-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.subheader-nav h1 {
  font-size: 1.8rem;
  color: var(--color-link);
}

.subheader-nav nav {
  display: flex;
  gap: 15px;
}

.subheader-nav nav a {
  color: var(--color-link);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 5px;
  transition: background 0.3s;
}

.subheader-nav nav a:hover {
  background: var(--color-hover);
}

.subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-top: 10px;
}

/* Main Content */
main {
  background: var(--bg-container);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  color: var(--color-text);
}

/* Home Page Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.card {
  background: var(--table-header-bg);
  color: var(--table-text);
  padding: 40px;
  border-radius: 25px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.card p {
  opacity: 0.9;
}

.info-box {
  background: var(--color-hover);
  padding: 30px;
  border-radius: 10px;
  border-left: 4px solid var(--color-link);
}

.info-box h3 {
  color: var(--color-link);
  margin-bottom: 15px;
}

.info-box ul {
  list-style: none;
}

.info-box li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.info-box li:last-child {
  border-bottom: none;
}

/* Toolbar */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.toolbar-left {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.count-badge {
  background: #e0e7ff;
  color: var(--color-link);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Buttons - Glassmorphism Design */
.btn {
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: rgba(99, 102, 241, 0.7);
  color: white;
  border-color: rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  background: rgba(99, 102, 241, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.85rem;
}

.btn-edit {
  background: rgba(40, 167, 69, 0.7);
  color: white;
  border-color: rgba(40, 167, 69, 0.3);
}

.btn-edit:hover {
  background: rgba(40, 167, 69, 0.85);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-delete {
  background: rgba(220, 53, 69, 0.7);
  color: white;
  border-color: rgba(220, 53, 69, 0.3);
}

.btn-delete:hover {
  background: rgba(220, 53, 69, 0.85);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Error button for validation issues */
.btn-error {
  background: rgba(255, 193, 7, 0.7);
  color: #000;
  font-weight: bold;
  border-color: rgba(255, 193, 7, 0.3);
}

.btn-error:hover {
  background: rgba(255, 193, 7, 0.85);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* Row with validation errors */
.row-with-errors {
  background-color: rgba(255, 193, 7, 0.15) !important;
}

.row-with-errors:hover {
  background-color: rgba(255, 193, 7, 0.25) !important;
}

/* Table */
.table-container {
  width: 100%;
  overflow-x: auto;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  table-layout: auto;
  min-width: max-content;
}

thead {
  background: var(--table-header-bg);
  color: var(--table-text);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 1px solid var(--color-border);
  border-bottom: 3px solid var(--color-link);
  cursor: pointer;
  user-select: none;
  position: relative;
}

th.sortable:hover {
  background: #5568d3;
}

/* Table Sorting Icons - Using ascending/descending icons */
th.sortable::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 6px;
  vertical-align: middle;
  background-image: url('/Icon_asset/ascending.ico');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.35;
  filter: invert(1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

th.sortable:hover::after {
  opacity: 0.7;
}

th.sortable.asc::after {
  background-image: url('/Icon_asset/ascending.ico');
  opacity: 1;
  filter: invert(1) brightness(1.2);
}

th.sortable.desc::after {
  background-image: url('/Icon_asset/descending.ico');
  opacity: 1;
  filter: invert(1) brightness(1.2);
}

/* Dark theme - adjust filter for visibility */
.dark-theme th.sortable::after {
  filter: invert(1) brightness(0.8);
}

.dark-theme th.sortable.asc::after,
.dark-theme th.sortable.desc::after {
  filter: invert(0) brightness(1.5);
}

tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s ease-out;
}

tbody tr:hover {
  background: var(--bg-hover);
  cursor: pointer;
}

td {
  padding: 8px 6px;
  border: 1px solid var(--color-border);
}

.loading, .no-data, .error {
  text-align: center;
  padding: 40px;
  color: #666;
}

.error {
  color: #dc3545;
}

/* Status badges */
.status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-active, .status-published {
  background: #d4edda;
  color: #155724;
}

.status-inactive, .status-draft {
  background: #fff3cd;
  color: #856404;
}

.status-on-leave, .status-archived {
  background: #f8d7da;
  color: #721c24;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

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

.modal-header h2 {
  color: #667eea;
}

.close {
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  transition: color 0.3s;
}

.close:hover {
  color: #333;
}

/* Form */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-link);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

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

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.form-actions button {
  flex: 1;
}

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

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dark theme stat card - less contrastive */
.dark-theme .stat-card {
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-theme .stat-number {
  color: var(--color-link);
}

.dark-theme .stat-label {
  color: var(--color-text-light);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

/* Stats Table */
.stats-table {
  background: white;
  padding: 20px;
  border-radius: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.stat-indented {
  padding-left: 30px;
}

.stat-name {
  font-weight: 500;
  color: #333;
}

.stat-value {
  font-weight: bold;
  color: #667eea;
}

.stat-divider {
  border-top: 2px solid #e0e0e0;
  margin: 10px 0;
}

/* Status colors for post nature and duration */
.status-own {
  background: #d4edda;
  color: #155724;
}

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

.status-permanent {
  background: #d1ecf1;
  color: #0c5460;
}

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

/* Status colors for staff contract - Soft Glow Badges per uidesign.md */
.status-CS {
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
  border-radius: 999px;
}

.status-NCS {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border-radius: 999px;
}

.status-Contract-Staff {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border-radius: 999px;
}

.status-T-contract {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border-radius: 999px;
}

/* Days to expiry countdown styling */
.days-to-expiry {
  font-weight: 600;
}

.days-to-expiry-red {
  color: #dc3545;
  font-weight: 700;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  padding: 12px 20px;
  text-decoration: none;
  color: #667eea;
  border-radius: 5px 5px 0 0;
  transition: all 0.3s;
  font-weight: 500;
  background: #f0f0f0;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  display: block;
}

.dropdown-toggle:hover {
  background: #e0e7ff;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 5000;
  min-width: 220px;
  margin-top: 6px;
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #667eea;
  background: white;
  transition: all 0.3s;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: #e0e7ff;
  color: #667eea;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Ensure dropdown works on focus too for accessibility and mobile */
.dropdown:focus-within .dropdown-menu {
  display: block;
}

/* Vertical Sidebar Navigation - Collapsible */
.sidebar-nav {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 260px;
  background: var(--header-bg);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transition: transform 0.3s ease, width 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.sidebar-nav::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.sidebar-nav.collapsed {
  width: 60px;
}

.sidebar-header {
  padding: 20px 15px;
  border-bottom: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.sidebar-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-link);
  white-space: nowrap;
  transition: opacity 0.3s;
}

.sidebar-nav.collapsed .sidebar-logo {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar-toggle-btn {
  background: var(--color-link);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s;
  flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
  background: var(--color-accent);
  transform: scale(1.1);
}

.sidebar-menu {
  flex: 1;
  padding: 10px 0;
  overflow-y: auto;
}

.sidebar-footer {
  border-top: 2px solid var(--color-border);
  padding: 10px 0;
  flex-shrink: 0;
}

.sidebar-footer .sidebar-menu {
  padding: 0;
}

.sidebar-footer .sidebar-menu a,
.sidebar-footer .sidebar-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s;
  font-weight: 500;
  border-left: 3px solid transparent;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  max-width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer .sidebar-menu a:hover,
.sidebar-footer .sidebar-menu button:hover {
  background: var(--color-link);
  color: white;
  border-left-color: var(--color-link);
}

.sidebar-menu a,
.sidebar-menu .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s;
  font-weight: 500;
  border-left: 3px solid transparent;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  position: relative;
}

.sidebar-menu a:hover,
.sidebar-menu .dropdown-toggle:hover {
  background: var(--color-link);
  color: white;
  border-left-color: var(--color-link);
}

.sidebar-menu a.active {
  background: rgba(99, 102, 241, 0.15);
  border-left-color: var(--color-link);
  color: var(--color-link);
}

.sidebar-menu-icon {
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

/* Sidebar Icon Contrast - Reusable for dark/light mode */
.sidebar-menu-icon img {
  filter: brightness(0.4);
  transition: filter 0.3s ease;
}

/* Dark theme - invert icons for visibility on dark background */
.dark-theme .sidebar-menu-icon img {
  filter: invert(1) brightness(1.1);
}

/* Icon hover effect - subtle brightness increase */
.sidebar-menu a:hover .sidebar-menu-icon img,
.sidebar-menu .dropdown-toggle:hover .sidebar-menu-icon img,
.sidebar-footer .sidebar-menu button:hover .sidebar-menu-icon img {
  filter: brightness(1.5) saturate(1.2);
}

.dark-theme .sidebar-menu a:hover .sidebar-menu-icon img,
.dark-theme .sidebar-menu .dropdown-toggle:hover .sidebar-menu-icon img,
.dark-theme .sidebar-footer .sidebar-menu button:hover .sidebar-menu-icon img {
  filter: invert(1) brightness(1.5) saturate(1.2);
}

/* ============================================
   BUTTON ICON CONTRAST - White/bright for visibility
   ============================================ */

/* Button icons - white/bright for visibility on purple buttons */
.liquid-button img,
.btn img,
.form-actions button img {
  filter: invert(1) brightness(2);
  transition: filter 0.3s ease;
}

/* Dark theme button icons - same treatment */
.dark-theme .liquid-button img,
.dark-theme .btn img,
.dark-theme .form-actions button img {
  filter: invert(1) brightness(2);
}

/* Hover state - even brighter */
.liquid-button:hover img,
.btn:hover img,
.form-actions button:hover img {
  filter: invert(1) brightness(2.5) drop-shadow(0 0 3px rgba(255,255,255,0.5));
}

/* Icon-only buttons (action buttons) - use original colors */
.btn-icon img {
  filter: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-icon:hover img {
  opacity: 1;
  transform: scale(1.1);
}

/* Dark theme action buttons - invert for visibility */
.dark-theme .btn-icon img {
  filter: invert(1) brightness(1.1);
}

.dark-theme .btn-icon:hover img {
  filter: invert(1) brightness(1.3);
}

/* ============================================
   USER INFO ICON WITH NEON FRAME
   ============================================ */

.user-icon-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.3));
  border: 2px solid var(--color-link);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4), 0 0 16px rgba(99, 102, 241, 0.2);
  margin-right: 8px;
  transition: all 0.3s ease;
}

.user-icon-neon img {
  width: 18px;
  height: 18px;
  filter: brightness(0.5);
}

.dark-theme .user-icon-neon {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(99, 102, 241, 0.25));
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5), 0 0 20px rgba(34, 211, 238, 0.25);
}

.dark-theme .user-icon-neon img {
  filter: invert(1) brightness(1.1);
}

/* Header user info with icon */
.header-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logged-in-container {
  display: flex;
  align-items: center;
}

.sidebar-menu-text {
  flex: 1;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.sidebar-nav.collapsed .sidebar-menu-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

/* Ensure footer text is always visible when sidebar is expanded */
.sidebar-nav:not(.collapsed) .sidebar-footer .sidebar-menu-text {
  display: inline-block;
  opacity: 1;
  width: auto;
  visibility: visible;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-nav.collapsed .sidebar-footer .sidebar-menu-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar-nav.collapsed .sidebar-menu a,
.sidebar-nav.collapsed .sidebar-menu .dropdown-toggle {
  justify-content: center;
  padding: 14px 10px;
}

/* Dropdown in sidebar */
.sidebar-menu .dropdown {
  position: relative;
}

.sidebar-menu .dropdown-menu {
  position: static;
  display: none;
  background: var(--color-hover);
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  min-width: auto;
}

.sidebar-menu .dropdown.open .dropdown-menu {
  display: block;
}

.sidebar-menu .dropdown-menu a {
  padding-left: 56px;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}

.sidebar-nav.collapsed .dropdown-menu {
  position: absolute;
  left: 100%;
  top: 0;
  width: 200px;
  background: var(--header-bg);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  z-index: 1000;
}

.sidebar-nav.collapsed .dropdown-menu a {
  padding-left: 20px;
}

.dropdown-arrow {
  margin-left: auto;
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.dropdown.open .dropdown-arrow {
  transform: rotate(90deg);
}

.sidebar-nav.collapsed .dropdown-arrow {
  display: none;
}

/* Main content adjustment for sidebar */
body {
  padding-left: 260px;
  transition: padding-left 0.3s ease;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  position: relative;
  height: 100vh;
}

/* Dashboard page exception - allow vertical scroll */
body:has(.stats-grid) {
  overflow-y: auto !important;
  height: auto;
}

body.sidebar-collapsed {
  padding-left: 60px;
}

.container {
  max-width: 100%;
  overflow-x: hidden !important;
}

html {
  overflow-x: hidden !important;
}

/* Dark theme adjustments */
.dark-theme .sidebar-nav {
  background: var(--header-bg);
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
}

.dark-theme .sidebar-menu a.active {
  background: rgba(99, 102, 241, 0.25);
  color: var(--color-accent);
}

/* Remove old tab-nav styles */
.tab-nav {
  display: none;
}

/* Icon Buttons */
.btn-icon {
  padding: 4px 6px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease;
  background: transparent;
  color: inherit;
}

.btn-icon:hover {
  transform: scale(1.08);
}

/* Theme Toggle Button */
#themeToggle {
  background: var(--color-hover);
  border: 2px solid var(--color-border);
  color: var(--color-text);
  transition: background 0.3s ease, color 0.3s ease;
  max-width: 100%;
}

#themeToggle:hover {
  background: var(--color-link);
  color: white;
  /* Removed transform scale to prevent overflow */
}

/* User Menu / Hamburger Menu - Position at absolute top right */
.user-menu {
  position: fixed;
  top: 10px;
  right: 20px;
  z-index: 9999;
}

.hamburger-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--color-hover);
  border: 2px solid var(--color-border);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-text);
  font-size: 1rem;
}

.hamburger-btn:hover {
  background: var(--color-link);
  color: white;
  transform: scale(1.02);
}

.hamburger-icon {
  font-size: 1.5rem;
  font-weight: bold;
}

.user-name {
  font-weight: 500;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--bg-container);
  border: 2px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 200px;
  z-index: 1000;
  padding: 10px;
}

.user-dropdown.active {
  display: block;
}

.user-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.user-info strong {
  color: var(--color-link);
  font-size: 1.1rem;
}

.user-info small {
  color: var(--color-text-light);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.user-dropdown hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 10px 0;
}

.dropdown-item {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s;
  color: var(--color-text);
  font-size: 1rem;
}

.dropdown-item:hover {
  background: var(--color-hover);
  color: var(--color-link);
}

/* Filter Icon */
.filter-icon {
  transition: opacity 0.3s;
}

.filter-icon:hover {
  opacity: 1 !important;
}

/* Date Display */
.date-display {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 100;
  color: #666;
  font-size: 0.9rem;
  padding: 8px 15px;
  background: #f8f9fa;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hidden elements */
.hidden {
  display: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  color: white;
  margin-top: 30px;
}

/* Column Resizing and Wide Tables - Auto-fit columns */
th, td {
  min-width: fit-content;
  max-width: none;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  padding: 12px 8px;
}

/* ID column - narrow and centered */
th:nth-child(1),
td:nth-child(1) {
  width: 60px;
  min-width: 60px;
  text-align: center;
}

/* Visual resize handle - ONLY on headers, less prominent */
th:hover::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15));
  cursor: col-resize;
  opacity: 0.5;
}

th:hover::before:hover {
  opacity: 1;
}

/* Remarks text display with truncation */
.remarks-cell {
  display: inline-block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.remarks-cell:hover {
  overflow: visible;
  white-space: normal;
  word-wrap: break-word;
  max-width: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-nav {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .header-nav nav {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .header-nav nav a {
    flex: 1;
    text-align: center;
  }
  
  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  table {
    font-size: 0.9rem;
  }
  
  th, td {
    padding: 8px;
  }
  
  .modal-content {
    width: 95%;
    padding: 20px;
  }
}

/* Header Filter Inputs */
.header-filter {
  position: absolute;
  display: none;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
  min-width: 150px;
  margin-top: 5px;
}

.header-filter input {
  width: 100%;
  padding: 4px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 12px;
  margin-bottom: 5px;
}

.header-filter button {
  padding: 4px 8px;
  border: 1px solid #007bff;
  background: #007bff;
  color: white;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  margin-right: 2px;
}

.header-filter button:last-child {
  margin-right: 0;
}

.header-filter button.cancel {
  background: #6c757d;
  border-color: #6c757d;
}

/* Filter Controls - More Opaque Glassmorphism */
.filter-controls {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 150px;
}

.filter-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
}

.filter-group select,
.filter-group input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.9rem;
  background: white;
}

.filter-group input {
  min-width: 180px;
}

.filter-controls .btn-secondary {
  align-self: flex-end;
  padding: 8px 16px;
  font-size: 0.9rem;
  margin-left: 10px;
}

/* Mobile responsive for filter controls */
@media (max-width: 768px) {
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    min-width: auto;
  }
  
  .filter-group input {
    min-width: auto;
  }
  
  .filter-controls .btn-secondary {
    align-self: stretch;
    margin-left: 0;
  }
}

/* Header Filter Icons */
.header-filter-icon {
  display: inline-block;
  opacity: 0.6;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-left: 5px;
  user-select: none;
}

.header-filter-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Filter icon image inside header - ensure visibility on dark table header */
.header-filter-icon img {
  filter: invert(1) brightness(1);
  transition: filter 0.3s ease;
}

.header-filter-icon:hover img {
  filter: invert(1) brightness(1.5);
}

/* Dark theme - filter icons in table headers */
.dark-theme .header-filter-icon img {
  filter: invert(0.8) brightness(1.2);
}

.dark-theme .header-filter-icon:hover img {
  filter: invert(1) brightness(1.5);
}

/* New Table Filter Panel Styles - More Opaque */
.table-filter-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  min-width: 300px;
  position: absolute;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Dark theme filter panel - more opaque */
.dark-theme .table-filter-panel {
  background: rgba(30, 21, 52, 0.95);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Table container needs relative positioning for filter panel */
.table-container {
  position: relative;
}

.filter-panel-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.filter-panel-content label {
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.filter-select,
.filter-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  font-size: 0.95rem;
  background: var(--bg-container);
  color: var(--color-text);
  transition: border-color 0.3s;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--color-link);
}

.filter-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-filter {
  background: var(--color-link);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-filter:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
}

/* Active Filters Display */
.active-filters-display {
  margin-bottom: 15px;
  padding: 15px;
  background: var(--color-hover);
  border-radius: 5px;
  border: 1px solid var(--color-border);
}

.active-filters-display strong {
  display: block;
  margin-bottom: 10px;
  color: var(--color-link);
  font-size: 0.95rem;
}

.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-link);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
}

.filter-tag:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
}

.remove-filter-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.remove-filter-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.2);
}

/* Dark theme adjustments for filter panel */
.dark-theme .filter-select,
.dark-theme .filter-input {
  background: #3d3352;
  border-color: #4a3f5c;
  color: #f5e6d3;
}

.dark-theme .filter-select option {
  background: #2a2438;
  color: #f5e6d3;
}

.dark-theme .active-filters-display {
  background: #3d3352;
  border-color: #4a3f5c;
}

.dark-theme .filter-tag {
  background: #ff9966;
  color: #fff5f0;
}

.dark-theme .filter-tag:hover {
  background: #ff6b6b;
}

/* Liquid button – refined (no hover raise, higher contrast, compact size) */
.liquid-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 26px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(140, 90, 255, 0.75),
    rgba(99, 102, 241, 0.85)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 18px rgba(99, 102, 241, 0.45),
    inset 0 0 14px rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: box-shadow 0.25s ease, background 0.25s ease;
  overflow: hidden;
}

/* Icon / symbol inside liquid button */
.liquid-button .icon,
.liquid-button .emoji {
  font-size: 1.2em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* Icon-only liquid button */
.liquid-button.icon-only {
  padding: 10px 16px;
}

/* Liquid glow layer */
.liquid-button::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(
    circle,
    rgba(180, 150, 255, 0.6),
    transparent 60%
  );
  opacity: 0.4;
  filter: blur(36px);
  transition: opacity 0.3s ease;
}

/* Hover – teal-blue color shift (no border growth, no layout shift) */
.liquid-button:hover {
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.75),
    rgba(99, 102, 241, 0.9)
  );
  box-shadow:
    0 0 26px var(--color-teal-glow),
    inset 0 0 20px rgba(255, 255, 255, 0.28);
}

.liquid-button:hover::before {
  opacity: 0.75;
}

/* Active press – visible depression */
.liquid-button:active {
  box-shadow:
    0 0 14px rgba(99, 102, 241, 0.45),
    inset 0 3px 14px rgba(0, 0, 0, 0.35);
}

/* ============================================
   DARK THEME - MODAL & FORM COMPONENTS
   ============================================ */

/* Dark theme modal overlay */
.dark-theme .modal {
  background: rgba(0, 0, 0, 0.85);
}

/* Dark theme modal content - Dark purple background matching design */
.dark-theme .modal-content {
  background: #2a2438;
  color: #e0e0e0;
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Dark theme modal header */
.dark-theme .modal-header h2 {
  color: #a78bfa;
}

.dark-theme .close {
  color: #9CA3AF;
}

.dark-theme .close:hover {
  color: #22D3EE;
}

/* Dark theme form labels */
.dark-theme .form-group label {
  color: #d1d5db;
}

/* Dark theme form inputs */
.dark-theme .form-group input,
.dark-theme .form-group select,
.dark-theme .form-group textarea {
  background: #3d3352;
  color: #e0e0e0;
  border: 1px solid #4c4560;
}

.dark-theme .form-group input:focus,
.dark-theme .form-group select:focus,
.dark-theme .form-group textarea:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.3);
  background: #4a3f5c;
}

/* Dark theme select dropdown options */
.dark-theme .form-group select option {
  background: #2a2438;
  color: #e0e0e0;
}

/* Dark theme checkbox and radio groups */
.dark-theme .checkbox-group,
.dark-theme .radio-group {
  color: #d1d5db;
}

.dark-theme .checkbox-option,
.dark-theme .radio-option {
  color: #d1d5db;
}

.dark-theme .checkbox-option:hover,
.dark-theme .radio-option:hover {
  background: rgba(167, 139, 250, 0.1);
}

/* Dark theme boolean toggle */
.dark-theme .boolean-toggle {
  color: #d1d5db;
}

.dark-theme .toggle-switch {
  background: #3d3352;
}

.dark-theme .toggle-slider {
  background: #6B7280;
}

.dark-theme .toggle-switch input:checked + .toggle-slider {
  background: #a78bfa;
}

/* Dark theme linear scale */
.dark-theme .linear-scale {
  color: #d1d5db;
}

.dark-theme .linear-scale input[type="range"] {
  background: #3d3352;
}

.dark-theme .linear-scale input[type="range"]::-webkit-slider-thumb {
  background: #a78bfa;
}

.dark-theme .linear-scale input[type="range"]::-moz-range-thumb {
  background: #a78bfa;
}

.dark-theme .scale-value {
  color: #22D3EE;
  font-weight: 600;
}

/* Dark theme info bubble */
.dark-theme .info-bubble .info-icon {
  color: #22D3EE;
}

.dark-theme .info-tooltip {
  background: #1e1534;
  color: #e0e0e0;
  border: 1px solid #4c4560;
}

/* Dark theme validation error messages */
.dark-theme .form-group input.error,
.dark-theme .form-group select.error,
.dark-theme .form-group textarea.error {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

.dark-theme .error-message {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-top: 5px;
}

/* Dark theme form actions buttons */
.dark-theme .form-actions .btn-primary {
  background: rgba(167, 139, 250, 0.8);
  border-color: rgba(167, 139, 250, 0.4);
}

.dark-theme .form-actions .btn-primary:hover {
  background: rgba(167, 139, 250, 1);
  box-shadow: 0 6px 20px rgba(167, 139, 250, 0.5);
}

.dark-theme .form-actions .btn-secondary {
  background: rgba(75, 85, 99, 0.7);
  color: #e0e0e0;
  border-color: rgba(75, 85, 99, 0.4);
}

.dark-theme .form-actions .btn-secondary:hover {
  background: rgba(75, 85, 99, 0.9);
}

/* Additional modal component styles for DynamicModalBuilder */
.info-bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  cursor: help;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  color: #667eea;
  font-size: 12px;
  font-weight: bold;
}

.info-tooltip {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  color: #333;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1000;
  max-width: 250px;
  white-space: normal;
  font-size: 0.85rem;
  border: 1px solid #ddd;
}

.info-bubble:hover .info-tooltip {
  opacity: 1;
}

/* Boolean toggle switch styles */
.boolean-toggle {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.toggle-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: relative;
  width: 50px;
  height: 24px;
  background: #ccc;
  border-radius: 24px;
  transition: background 0.3s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  top: 2px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background: #667eea;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(26px);
}

.toggle-label-yes,
.toggle-label-no {
  font-size: 0.9rem;
  font-weight: 500;
}

.toggle-switch input:checked ~ .toggle-label-yes {
  color: #667eea;
  font-weight: 600;
}

.toggle-switch input:not(:checked) ~ .toggle-label-no {
  color: #666;
  font-weight: 600;
}

/* Linear scale styles */
.linear-scale {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.scale-label-start,
.scale-label-end {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  min-width: 40px;
  text-align: center;
}

.linear-scale input[type="range"] {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
}

.linear-scale input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.linear-scale input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.scale-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  padding: 4px 10px;
  background: #667eea;
  color: white;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Checkbox and radio option styles */
.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-option,
.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s;
  cursor: pointer;
}

.checkbox-option:hover,
.radio-option:hover {
  background: rgba(99, 102, 241, 0.05);
}

.checkbox-option input[type="checkbox"],
.radio-option input[type="radio"] {
  width: auto;
  cursor: pointer;
}
