/* IDz KYC Platform - Unified Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables - Algerian Theme */
:root {
  /* Algerian Flag Colors */
  --algeria-red: #d63031;
  --algeria-red-dark: #b71c1c;
  --algeria-red-light: #ff5252;
  --algeria-green: #00b894;
  --algeria-green-dark: #00695c;
  --algeria-green-light: #4caf50;
  
  /* Primary colors using Algerian theme */
  --primary: var(--algeria-green);
  --primary-dark: var(--algeria-green-dark);
  --primary-light: var(--algeria-green-light);
  --secondary: var(--algeria-red);
  --secondary-dark: var(--algeria-red-dark);
  --secondary-light: var(--algeria-red-light);
  --success: #2e7d32;
  --warning: #f57c00;
  --error: var(--algeria-red);
  
  /* Light theme colors with high contrast */
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #424242;
  --gray-800: #212121;
  --gray-900: #000000;
  
  /* Background colors */
  --background: #f8fafc;
  --background-light: #fafbfc;
  --card-bg: rgba(255, 255, 255, 0.95);
  --glass: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(0, 184, 148, 0.2);
  
  /* Text colors */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  
  /* Border colors */
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --border-dark: #d1d5db;
  
  /* Enhanced shadows for better contrast */
  --shadow-sm: 0 2px 4px 0 rgb(0 0 0 / 0.1);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.15), 0 2px 4px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 6px 10px -2px rgb(0 0 0 / 0.15), 0 4px 6px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 12px 20px -4px rgb(0 0 0 / 0.15), 0 6px 8px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 24px 32px -6px rgb(0 0 0 / 0.15), 0 12px 16px -6px rgb(0 0 0 / 0.1);
  
  /* Border radius and transitions */
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base Body Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 50%, var(--white) 100%);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 184, 148, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(214, 48, 49, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header Styles */
.header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: var(--transition);
  padding: 1.5rem 2rem;
  border-radius: 0 0 12px 12px;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}



/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--algeria-green) 0%, var(--algeria-red) 100%);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 50%;
  bottom: 0;
  background: var(--algeria-green);
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  right: 0;
  bottom: 0;
  background: var(--algeria-red);
}

.logo-icon span {
  position: relative;
  z-index: 1;
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--algeria-green) 0%, var(--algeria-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}



.nav-link {
  color: #3d3d3d;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  transition: var(--transition);
  border: 2px solid var(--gray-300);
  background: rgba(255, 255, 255, 0.8);
}

.nav-link:hover {
  color: var(--algeria-green);
  background: rgba(0, 184, 148, 0.1);
  border-color: var(--algeria-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Main Content */
.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--algeria-green), var(--algeria-red));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 50%, var(--algeria-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--gray-800);
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  line-height: 1.6;
}

/* Card Styles */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.nav-card, .card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.nav-card::before, .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--algeria-green) 0%, var(--algeria-red) 100%);
  opacity: 0;
  transition: var(--transition);
}

.nav-card:hover, .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--algeria-green);
  background: rgba(255, 255, 255, 1);
}

.nav-card:hover::before, .card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
}

.card-icon.docs { 
  background: linear-gradient(135deg, var(--algeria-green) 0%, #00b894 100%); 
  color: white; 
}

.card-icon.test { 
  background: linear-gradient(135deg, var(--algeria-red) 0%, #e74c3c 100%); 
  color: white; 
}

.card-icon.dashboard { 
  background: linear-gradient(135deg, var(--algeria-green) 0%, var(--algeria-red) 100%); 
  color: white; 
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #000000;
}

.card-description {
  color: #2b2b2bab;
  line-height: 1.6;

}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.875rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

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

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  transition: var(--transition);
  background: white;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

/* Upload Styles */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.upload-area:hover {
  border-color: var(--primary);
  background: rgba(0, 184, 148, 0.05);
}

.upload-area.dragover {
  border-color: var(--primary);
  background: rgba(0, 184, 148, 0.1);
}

/* Status Styles */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status.success {
  background: rgba(46, 125, 50, 0.1);
  color: var(--success);
}

.status.error {
  background: rgba(231, 76, 60, 0.1);
  color: var(--error);
}

.status.warning {
  background: rgba(245, 124, 0, 0.1);
  color: var(--warning);
}

.status.pending {
  background: rgba(158, 158, 158, 0.1);
  color: var(--gray-600);
}

/* Status Dot Animation */
.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

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

/* Status Indicators */
.status-indicators {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid;
}

.status-pill.online {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border-color: var(--success);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  margin-top: 3rem;
}

.footer-text {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* Results Display */
.results {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 400px;
  overflow-y: auto;
  color: var(--text-primary);
  width: 100%;
  resize: vertical;
  min-height: 120px;
}

.results:empty {
  display: none;
}

textarea.results {
  display: block;
  font-family: 'Courier New', monospace;
  background: #f8f9fa;
  border: 2px solid var(--border);
  transition: var(--transition);
}

textarea.results:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

textarea.results:placeholder-shown {
  display: block;
}

/* Loading Indicators */
.loading-indicator {
  display: none;
  text-align: center;
  padding: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.loading-indicator.htmx-indicator {
  display: block;
}

/* Spinner Animation */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 184, 148, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
  margin-right: 0.5rem;
}

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

/* File Input Styling */
.file-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  transition: var(--transition);
  background: white;
  cursor: pointer;
}

.file-input:hover {
  border-color: var(--primary);
}

.file-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--border-radius-sm); }
.rounded-lg { border-radius: var(--border-radius); }
.rounded-xl { border-radius: var(--border-radius-lg); }

.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
  }
  
  .main {
    padding: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .nav-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: none;
    margin: 0;
  }
  
  .nav-actions {
    display: none;
  }
  
  .container {
    padding: 1rem;
  }
}

/* Dashboard Specific Styles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--algeria-green) 0%, var(--algeria-red) 100%);
  opacity: 0.8;
}

.stat-card.total::before {
  background: var(--gray-600);
}

.stat-card.success::before {
  background: var(--success);
}

.stat-card.failed::before {
  background: var(--error);
}

.stat-card.flagged::before {
  background: var(--warning);
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #252525;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: #000000;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.controls {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.controls-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.controls-header h3 {
  color: #252525;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.search-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-input {
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--gray-900);
  transition: var(--transition);
  min-width: 250px;
}

.search-input:focus {
  outline: none;
  border-color: var(--algeria-green);
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.search-btn {
  padding: 0.75rem 1.5rem;
  background: var(--algeria-green);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--algeria-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.filter-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--gray-300);
  background: var(--white);
  color: #252525;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.filter-btn:hover {
  border-color: var(--algeria-green);
  color: var(--algeria-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.filter-btn.active {
  background: var(--algeria-green);
  border-color: var(--algeria-green);
  color: white;
  box-shadow: var(--shadow-md);
}

/* Session List Styles */
.sessions-container {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}

.sessions-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.sessions-header h2 {
  margin: 0;
  color: #252525;
  font-size: 1.5rem;
  font-weight: 600;
}

.session-item {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.session-item:last-child {
  margin-bottom: 0;
}

.session-item:hover {
  border-color: var(--algeria-green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 1);
}

.session-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--algeria-green) 0%, var(--algeria-red) 100%);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  opacity: 0;
  transition: var(--transition);
}

.session-item:hover::before {
  opacity: 1;
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
}

.session-id {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--gray-100);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  font-weight: 500;
}

.session-status {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.session-status.success {
  background: rgba(46, 125, 50, 0.1);
  color: var(--success);
  border: 1px solid #00695c
}

.session-status.failed {
  background: rgba(214, 48, 49, 0.1);
  color: var(--error);
  border: 1px solid var(--error);
}

.session-status.flagged {
  background: rgba(245, 124, 0, 0.1);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.session-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.session-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.session-detail strong {
  color: var(--gray-800);
  font-weight: 600;
}

.status-indicator {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-indicator.success {
  background: rgba(46, 125, 50, 0.1);
  color: var(--success);
  border: 1px solid #00695c;
}

.status-indicator.failed {
  background: rgba(214, 48, 49, 0.1);
  color: var(--error);
  border: 1px solid var(--error);
}

.status-indicator.flagged {
  background: rgba(245, 124, 0, 0.1);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.session-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.session-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.session-btn:hover {
  border-color: var(--algeria-green);
  color: var(--algeria-green);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.session-btn.primary {
  background: var(--algeria-green);
  border-color: var(--algeria-green);
  color: white;
}

.session-btn.primary:hover {
  background: var(--algeria-green-dark);
  border-color: var(--algeria-green-dark);
  color: white;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --gray-50: #111827;
    --gray-100: #1f2937;
    --gray-200: #374151;
    --gray-300: #4b5563;
    --gray-400: #6b7280;
    --gray-500: #9ca3af;
    --gray-600: #d1d5db;
    --gray-700: #e5e7eb;
    --gray-800: #f3f4f6;
    --gray-900: #f9fafb;
  }
  
  body {
    background: linear-gradient(135deg, var(--gray-50) 0%, #0f172a 100%);
  }
}