:root {
  /* Primary Colors */
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-primary-light: #818cf8;
  
  /* Secondary Colors */
  --color-secondary: #8b5cf6;
  --color-secondary-dark: #7c3aed;
  --color-secondary-light: #a78bfa;
  
  /* Status Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;
  
  /* Neutral Colors - Light Mode */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8fafc;
  --color-bg-tertiary: #f1f5f9;
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-tertiary: #64748b;
  --color-border: #e2e8f0;
  --color-shadow: rgba(0, 0, 0, 0.1);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --color-bg-primary: #0f172a;
  --color-bg-secondary: #1e293b;
  --color-bg-tertiary: #334155;
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #cbd5e1;
  --color-text-tertiary: #94a3b8;
  --color-border: #334155;
  --color-shadow: rgba(0, 0, 0, 0.3);
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-base), color var(--transition-base);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   3. LAYOUT COMPONENTS
   ============================================ */
.container {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

/* Main Content Wrapper */
.main-content {
  min-height: calc(100vh - 200px);
  padding: var(--spacing-xl) 0;
}

/* ============================================
   4. NAVBAR STYLES
   ============================================ */
.navbar {
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-text {
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-left: var(--spacing-md);
}

.theme-toggle:hover {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

/* ============================================
   5. CARD COMPONENTS
   ============================================ */
.card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-header {
  background: var(--color-bg-tertiary);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-lg);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-primary);
}

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

/* Glassmorphism Card */
.card-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

[data-theme="dark"] .card-glass {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Stat Cards */
.stat-card {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

.stat-card-icon {
  font-size: 1.75rem;
  opacity: 0.8;
  margin-bottom: var(--spacing-sm);
}

.stat-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.stat-card-label {
  font-size: 0.75rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   6. BUTTON STYLES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.5;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-success {
  background: var(--color-success);
  color: white;
}

.btn-danger {
  background: var(--color-danger);
  color: white;
}

.btn-warning {
  background: var(--color-warning);
  color: white;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* Icon Buttons */
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ============================================
   7. FORM ELEMENTS
   ============================================ */
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
  color: var(--color-text-tertiary);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.875rem;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

/* Input Group */
.input-group {
  position: relative;
  display: flex;
  align-items: stretch;
}

.input-group .form-control {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-text-secondary);
}

/* ============================================
   8. TABLE STYLES
   ============================================ */
.table-container {
  background: var(--color-bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.table thead {
  background: var(--color-bg-tertiary);
}

.table th {
  padding: var(--spacing-lg);
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  border-bottom: 2px solid var(--color-border);
}

.table td {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

.table tbody tr {
  transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
  background-color: var(--color-bg-tertiary);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   9. BADGE & STATUS INDICATORS
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
}

.badge-info {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--color-info);
}

/* Status Indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-online {
  background-color: var(--color-success);
}

.status-offline {
  background-color: var(--color-danger);
}

.status-unknown {
  background-color: var(--color-text-tertiary);
}

/* ============================================
   10. ALERT & NOTIFICATION STYLES
   ============================================ */
.alert {
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: var(--color-success);
  color: var(--color-success);
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  border-color: var(--color-warning);
  color: var(--color-warning);
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: var(--color-info);
  color: var(--color-info);
}

/* Toast Notifications */
.toast-container {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column;
  gap: var(--spacing-md);
  pointer-events: none;
  max-width: 400px;
}

.toast {
  background: var(--color-bg-primary) !important;
  border: 2px solid !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
  padding: var(--spacing-lg) !important;
  min-width: 300px !important;
  animation: slideInRight 0.3s ease-out !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  transform: translateX(0) !important;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out !important;
  display: block !important;
  visibility: visible !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

.toast.alert-success {
  background-color: #10b981 !important;
  border-color: #059669 !important;
  color: white !important;
}

.toast.alert-danger {
  background-color: #ef4444 !important;
  border-color: #dc2626 !important;
  color: white !important;
}

.toast.alert-warning {
  background-color: #f59e0b !important;
  border-color: #d97706 !important;
  color: white !important;
}

.toast.alert-info {
  background-color: #3b82f6 !important;
  border-color: #2563eb !important;
  color: white !important;
}

/* ============================================
   11. LOADING & OVERLAY
   ============================================ */
#loadingOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#loadingOverlay.show {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  min-width: 300px;
  text-align: center;
}

[data-theme="dark"] .loading-content {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spinner-border-lg {
  width: 3.5rem;
  height: 3.5rem;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--color-primary);
  border-right-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-message {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  max-width: 250px;
  animation: pulse 2s ease-in-out infinite;
}

[data-theme="dark"] .loading-message {
  color: var(--color-text-primary);
}

/* ============================================
   12. FOOTER
   ============================================ */
.footer {
  margin-top: auto;
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-md) 0;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

/* ============================================
   13. LOGIN PAGE STYLES
   ============================================ */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 450px;
  margin: var(--spacing-lg);
}

.login-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.login-logo {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.login-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
}

.login-subtitle {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

/* ============================================
   14. DASHBOARD STYLES
   ============================================ */
.dashboard-header {
  margin-bottom: var(--spacing-lg);
}

.dashboard-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.dashboard-subtitle {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.vps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.vps-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
}

.vps-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.vps-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.vps-card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.vps-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* Enhanced VPS Card Styles */
.vps-card-enhanced {
  overflow: hidden;
  transition: all var(--transition-base);
}

.vps-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-header-enhanced {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: var(--spacing-lg);
  border: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.vps-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.vps-title {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
}

.vps-title i {
  font-size: 1.25rem;
  opacity: 0.9;
}

.vps-header-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.1);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.info-item i {
  font-size: 1.125rem;
  margin-top: 2px;
  opacity: 0.9;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.info-content small {
  font-size: 0.625rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-content strong {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Status Badge in Header */
#status-badge-1,
#status-badge-2,
#status-badge-3,
[id^="status-badge-"] {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

[id^="status-badge-"].bg-success {
  background: rgba(16, 185, 129, 0.9) !important;
  border-color: rgba(16, 185, 129, 1);
}

[id^="status-badge-"].bg-danger {
  background: rgba(239, 68, 68, 0.9) !important;
  border-color: rgba(239, 68, 68, 1);
}

[id^="status-badge-"].bg-warning {
  background: rgba(245, 158, 11, 0.9) !important;
  border-color: rgba(245, 158, 11, 1);
}

/* Responsive adjustments for VPS header */
@media (max-width: 768px) {
  .vps-header-info {
    grid-template-columns: 1fr;
  }
  
  .info-item {
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .info-content small {
    font-size: 0.625rem;
  }
  
  .info-content strong {
    font-size: 0.8125rem;
  }
}

/* VPS Quick Info Boxes */
.vps-quick-info {
  background: var(--color-bg-secondary);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.info-box {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--color-bg-primary);
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  min-width: 0;
}

.info-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.info-box i {
  font-size: 1.25rem;
  color: var(--color-primary);
  opacity: 0.8;
}

.info-box-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.info-box-content small {
  font-size: 0.625rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.info-box-content strong {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.info-box-full {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--color-bg-primary);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.info-box-full i {
  font-size: 1.125rem;
  color: var(--color-info);
  opacity: 0.8;
}

.info-box-full .info-box-content {
  flex: 1;
}

.info-box-full .ip-address {
  font-family: 'Courier New', monospace;
  font-size: 0.8125rem;
  color: var(--color-primary);
}

.vps-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.vps-info-row:last-child {
  border-bottom: none;
}

.vps-info-label {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.vps-info-value {
  font-weight: 600;
  color: var(--color-text-primary);
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 150px;
}

.vps-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

/* ============================================
   15. MODAL STYLES
   ============================================ */
.modal-content {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  background: var(--color-bg-tertiary);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-title {
  font-weight: 600;
  color: var(--color-text-primary);
}

.modal-body {
  padding: var(--spacing-lg);
}

.modal-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-md);
}

/* ============================================
   16. ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.3s ease-out;
}

/* ============================================
   17. UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--color-text-secondary);
}

[data-theme="dark"] .text-muted {
  color: var(--color-text-secondary) !important;
}

.text-dark {
  color: var(--color-text-primary) !important;
}

.fw-semibold {
  font-weight: 600;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.gap-2 {
  gap: var(--spacing-sm);
}

.gap-3 {
  gap: var(--spacing-md);
}

/* ============================================
   18. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .container {
    padding: var(--spacing-md);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .vps-grid {
    grid-template-columns: 1fr;
  }
  
  .login-card {
    margin: var(--spacing-md);
  }
  
  .card-body.p-5 {
    padding: var(--spacing-lg) !important;
  }
  
  .dashboard-title {
    font-size: 1.5rem;
  }
  
  .toast-container {
    top: var(--spacing-md);
    right: var(--spacing-md);
    left: var(--spacing-md);
  }
  
  .toast {
    min-width: auto;
  }
  
  .table-container {
    overflow-x: auto;
  }
  
  .vps-actions {
    flex-direction: column;
  }
  
  .vps-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text-primary);
}
  
  .stat-card-value {
    font-size: 1.5rem;
  }
  
  .login-title {
    font-size: 1.5rem;
  }
}

/* ============================================
   19. PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .footer,
  .theme-toggle,
  .btn,
  .vps-actions {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ============================================
   20. MODERN OS MODAL STYLES
   ============================================ */

/* Modern Modal Base */
.modern-modal .modal-content {
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modern-modal-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: var(--spacing-xl);
  border: none;
}

.modern-modal-header.bg-gradient-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.modal-icon-wrapper {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.modal-icon-wrapper.warning-icon {
  background: rgba(255, 255, 255, 0.25);
  animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
}

.modal-subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
}

.modern-modal-body {
  padding: var(--spacing-xl);
  max-height: 70vh;
  overflow-y: auto;
}

/* OS Search Container */
.os-search-container .input-group-text {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.os-search-container .form-control {
  border: 1px solid var(--color-border);
  font-size: 1rem;
}

.os-search-container .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* OS Cards Grid */
.os-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.os-card {
  background: var(--color-bg-primary);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.os-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--os-color), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.os-card:hover::before {
  transform: translateX(100%);
}

.os-card:hover {
  transform: translateY(-4px);
  border-color: var(--os-color);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.os-card:active {
  transform: translateY(-2px);
}

/* Distro-specific colors */
.os-card.windows {
  --os-color: #0078d4;
}

.os-card.ubuntu {
  --os-color: #e95420;
}

.os-card.debian {
  --os-color: #a80030;
}

.os-card.centos {
  --os-color: #932279;
}

.os-card.rocky {
  --os-color: #10b981;
}

.os-card.almalinux {
  --os-color: #000000;
}

.os-card.fedora {
  --os-color: #51a2da;
}

.os-card.arch {
  --os-color: #1793d1;
}

.os-card.others {
  --os-color: #6b7280;
}

[data-theme="dark"] .os-card.almalinux {
  --os-color: #ffffff;
}

.os-card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.os-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--os-color), var(--os-color));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.os-card-title {
  flex: 1;
  min-width: 0;
}

.os-card-title h6 {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.os-card-title small {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  display: block;
  margin-top: 2px;
}

.os-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
}

.os-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.25rem 0.625rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.os-popular-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: white;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Distro Category Headers */
.distro-category {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.distro-category:first-child {
  margin-top: 0;
}

.distro-category-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-border);
}

.distro-category-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
}

.distro-category-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

/* Reinstall Steps Progress */
.reinstall-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  flex: 1;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--color-bg-tertiary);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
}

.step-item.active .step-number {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.step-item.completed .step-number {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: center;
}

.step-item.active .step-label {
  color: var(--color-primary);
}

.step-line {
  height: 2px;
  flex: 1;
  background: var(--color-border);
  margin: 0 var(--spacing-sm);
  margin-bottom: 28px;
}

/* Warning Alert Modern */
.alert-warning-modern {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.1));
  border: 2px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  color: var(--color-text-primary);
}

.alert-warning-modern i {
  color: #f59e0b;
}

.alert-warning-modern .alert-heading {
  color: #f59e0b;
  font-weight: 700;
}

/* Selected OS Card */
.selected-os-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
}

/* Form text dark mode fix */
.form-text {
  color: var(--color-text-secondary) !important;
}

[data-theme="dark"] .form-text {
  color: var(--color-text-secondary) !important;
}

.os-icon-large {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Empty State */
.empty-state-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-primary);
  margin: 0 auto;
}

/* Responsive Design for OS Cards */
@media (max-width: 768px) {
  .os-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .reinstall-steps {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .step-line {
    display: none;
  }
  
  .modern-modal-body {
    padding: var(--spacing-lg);
  }
}

/* Loading Animation for OS Cards */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.os-card-skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-secondary) 0%,
    var(--color-bg-tertiary) 50%,
    var(--color-bg-secondary) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: var(--radius-lg);
  height: 140px;
}

/* ============================================
   21. SWEETALERT2 CUSTOM STYLES
   ============================================ */

/* Modern Popup Styles */
.swal-modern-popup {
  border-radius: var(--radius-xl) !important;
  padding: var(--spacing-xl) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  background: var(--color-bg-primary) !important;
  border: 1px solid var(--color-border) !important;
}

.swal-modern-title {
  color: var(--color-text-primary) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  padding: 0 0 var(--spacing-md) 0 !important;
}

.swal-modern-text {
  color: var(--color-text-secondary) !important;
  font-size: 1rem !important;
  padding: 0 0 var(--spacing-lg) 0 !important;
}

/* Modern Buttons */
.swal-modern-confirm,
.swal-modern-cancel {
  border-radius: var(--radius-md) !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  border: none !important;
  transition: all var(--transition-base) !important;
  box-shadow: var(--shadow-sm) !important;
}

.swal-modern-confirm:hover,
.swal-modern-cancel:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-lg) !important;
}

.swal-modern-confirm {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: white !important;
  margin-left: 0.5rem !important; /* İptal butonundan uzaklaştır */
}

.swal-modern-cancel {
  background: var(--color-bg-tertiary) !important;
  color: var(--color-text-primary) !important;
  border: 1px solid var(--color-border) !important;
  margin-right: 0.5rem !important; /* Onay butonundan uzaklaştır */
}

/* SweetAlert2 actions container için ekstra boşluk */
.swal2-actions {
  gap: 0.5rem !important;
  padding: 0.75rem !important;
}

/* Icon Styling */
.swal2-icon {
  border: none !important;
  margin: var(--spacing-lg) auto !important;
}

.swal2-success {
  border-color: var(--color-success) !important;
}

.swal2-error {
  border-color: var(--color-danger) !important;
}

.swal2-warning {
  border-color: var(--color-warning) !important;
  color: var(--color-warning) !important;
}

.swal2-info {
  border-color: var(--color-info) !important;
}

/* Toast Notifications */
.swal-toast-popup {
  background: var(--color-bg-primary) !important;
  border: 2px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
  padding: var(--spacing-md) var(--spacing-lg) !important;
  min-width: 300px !important;
}

.swal-toast-title {
  color: var(--color-text-primary) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
}

.swal-toast-icon {
  margin: 0 var(--spacing-sm) 0 0 !important;
}

/* Success Toast */
.swal2-toast.swal2-icon-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #059669 !important;
}

.swal2-toast.swal2-icon-success .swal-toast-title {
  color: white !important;
}

.swal2-toast.swal2-icon-success .swal2-icon {
  border-color: white !important;
  color: white !important;
}

/* Error Toast */
.swal2-toast.swal2-icon-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border-color: #dc2626 !important;
}

.swal2-toast.swal2-icon-error .swal-toast-title {
  color: white !important;
}

.swal2-toast.swal2-icon-error .swal2-icon {
  border-color: white !important;
  color: white !important;
}

/* Warning Toast */
.swal2-toast.swal2-icon-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border-color: #d97706 !important;
}

.swal2-toast.swal2-icon-warning .swal-toast-title {
  color: white !important;
}

.swal2-toast.swal2-icon-warning .swal2-icon {
  border-color: white !important;
  color: white !important;
}

/* Info Toast */
.swal2-toast.swal2-icon-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  border-color: #2563eb !important;
}

.swal2-toast.swal2-icon-info .swal-toast-title {
  color: white !important;
}

.swal2-toast.swal2-icon-info .swal2-icon {
  border-color: white !important;
  color: white !important;
}

/* Timer Progress Bar */
.swal2-timer-progress-bar {
  background: rgba(255, 255, 255, 0.5) !important;
}

/* Backdrop - Blur ve arka plan kaldırıldı */
.swal2-container {
  backdrop-filter: none !important;
  background-color: transparent !important;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .swal-modern-popup {
  background: var(--color-bg-secondary) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .swal-toast-popup {
  background: var(--color-bg-secondary) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

/* Animation */
.swal2-show {
  animation: swal2-show 0.3s !important;
}

.swal2-hide {
  animation: swal2-hide 0.15s !important;
}

@keyframes swal2-show {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  45% {
    transform: scale(1.05);
    opacity: 1;
  }
  80% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes swal2-hide {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.5);
    opacity: 0;
  }
}

/* ============================================
   22. ACCESSIBILITY
   ============================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles */
*:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:focus,
.form-control:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --color-border: #000;
  }
  
  [data-theme="dark"] {
    --color-border: #fff;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
