/* Modern KEDD Intranet CSS - Bootstrap 5.3 Enhancement */

/* ========================================
   CSS Custom Properties (Modern Variables)
   ======================================== */
:root {
  /* Color Palette - Modern, Professional */
  --primary: #2563eb;
  --primary-rgb: 37, 99, 235;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --secondary-light: #94a3b8;
  --accent: #8b5cf6;
  --success: #059669;
  --warning: #d97706;
  --warning-rgb: 217, 119, 6;
  --danger: #dc2626;
  --info: #0891b2;
  
  /* Neutral Colors */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Surface Colors */
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --background: #f1f5f9;
  --background-pattern: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.35s ease;
}

/* ========================================
   Global Styles
   ======================================== */
body {
  background: var(--background-pattern);
  color: var(--text-primary);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Modern Navigation & Sidebar
   ======================================== */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary) !important;
  transition: var(--transition-fast);
}

.navbar-brand:hover {
  color: var(--primary-dark) !important;
  transform: scale(1.02);
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  transition: var(--transition-fast);
  border-radius: var(--radius-md);
  margin: 0 var(--space-xs);
  padding: var(--space-sm) var(--space-md) !important;
}

.nav-link:hover {
  color: var(--primary) !important;
  background-color: var(--gray-100);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary) !important;
  background-color: var(--gray-100);
  font-weight: 600;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  margin-top: var(--space-xs);
}

.dropdown-item {
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--gray-100);
  color: var(--primary);
  transform: translateX(4px);
}

/* User Avatar Icon */
.user-avatar-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.user-avatar-icon:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* Remove dropdown arrow from user menu */
.dropdown-toggle::after {
  display: none !important;
}

/* Sidebar Styles */
.offcanvas {
  width: 320px !important;
  background: var(--surface);
  border-right: 1px solid var(--gray-200);
}

.sidebar-nav .nav-link {
  color: var(--text-secondary);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0;
  margin: 0;
  transition: var(--transition-fast);
  border-bottom: 1px solid transparent;
}

.sidebar-nav .nav-link:hover {
  color: var(--primary);
  background: linear-gradient(90deg, transparent, var(--gray-50));
  border-left: 3px solid var(--primary);
  padding-left: calc(var(--space-lg) - 3px);
  transform: none;
}

.sidebar-nav .nav-link.active {
  color: var(--primary);
  background: var(--gray-50);
  border-left: 3px solid var(--primary);
  font-weight: 600;
}

.sidebar-dropdown-toggle {
  position: relative;
}

.sidebar-dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .collapse .nav-link {
  padding-left: calc(var(--space-xl) + var(--space-md));
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sidebar-nav .collapse .nav-link:hover {
  color: var(--primary);
  padding-left: calc(var(--space-xl) + var(--space-md) - 3px);
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.offcanvas.show ~ .sidebar-backdrop {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   Modern Content Areas
   ======================================== */
.content {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  margin: var(--space-xl) auto;
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ========================================
   Modern Cards
   ======================================== */
.card-modern {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  overflow: hidden;
  position: relative;
}

.card-modern:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.card-modern .card-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.card-modern .card-body {
  padding: var(--space-lg);
}

/* ========================================
   Modern Buttons
   ======================================== */
.btn {
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: var(--transition-fast);
  border: none;
  padding: var(--space-sm) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: var(--transition-normal);
  transform: translate(-50%, -50%);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--text-secondary);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-200);
  color: var(--text-primary);
  border-color: var(--gray-400);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #10b981);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #ef4444);
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.875rem;
}

/* ========================================
   Modern Forms
   ======================================== */
.form-control {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  transition: var(--transition-fast);
  background: var(--surface);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--surface);
}

.form-select {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  transition: var(--transition-fast);
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ========================================
   Modern Tables
   ======================================== */
.table {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.table thead th {
  background: var(--gray-50);
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--gray-200);
  padding: var(--space-lg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.table tbody tr {
  transition: var(--transition-fast);
}

.table tbody tr:hover {
  background-color: var(--gray-50);
  transform: scale(1.001);
}

.table td {
  padding: var(--space-md) var(--space-lg);
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-200);
}

/* ========================================
   Modern Page Headers
   ======================================== */
.page-header {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
}

.help-icon {
  color: var(--primary);
  font-size: 1.25rem;
  transition: var(--transition-fast);
  padding: var(--space-xs);
  border-radius: var(--radius-md);
}

.help-icon:hover {
  color: var(--primary-dark);
  background-color: var(--gray-100);
  transform: scale(1.1);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  .content {
    margin: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
  }
  
  .table-responsive {
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  
  .page-header {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
  }
  
  .btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
  }
}

/* ========================================
   Loading States & Animations
   ======================================== */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.loading-shimmer {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp var(--transition-slow) ease-out;
}

/* ========================================
   Status Indicators
   ======================================== */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-indicator.active {
  background: rgba(5, 150, 105, 0.1);
  color: var(--success);
}

.status-indicator.inactive {
  background: rgba(107, 114, 128, 0.1);
  color: var(--gray-500);
}

.status-indicator.pending {
  background: rgba(217, 119, 6, 0.1);
  color: var(--warning);
}

/* ========================================
   Utility Classes
   ======================================== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
  transition: var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   Timeline Components
   ======================================== */
.timeline-segment {
  transition: all var(--transition-fast);
  cursor: pointer;
}

.timeline-segment:hover {
  opacity: 0.8;
  transform: scaleY(1.1);
}

.timeline-marker {
  transition: all var(--transition-fast);
}

.timeline-marker:hover .timeline-label {
  transform: translateX(-50%) scale(1.1);
}

.timeline-current {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.timeline-label {
  transition: all var(--transition-fast);
  font-weight: 500;
  letter-spacing: 0.025em;
}

/* ========================================
   Toast Notifications
   ======================================== */
.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 1055;
}

.toast-modern {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 300px;
  margin-bottom: var(--space-md);
}

.toast-modern .toast-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--space-md) var(--space-lg);
}

.toast-modern .toast-body {
  padding: var(--space-lg);
}

.toast-modern.toast-success {
  border-left: 4px solid var(--success);
}

.toast-modern.toast-error {
  border-left: 4px solid var(--danger);
}

.toast-modern.toast-warning {
  border-left: 4px solid var(--warning);
}

.toast-modern.toast-info {
  border-left: 4px solid var(--info);
}

/* ========================================
   Login Page Styles
   ======================================== */
.login-body {
  background: var(--background-pattern);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-2xl);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  animation: shimmer-border 3s linear infinite;
}

@keyframes shimmer-border {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.login-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 35px 70px -12px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.login-logo img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: var(--transition-normal);
}

.login-logo:hover img {
  transform: scale(1.05) rotate(2deg);
}

.login-input-group {
  position: relative;
  margin-bottom: var(--space-lg);
}

.login-input-group .form-control {
  padding-left: 3rem;
  height: 3.5rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: var(--transition-fast);
  background: rgba(255, 255, 255, 0.8);
}

.login-input-group .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  background: var(--surface);
  transform: translateY(-2px);
}

.login-input-icon {
  position: absolute;
  left: 1rem;
  top: calc(50% + 1.25rem);
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.25rem;
  z-index: 5;
  transition: var(--transition-fast);
}

.login-input-group .form-control:focus + .login-input-icon {
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.login-btn {
  height: 3.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.login-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-3px);
  box-shadow: 
    0 15px 30px -5px rgba(37, 99, 235, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.login-btn:active {
  transform: translateY(-1px);
}

.login-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
}

.login-checkbox .form-check-input {
  width: 1.25rem !important;
  height: 1.25rem !important;
  border-radius: var(--radius-md) !important;
  border: 2px solid var(--gray-400) !important;
  transition: var(--transition-fast) !important;
  margin: 0 !important;
  background: white !important;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.login-checkbox .form-check-input:hover {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 2px 6px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

body .login-checkbox .form-check-input:checked {
  background-color: var(--primary) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
  background-size: 0.75rem !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-color: var(--primary) !important;
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 3px 8px rgba(37, 99, 235, 0.3) !important;
}

.login-checkbox .form-check-input:checked::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  z-index: -1;
  opacity: 0.1;
}

.login-checkbox .form-check-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  margin: 0;
  line-height: 1.4;
  user-select: none;
}

.login-checkbox .form-check-label:hover {
  color: var(--text-primary);
}

.login-checkbox .form-check-input:checked ~ .form-check-label {
  color: var(--text-primary);
  font-weight: 500;
}

/* Dark mode support for login page */
@media (prefers-color-scheme: dark) {
  .login-card {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .login-input-group .form-control {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--gray-200);
    color: var(--text-primary);
  }
  
  .login-input-group .form-control:focus {
    background: var(--surface-alt);
    color: var(--text-primary);
  }
  
  .login-checkbox .form-check-input {
    background-color: var(--surface-alt);
    border-color: var(--gray-300);
  }
  
  .login-checkbox .form-check-label {
    color: var(--text-secondary);
  }
}

/* ========================================
   Computer Management Styles
   ======================================== */
.computer-card {
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.computer-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.computer-card .card-title {
  line-height: 1.3;
  min-height: 2.6em; /* Két sor magasságának megfelelő hely */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  hyphens: auto;
}

.computer-card .computer-status {
  flex-shrink: 0;
}

.computer-card .computer-actions {
  margin-top: auto;
  flex-shrink: 0;
}

.computer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition-normal);
}

.computer-card:hover::before {
  opacity: 1;
}

.computer-status {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid var(--gray-200);
}

.status-item {
  text-align: center;
}

.power-display {
  color: var(--text-primary);
  font-weight: 600;
}

.status-indicator-modern {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--gray-100);
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 1.5rem;
}

.computer-actions .btn {
  transition: var(--transition-fast);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.computer-actions .btn:hover {
  transform: translateY(-1px);
}

.action-message {
  min-height: 1.25rem;
  display: flex;
  align-items: center;
}

.action-message .msg {
  font-style: italic;
}

/* Computer status color indicators */
.computer-status .text-success {
  color: var(--success) !important;
}

.computer-status .text-warning {
  color: var(--warning) !important;
}

.computer-status .text-info {
  color: var(--info) !important;
}

.computer-status .text-muted {
  color: var(--text-muted) !important;
}

.computer-status .text-danger {
  color: var(--danger) !important;
}

/* Dark mode support for computer cards */
@media (prefers-color-scheme: dark) {
  .computer-status {
    background: var(--surface-alt) !important;
    border-color: var(--gray-200);
  }
  
  .status-indicator-modern {
    background: var(--gray-100) !important;
    color: var(--text-primary) !important;
  }
}

/* ========================================
   Interactive Effects
   ======================================== */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.btn-ripple:active::after {
  width: 200px;
  height: 200px;
}

.loading-dots {
  display: inline-block;
}

.loading-dots::after {
  content: '...';
  animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* ========================================
   Focus Styles
   ======================================== */
*:focus {
  outline: none;
}

.form-control:focus,
.form-select:focus,
.btn:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ========================================
   Dark Mode Support (Improved)
   ======================================== */
@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode color palette */
    --primary: #60a5fa;
    --primary-light: #93c5fd;
    --primary-dark: #3b82f6;
    --secondary: #94a3b8;
    --secondary-light: #cbd5e1;
    
    /* Dark surfaces */
    --surface: #1e293b;
    --surface-alt: #334155;
    --background: #0f172a;
    --background-pattern: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    
    /* Dark text colors */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #1e293b;
    
    /* Dark neutral colors */
    --gray-50: #374151;
    --gray-100: #4b5563;
    --gray-200: #6b7280;
    --gray-300: #9ca3af;
    --gray-400: #d1d5db;
    --gray-500: #e5e7eb;
    --gray-600: #f3f4f6;
    --gray-700: #f9fafb;
    --gray-800: #ffffff;
    --gray-900: #ffffff;
  }
  
  /* Dark mode specific overrides */
  body {
    color: var(--text-primary) !important;
    background: var(--background-pattern) !important;
  }
  
  .navbar {
    background: rgba(30, 41, 59, 0.95) !important;
    border-bottom: 1px solid var(--gray-200);
  }
  
  .glass-effect {
    background: rgba(30, 41, 59, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .content {
    background: var(--surface) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--gray-200);
  }
  
  .card-modern {
    background: var(--surface) !important;
    border: 1px solid var(--gray-200);
    color: var(--text-primary) !important;
  }
  
  .card-modern .card-header {
    background: var(--surface-alt) !important;
    border-bottom: 1px solid var(--gray-200);
    color: var(--text-primary) !important;
  }

  /* Bootstrap standard card dark mode support */
  .card {
    background: var(--surface) !important;
    border: 1px solid var(--gray-200);
    color: var(--text-primary) !important;
  }

  .card .card-header {
    background: var(--surface-alt) !important;
    border-bottom: 1px solid var(--gray-200);
    color: var(--text-primary) !important;
  }

  .card .card-body {
    background: var(--surface) !important;
    color: var(--text-primary) !important;
  }

  .card .card-footer {
    background: var(--surface-alt) !important;
    border-top: 1px solid var(--gray-200);
    color: var(--text-primary) !important;
  }

  .table {
    background: var(--surface) !important;
    border: 1px solid var(--gray-200);
    color: var(--text-primary) !important;
  }
  
  .table thead th {
    background: var(--surface-alt) !important;
    color: var(--text-primary) !important;
    border-bottom: 2px solid var(--gray-200);
  }
  
  .table td {
    border-bottom: 1px solid var(--gray-200);
    color: var(--text-primary) !important;
  }
  
  .table tbody tr:hover {
    background-color: var(--surface-alt) !important;
  }
  
  .form-control {
    background: var(--surface-alt) !important;
    border: 1px solid var(--gray-200);
    color: var(--text-primary) !important;
  }
  
  .form-control:focus {
    background: var(--surface-alt) !important;
    border-color: var(--primary);
    color: var(--text-primary) !important;
  }
  
  .form-select {
    background: var(--surface-alt) !important;
    border: 1px solid var(--gray-200);
    color: var(--text-primary) !important;
  }
  
  .form-select:focus {
    background: var(--surface-alt) !important;
    border-color: var(--primary);
    color: var(--text-primary) !important;
  }
  
  .btn-secondary {
    background: var(--gray-100) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--gray-300);
  }
  
  .btn-secondary:hover {
    background: var(--gray-200) !important;
    color: var(--text-primary) !important;
    border-color: var(--gray-400);
  }
  
  .dropdown-menu {
    background: var(--surface) !important;
    border: 1px solid var(--gray-200);
    color: var(--text-primary) !important;
  }
  
  .dropdown-item {
    color: var(--text-primary) !important;
  }
  
  .dropdown-item:hover {
    background-color: var(--surface-alt) !important;
    color: var(--primary) !important;
  }
  
  .offcanvas {
    background: var(--surface) !important;
    border-right: 1px solid var(--gray-200);
  }
  
  .sidebar-nav .nav-link {
    color: var(--text-secondary) !important;
  }
  
  .sidebar-nav .nav-link:hover {
    color: var(--primary) !important;
    background: linear-gradient(90deg, transparent, var(--surface-alt)) !important;
  }
  
  .sidebar-nav .nav-link.active {
    color: var(--primary) !important;
    background: var(--surface-alt) !important;
  }
  
  .text-muted {
    color: var(--text-muted) !important;
  }
  
  /* Toast notifications in dark mode */
  .toast-modern {
    background: var(--surface) !important;
    border: 1px solid var(--gray-200);
    color: var(--text-primary) !important;
  }
  
  .toast-modern .toast-header {
    background: var(--surface-alt) !important;
    border-bottom: 1px solid var(--gray-200);
    color: var(--text-primary) !important;
  }
  
  /* Bootstrap override fixes for dark mode */
  .alert {
    color: var(--text-primary) !important;
  }
  
  .alert-info {
    background-color: rgba(96, 165, 250, 0.1) !important;
    border-color: var(--primary) !important;
    color: var(--text-primary) !important;
  }
  
  .bg-light {
    background-color: var(--surface-alt) !important;
  }
  
  .text-dark {
    color: var(--text-primary) !important;
  }
  
  .border {
    border-color: var(--gray-200) !important;
  }
  
  .modal-content {
    background: var(--surface) !important;
    border: 1px solid var(--gray-200);
    color: var(--text-primary) !important;
  }
  
  .modal-header {
    background: var(--surface-alt) !important;
    border-bottom: 1px solid var(--gray-200);
    color: var(--text-primary) !important;
  }
  
  .modal-footer {
    background: var(--surface-alt) !important;
    border-top: 1px solid var(--gray-200);
  }
}

/* ========================================
   Multi-Level Dropdown Menu Support
   ======================================== */

/* Dropdown submenu positioning */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -8px;
  margin-left: 2px;
  border-radius: 0 6px 6px 6px;
  min-width: 200px;
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu > .dropdown-menu.show {
  display: block;
}

/* Option 1: CSS Triangle Arrow (Windows-style) */
.dropdown-submenu > a:after {
  display: inline-block;
  content: "";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 4px 0 4px 4px;
  border-left-color: #6c757d;
  margin-top: 6px;
  margin-left: 8px;
  margin-right: -8px;
  transition: all 0.2s ease;
}

/* Option 2: Bootstrap Icon Alternative (uncomment to use instead) */
/*
.dropdown-submenu > a:after {
  display: inline-block;
  content: "";
  float: right;
  font-family: "bootstrap-icons";
  font-size: 0.75rem;
  margin-left: auto;
  margin-top: 2px;
  transition: all 0.2s ease;
  color: #6c757d;
}
*/

.dropdown-submenu:hover > a:after,
.dropdown-submenu > a:focus:after {
  border-left-color: #495057;
  transform: translateX(1px);
}

/* Left positioned submenu for better screen fit */
.dropdown-submenu-left > .dropdown-menu {
  top: 0;
  right: 100%;
  left: auto;
  margin-top: -6px;
  margin-right: -1px;
  border-radius: 6px 0 6px 6px;
}

/* Light mode dropdown improvements */
@media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) {
  .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  }

  .dropdown-item {
    color: #212529 !important;
  }

  .dropdown-item:hover,
  .dropdown-item:focus {
    background-color: #f8f9fa !important;
    color: #1e2125 !important;
  }

  .dropdown-item:active {
    background-color: var(--bs-primary, #0d6efd) !important;
    color: #fff !important;
  }

  /* Light mode arrow colors */
  .dropdown-submenu > a:after {
    border-left-color: #6c757d !important;
  }

  .dropdown-submenu:hover > a:after,
  .dropdown-submenu > a:focus:after {
    border-left-color: #495057 !important;
  }
}

/* Dark mode support for dropdown submenus */
@media (prefers-color-scheme: dark) {
  .dropdown-submenu > a:after {
    border-left-color: #adb5bd !important;
  }

  .dropdown-submenu:hover > a:after,
  .dropdown-submenu > a:focus:after {
    border-left-color: #f8f9fa !important;
    transform: translateX(1px);
  }

  /* Improve dark mode dropdown visibility */
  .dropdown-menu {
    background-color: var(--bs-dark, #212529) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  .dropdown-item {
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .dropdown-item:hover,
  .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
  }

  .dropdown-item:active {
    background-color: var(--bs-primary, #0d6efd) !important;
    color: #fff !important;
  }

  /* Navbar dropdown styling in dark mode */
  .navbar-dark .dropdown-menu {
    background-color: #2c3e50 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  .navbar-dark .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .navbar-dark .dropdown-item:hover,
  .navbar-dark .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
  }
}