/* Global Interpreting Service - Onboarding Platform */
/* "Dialogue" Design System - Warm, Human, Connected */

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

:root {
  /* Professional Blue Palette - Brand Colors */
  --primary-blue: #0066cc;
  --primary-blue-dark: #004d99;
  --primary-blue-light: #3385d6;
  --accent-indigo: #4f46e5;
  --accent-indigo-dark: #4338ca;
  --accent-cyan: #0891b2;
  --accent-cyan-dark: #0e7490;

  /* Cool Slate Neutrals */
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;

  /* Semantic Colors */
  --success-green: #10b981;
  --success-light: #d1fae5;
  --warning-amber: #f59e0b;
  --warning-light: #fef3c7;
  --error-red: #dc2626;
  --error-light: #fee2e2;
  --info-blue: #3b82f6;
  --info-light: #dbeafe;

  /* Professional Gradients */
  --gradient-primary: linear-gradient(135deg, #0066cc 0%, #3385d6 100%);
  --gradient-blue-indigo: linear-gradient(135deg, #0066cc 0%, #4f46e5 100%);
  --gradient-indigo: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  --gradient-cyan: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  --gradient-slate: linear-gradient(135deg, #334155 0%, #1e293b 100%);

  /* Refined Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 102, 204, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 102, 204, 0.1), 0 2px 4px -1px rgba(0, 102, 204, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 102, 204, 0.15), 0 4px 6px -2px rgba(0, 102, 204, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(0, 102, 204, 0.2), 0 10px 10px -5px rgba(0, 102, 204, 0.1);
  --shadow-indigo: 0 10px 15px -3px rgba(79, 70, 229, 0.2), 0 4px 6px -2px rgba(79, 70, 229, 0.1);
  --shadow-cyan: 0 10px 15px -3px rgba(8, 145, 178, 0.2), 0 4px 6px -2px rgba(8, 145, 178, 0.1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--neutral-800);
  background: var(--neutral-50);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(0, 102, 204, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(79, 70, 229, 0.02) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header with Gradient */
.header {
  background: white;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid transparent;
  border-image: var(--gradient-primary) 1;
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo img {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 102, 204, 0.1));
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.logo h1 {
  font-family: 'Epilogue', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: none;
  letter-spacing: -0.02em;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.user-name {
  font-weight: 600;
  color: var(--neutral-700);
  display: none;
  font-size: 0.95rem;
}

.btn-logout {
  padding: 0.625rem 1.25rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  font-family: 'Inter', sans-serif;
}

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

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

/* Navigation Bar */
.nav-bar {
  background: white;
  border-bottom: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
}

.nav-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-content::-webkit-scrollbar {
  display: none;
}

.nav-link {
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--neutral-600);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  display: inline-block;
  position: relative;
  white-space: nowrap;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--primary-blue);
  background-color: rgba(0, 102, 204, 0.04);
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-blue);
  font-weight: 600;
}

.nav-link.active::before {
  width: 100%;
}

/* Main Container */
.container {
  max-width: 1280px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}

/* Cards with Elevated Design */
.card {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  border: 1px solid var(--neutral-100);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.card:hover::before {
  opacity: 1;
}

.card-header {
  border-bottom: 2px solid var(--neutral-100);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.card-header h2 {
  font-family: 'Epilogue', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--neutral-900);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.card-header p {
  color: var(--neutral-500);
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* Dashboard Overview Card - Compact */
.dashboard-card {
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.02) 0%, rgba(79, 70, 229, 0.02) 100%);
}

.dashboard-card .card-header {
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.dashboard-card .card-header h2 {
  font-size: 1.5rem;
}

.dashboard-card .card-header p {
  font-size: 0.9rem;
  margin-top: 0.375rem;
}

/* Progress Bar - Gradient Style */
.progress-container {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  border-radius: 16px;
  border: 1px solid var(--neutral-100);
}

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

.progress-label {
  font-family: 'Epilogue', sans-serif;
  font-weight: 600;
  color: var(--neutral-700);
  font-size: 1.1rem;
}

.progress-percent {
  font-family: 'Epilogue', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.progress-bar-container {
  width: 100%;
  height: 20px;
  background-color: var(--neutral-100);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Document List */
.document-list {
  display: grid;
  gap: 1.25rem;
}

.document-item {
  border: 2px solid var(--neutral-200);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  background: white;
  position: relative;
  overflow: hidden;
}

.document-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--neutral-300);
  transition: all 0.3s ease;
}

.document-item.completed {
  border-color: var(--success-green);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(16, 185, 129, 0.01) 100%);
}

.document-item.completed::before {
  background: var(--gradient-cyan);
}

.document-item.rejected {
  border-color: var(--error-red);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.03) 0%, rgba(239, 68, 68, 0.01) 100%);
}

.document-item.rejected::before {
  background: var(--error-red);
}

.document-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.document-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  gap: 1.25rem;
}

.document-info h3 {
  font-family: 'Epilogue', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.document-info p {
  color: var(--neutral-500);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Status Badges - Refined Design */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  border: 2px solid;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.status-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.status-badge.pending {
  background-color: var(--neutral-100);
  color: var(--neutral-600);
  border-color: var(--neutral-200);
}

.status-badge.pending::before {
  background: var(--neutral-400);
}

.status-badge.pending-review {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  color: #92400e;
  border-color: var(--warning-amber);
}

.status-badge.pending-review::before {
  background: var(--warning-amber);
}

.status-badge.rejected {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
  color: #991b1b;
  border-color: var(--error-red);
}

.status-badge.rejected::before {
  background: var(--error-red);
}

.status-badge.completed {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  color: #065f46;
  border-color: var(--success-green);
}

.status-badge.completed::before {
  background: var(--success-green);
}

.document-upload {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* File Upload - Modern Style */
.file-input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-input {
  display: none;
}

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-md);
  font-family: 'Inter', sans-serif;
}

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

.file-input-label:active {
  transform: translateY(0);
}

.file-input-label.disabled {
  background: var(--neutral-300);
  cursor: not-allowed;
  box-shadow: none;
}

.upload-info {
  font-size: 0.875rem;
  color: var(--neutral-500);
  text-align: center;
}

.uploaded-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
  border-radius: 12px;
  color: #065f46;
  border: 2px solid rgba(16, 185, 129, 0.2);
}

.uploaded-info svg {
  flex-shrink: 0;
  color: var(--success-green);
}

/* Buttons - Gradient Style */
.btn {
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: var(--shadow-sm);
  font-family: 'Inter', sans-serif;
  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);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

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

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

.btn-secondary {
  background: var(--neutral-200);
  color: var(--neutral-700);
}

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

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

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

.btn-danger {
  background: linear-gradient(135deg, var(--error-red) 0%, #dc2626 100%);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
}

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

.btn-block {
  width: 100%;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  display: block;
  margin-bottom: 0.625rem;
  font-weight: 600;
  color: var(--neutral-700);
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid var(--neutral-200);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  font-family: 'Inter', sans-serif;
}

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

/* Table - Modern Card-like Design */
.table-container {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 16px;
  overflow: hidden;
}

.table thead {
  background: linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-700) 100%);
  color: white;
}

.table th {
  padding: 1.125rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Epilogue', sans-serif;
}

.table td {
  padding: 1.125rem 1.25rem;
  text-align: left;
  font-size: 0.95rem;
}

.table tbody tr {
  border-bottom: 1px solid var(--neutral-100);
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background: linear-gradient(90deg, rgba(0, 102, 204, 0.03) 0%, transparent 100%);
  transform: scale(1.01);
  box-shadow: var(--shadow-sm);
}

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

/* Sort Indicators */
.sort-indicator {
  display: inline-block;
  margin-left: 0.5rem;
  opacity: 0.4;
  font-size: 0.875rem;
  transition: opacity 0.2s;
}

.sort-indicator::after {
  content: '⇅';
}

.sort-indicator.asc,
.sort-indicator.desc {
  opacity: 1;
  color: var(--primary-blue);
}

.sort-indicator.asc::after {
  content: '↑';
}

.sort-indicator.desc::after {
  content: '↓';
}

/* Stats Grid - Vibrant Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 0;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 102, 204, 0.2);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-value {
  font-family: 'Epilogue', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  color: var(--neutral-600);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Filter/Search Bar */
.filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 0.875rem 1.125rem;
  border: 2px solid var(--neutral-200);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.filter-select {
  padding: 0.875rem 1.125rem;
  border: 2px solid var(--neutral-200);
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Loading Spinner - Gradient */
.spinner {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 4px solid var(--neutral-100);
  border-top: 4px solid var(--primary-blue);
  border-right: 4px solid var(--accent-indigo);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  flex-direction: column;
  gap: 1rem;
}

/* Alert Messages - Modern Style */
.alert {
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  margin-bottom: 1.75rem;
  border: 2px solid;
  font-weight: 500;
}

.alert-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-color: var(--success-green);
  color: #065f46;
}

.alert-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
  border-color: var(--error-red);
  color: #991b1b;
}

.alert-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  border-color: var(--warning-amber);
  color: #92400e;
}

.alert-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-color: var(--info-blue);
  color: #1e40af;
}

/* Modal - Elevated Design */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--neutral-100);
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--neutral-100);
}

.modal-header h2 {
  font-family: 'Epilogue', sans-serif;
  font-weight: 700;
  color: var(--neutral-900);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.modal-close {
  background: var(--neutral-100);
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--neutral-600);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--neutral-200);
  color: var(--neutral-800);
  transform: rotate(90deg);
}

/* Login Page - Warm Gradient */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
  padding: 1.5rem;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.login-card {
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  padding: 3.5rem;
  max-width: 480px;
  width: 100%;
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-logo {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-logo img {
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 102, 204, 0.2));
}

.login-title {
  text-align: center;
  margin-bottom: 2.5rem;
  font-family: 'Epilogue', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--neutral-900);
  letter-spacing: -0.02em;
}

/* Password Notice */
.password-notice {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  border-left: 4px solid var(--warning-amber);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  border-radius: 12px;
}

.password-notice p {
  margin: 0;
  color: #92400e;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--neutral-500);
}

.empty-state svg {
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.empty-state h3 {
  margin-bottom: 0.75rem;
  color: var(--neutral-700);
  font-family: 'Epilogue', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none; }

/* Toast Notifications - Modern Design */
#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 420px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  border-left: 4px solid;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  min-width: 320px;
}

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

.toast.success {
  border-left-color: var(--success-green);
}

.toast.error {
  border-left-color: var(--error-red);
}

.toast.warning {
  border-left-color: var(--warning-amber);
}

.toast.info {
  border-left-color: var(--info-blue);
}

.toast-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 50%;
}

.toast.success .toast-icon {
  color: var(--success-green);
  background: var(--success-light);
}

.toast.error .toast-icon {
  color: var(--error-red);
  background: var(--error-light);
}

.toast.warning .toast-icon {
  color: var(--warning-amber);
  background: var(--warning-light);
}

.toast.info .toast-icon {
  color: var(--info-blue);
  background: var(--info-light);
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: var(--neutral-900);
}

.toast-message {
  margin: 0;
  font-size: 0.9rem;
  color: var(--neutral-600);
  word-wrap: break-word;
}

.toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  background: var(--neutral-100);
  cursor: pointer;
  color: var(--neutral-600);
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  transition: all 0.2s ease;
  border-radius: 8px;
}

.toast-close:hover {
  background: var(--neutral-200);
  color: var(--neutral-800);
}

/* Custom Confirm Dialog */
.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.confirm-modal.active {
  display: flex;
}

.confirm-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}

.confirm-content {
  position: relative;
  background: white;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 2px solid var(--neutral-100);
}

.confirm-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--neutral-900);
  font-family: 'Epilogue', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.confirm-body {
  padding: 2rem;
}

.confirm-body p {
  margin: 0;
  color: var(--neutral-600);
  line-height: 1.6;
  font-size: 1rem;
}

.confirm-footer {
  padding: 1.5rem 2rem 2rem;
  border-top: 2px solid var(--neutral-100);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Responsive Design */
@media (min-width: 768px) {
  .logo h1 {
    display: block;
  }

  .user-name {
    display: block;
  }

  .document-list {
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .header-content {
    padding: 1rem 1.25rem;
  }

  .logo img {
    height: 44px;
  }

  .nav-content {
    padding: 0 1.25rem;
  }

  .nav-link {
    padding: 0.875rem 1.125rem;
    font-size: 0.9rem;
  }

  .container {
    padding: 0 1.25rem;
    margin: 1.5rem auto;
  }

  .card {
    padding: 1.75rem;
    border-radius: 16px;
  }

  .card-header h2 {
    font-size: 1.5rem;
  }

  .document-header {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .filter-bar {
    flex-direction: column;
  }

  .search-input {
    width: 100%;
  }

  #toast-container {
    left: 1.25rem;
    right: 1.25rem;
    max-width: none;
  }

  .toast {
    min-width: auto;
  }

  /* Full-screen modals on mobile */
  .modal-content {
    max-width: 100vw !important;
    max-height: 100vh;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    padding: 2rem 1.5rem;
  }

  .modal {
    padding: 0;
  }

  /* Mobile card layout for table */
  .table-container {
    overflow-x: visible;
    border-radius: 0;
    box-shadow: none;
  }

  .table {
    display: block;
  }

  .table thead {
    display: none;
  }

  .table tbody {
    display: block;
  }

  .table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 2px solid var(--neutral-200);
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
  }

  .table tbody tr:hover {
    transform: none;
  }

  .table tbody td {
    display: block;
    text-align: left !important;
    padding: 0.625rem 0;
    border: none;
  }

  .table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--neutral-600);
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
  }

  .table tbody td:first-child {
    display: none;
  }

  .table tbody td:last-child {
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-200);
  }

  .table tbody td:last-child::before {
    display: none;
  }

  .login-card {
    padding: 2.5rem 1.75rem;
  }
}

/* Kanban Board Specific Styles */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .kanban-board {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kanban-column {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.25rem;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.kanban-column:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kanban-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid;
}

.kanban-column-title {
  font-family: 'Epilogue', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--neutral-900);
  letter-spacing: -0.01em;
}

.kanban-column-count {
  font-family: 'Epilogue', sans-serif;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 10px;
  min-width: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.kanban-column.incomplete .kanban-column-header {
  border-bottom-color: var(--error-red);
}

.kanban-column.incomplete .kanban-column-count {
  background: var(--error-red);
}

.kanban-column.pending-review .kanban-column-header {
  border-bottom-color: var(--warning-amber);
}

.kanban-column.pending-review .kanban-column-count {
  background: var(--warning-amber);
  color: var(--neutral-900);
}

.kanban-column.approved .kanban-column-header {
  border-bottom-color: var(--accent-indigo);
}

.kanban-column.approved .kanban-column-count {
  background: var(--gradient-indigo);
}

.kanban-column.completed .kanban-column-header {
  border-bottom-color: var(--success-green);
}

.kanban-column.completed .kanban-column-count {
  background: var(--gradient-cyan);
}

.kanban-cards {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--neutral-300) transparent;
}

.kanban-cards::-webkit-scrollbar {
  width: 6px;
}

.kanban-cards::-webkit-scrollbar-thumb {
  background: var(--neutral-300);
  border-radius: 3px;
}

.kanban-card {
  background: white;
  border: 2px solid var(--neutral-200);
  border-radius: 12px;
  padding: 1.125rem;
  margin-bottom: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.kanban-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.kanban-card-name {
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-family: 'Epilogue', sans-serif;
  letter-spacing: -0.01em;
}

.kanban-card-email {
  font-size: 0.875rem;
  color: var(--neutral-500);
  margin-bottom: 0.875rem;
  word-break: break-word;
}

.kanban-card-progress {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
}

.kanban-progress-bar {
  flex: 1;
  height: 6px;
  background-color: var(--neutral-200);
  border-radius: 3px;
  overflow: hidden;
}

.kanban-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.kanban-progress-text {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--neutral-600);
  min-width: 42px;
  text-align: right;
  font-family: 'Epilogue', sans-serif;
}

.kanban-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--neutral-500);
  padding-top: 0.625rem;
  border-top: 1px solid var(--neutral-200);
  font-weight: 500;
}

.empty-column {
  text-align: center;
  color: var(--neutral-400);
  padding: 2.5rem 1.25rem;
  font-size: 0.9375rem;
  font-style: italic;
}

/* Filter Buttons */
.filter-section {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.filter-button {
  padding: 0.625rem 1.25rem;
  border: 2px solid var(--neutral-200);
  background: white;
  color: var(--neutral-600);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.filter-button:hover {
  background: var(--neutral-100);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.filter-button.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--neutral-100);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-indigo) 100%);
  border-radius: 5px;
  border: 2px solid var(--neutral-100);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--accent-indigo) 100%);
}

/* Selection Color */
::selection {
  background: rgba(0, 102, 204, 0.2);
  color: var(--neutral-900);
}

::-moz-selection {
  background: rgba(0, 102, 204, 0.2);
  color: var(--neutral-900);
}
