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

/* Loading Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

body { 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(180deg, #3b3b3b 0%, #000000 25%, #1a1a3e 50%, #0f0f2e 75%, #bdbdbd 100%);
  color: #f1f5f9;
  min-height: 100vh;
  padding: 4px;
  font-size: 14px;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent),
    radial-gradient(1px 1px at 15% 60%, white, transparent),
    radial-gradient(2px 2px at 70% 20%, white, transparent);
  background-size: 200% 200%, 180% 180%, 150% 150%, 220% 220%, 190% 190%, 210% 210%, 160% 160%, 240% 240%;
  background-position: 0% 0%, 40% 60%, 80% 20%, 30% 90%, 70% 50%, 10% 30%, 50% 80%, 90% 40%;
  animation: twinkle 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  background: rgba(10, 10, 29, 0.7);
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(138, 43, 226, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  min-height: calc(100vh - 8px);
  position: relative;
  z-index: 2;
}

/* Better laptop screen utilization */
@media (min-width: 1200px) {
  .container {
    max-width: 1600px;
    padding: 20px;
  }
  
  .section {
    padding: 18px;
  }
}

/* For very wide screens, use three columns for better space utilization */
@media (min-width: 1600px) {
  .container {
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 2000px;
  }
  
  .header {
    grid-column: 1 / -1;
  }
  
  .section:last-child {
    grid-column: 1 / -1;
  }
}

.header {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 8px;
}

.hero-section {
  margin-top: 6px;
}

.hero-text {
  color: #f7f7f7;
  font-size: 12px;
  font-weight: 500;
  text-shadow: 0 0 6px rgba(16, 233, 132, 0.6);
  margin: 0;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 255, 136, 0.353));
  border: 1px solid rgba(0, 255, 136, 0.505);
  border-radius: 10px;
  display: inline-block;
}

h1 { 
  color: #f8fafc;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* Enhanced Logo Styling */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
  position: relative;
}

.logo-icon {
  font-size: 32px;
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.6));
  transition: all 0.3s ease;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.5px;
  position: relative;
  /* background: linear-gradient(135deg, #1e293b 0%, #334155 100%); */
  padding: 16px 24px;
  border-radius: 12px;
  border: 2px solid #00ff88;
  box-shadow: 
    0 8px 25px rgba(0, 255, 136, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-align: center;
  backdrop-filter: blur(10px);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  z-index: 1;
}

/* Removed unused keyframe animations for cleaner performance */

/* Smaller logo version for auth sections */
.logo-text-small {
  font-size: 20px;
  font-weight: 900;
  margin: 0;
  background: linear-gradient(135deg, 
    #000000 0%, 
    #00d4ff 50%, 
    #00ff88 100%);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: neonPulse 3s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
  letter-spacing: -0.5px;
}

.auth-card .logo-container {
  gap: 8px;
  margin-bottom: 15px;
}

.auth-card .logo-icon {
  font-size: 28px;
}

.section { 
  /* Humanized card design with elegant gradient (dark to darker) */
  background: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #431407 100%);
  border: none;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 
    0 10px 30px -5px rgba(234, 88, 12, 0.4),
    0 8px 16px -8px rgba(67, 20, 7, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: fit-content;
}

.section::before {
  content: '📄';
  position: absolute;
  top: 10%;
  right: 5%;
  font-size: 120px;
  opacity: 0.1;
  pointer-events: none;
  transform: rotate(15deg);
}

.section:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 40px -10px rgba(251, 146, 60, 0.4),
    0 12px 24px -12px rgba(194, 65, 12, 0.5);
}

/* Section 1 (actually second child because header is first): Dark Orangish gradient */
.container > .section:nth-child(2) {
  background: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #431407 100%) !important;
  box-shadow: 
    0 10px 30px -5px rgba(234, 88, 12, 0.4),
    0 8px 16px -8px rgba(67, 20, 7, 0.5);
}

.container > .section:nth-child(2):hover {
  box-shadow: 
    0 20px 40px -10px rgba(234, 88, 12, 0.5),
    0 12px 24px -12px rgba(67, 20, 7, 0.6);
}

/* Section 2 (actually third child): Dark Purplish gradient */
.container > .section:nth-child(3) {
  background: linear-gradient(135deg, #581c87 0%, #a855f7 50%, #3b0764 100%) !important;
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 
    0 10px 30px -5px rgba(168, 85, 247, 0.4),
    0 8px 16px -8px rgba(59, 7, 100, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2);
}

.container > .section:nth-child(3):hover {
  box-shadow: 
    0 20px 40px -10px rgba(168, 85, 247, 0.5),
    0 12px 24px -12px rgba(59, 7, 100, 0.6);
}

/* Section 3 (actually fourth child): Dark Tealish gradient */
.container > .section:nth-child(4) {
  background: linear-gradient(135deg, #134e4a 0%, #14b8a6 50%, #042f2e 100%) !important;
  border: 1px solid rgba(20, 184, 166, 0.3);
  box-shadow: 
    0 10px 30px -5px rgba(20, 184, 166, 0.4),
    0 8px 16px -8px rgba(4, 47, 46, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2);
}

.container > .section:nth-child(4):hover {
  box-shadow: 
    0 20px 40px -10px rgba(20, 184, 166, 0.5),
    0 12px 24px -12px rgba(4, 47, 46, 0.6);
}

.subsection {
  background: linear-gradient(145deg, #1e293b, #334155);
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.subsection:last-child {
  margin-bottom: 0;
}

.pipeline-info {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  border: 1px solid #2563eb;
}

h3 { 
  color: #f1f5f9;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

textarea { 
  width: 100%; 
  padding: 12px; 
  background: #0f172a;
  border: 2px solid #475569;
  border-radius: 8px;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  max-height: 150px;
  transition: all 0.3s ease;
  line-height: 1.4;
}

textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 
    0 0 0 3px rgba(59, 130, 246, 0.2),
    0 0 20px rgba(59, 130, 246, 0.1);
}

textarea::placeholder {
  color: #94a3b8;
}

input[type="file"] { 
  background: #0f172a;
  color: #f1f5f9;
  padding: 12px;
  border: 2px solid #475569;
  border-radius: 8px;
  width: 100%;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"]:hover {
  border-color: #3b82f6;
  background: #1e293b;
}

.btn-group {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.generate-btn { 
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.generate-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.generate-btn:hover { 
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
}

.generate-btn:hover::before {
  left: 100%;
}

.generate-btn:disabled { 
  background: linear-gradient(135deg, #475569, #64748b);
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.evaluate-btn { 
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
  transition: all 0.3s ease;
}

.evaluate-btn:hover { 
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.5);
}

.evaluate-btn:disabled { 
  background: linear-gradient(135deg, #475569, #64748b);
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.success { 
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.15));
  border: 1px solid #22c55e;
  color: #86efac;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

.error { 
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.loading { 
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.15));
  border: 1px solid #f59e0b;
  color: #fcd34d;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.spinner { 
  border: 3px solid #475569;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin { 
  0% { transform: rotate(0deg); } 
  100% { transform: rotate(360deg); } 
}

.step-indicator { 
  font-weight: 700; 
  color: #86efac;
}

.step-current { 
  font-weight: 700; 
  color: #fcd34d;
}

.step-pending { 
  color: #94a3b8;
}

.btn-status {
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  color: #f0fdf4;
  font-weight: 500;
  background: linear-gradient(135deg, #065f46, #10b981);
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid #34d399;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
  display: inline-block;
}

.save-btn {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.input-option {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}

.input-option h4 {
  color: #e2e8f0;
  font-size: 15px;
  margin-bottom: 10px;
  font-weight: 600;
}

.input-option input[type="file"] {
  background: rgba(30, 41, 59, 0.8);
  border: 2px dashed #475569;
  border-radius: 8px;
  padding: 10px;
  color: #e2e8f0;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.input-option input[type="file"]:hover {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.1);
}

.ocr-status {
  margin-top: 8px;
  padding: 8px;
  border-radius: 6px;
  font-size: 13px;
}

.ocr-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid #22c55e;
  color: #86efac;
}

.ocr-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.ocr-loading {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid #3b82f6;
  color: #93c5fd;
}

.save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.toggle-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #059669, #047857);
}

.toggle-btn #toggleIcon {
  font-size: 10px;
  transition: transform 0.3s ease;
}

/* Mobile First - Small devices (phones, 576px and down) */
@media (max-width: 576px) {
  body { padding: 8px; font-size: 13px; }
  
  .container {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
    margin: 0;
    border-radius: 12px;
    min-height: calc(100vh - 16px);
  }
  
  h1 { font-size: 22px; margin-bottom: 6px; }
  h3 { font-size: 16px; margin-bottom: 10px; }
  
  .section { padding: 12px; }
  .pipeline-info { padding: 12px; font-size: 13px; }
  
  textarea { 
    padding: 10px; 
    min-height: 80px;
    max-height: 150px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  input[type="file"] { padding: 10px; font-size: 16px; }
  
  .btn-group { 
    gap: 12px; 
    flex-direction: column;
    align-items: center;
  }
  
  .generate-btn { 
    font-size: 14px; 
    padding: 12px 24px;
    width: 100%;
    max-width: 280px;
  }
  
  .evaluate-btn { 
    font-size: 13px; 
    padding: 10px 20px;
    width: 100%;
    max-width: 280px;
  }
  
  .save-btn { 
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }
}

/* Tablet portrait - Medium devices (tablets, 768px and down) */
@media (min-width: 577px) and (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
    max-width: 600px;
    min-height: calc(100vh - 20px);
  }
  
  .user-profile {
    flex-direction: column;
    gap: 15px;
  }
  
  .model-selector-navbar {
    width: 100%;
    order: 2;
  }
  
  .model-select-navbar {
    min-width: 200px;
  }
  
  .model-info {
    justify-content: center;
  }
  
  h1 { font-size: 26px; }
  
  .btn-group { 
    gap: 16px;
    justify-content: space-around;
  }
  
  .generate-btn { 
    font-size: 14px; 
    padding: 12px 24px;
  }
  
  .evaluate-btn { 
    font-size: 13px; 
    padding: 10px 20px;
  }
}

/* Tablet landscape - Large devices (desktops, 992px and down) */
@media (min-width: 769px) and (max-width: 992px) {
  .container {
    max-width: 900px;
    gap: 18px;
    min-height: calc(100vh - 20px);
  }
  
  h1 { font-size: 28px; }
}

/* Large screens (desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
    grid-template-columns: 1fr 1fr 1fr;
    min-height: calc(100vh - 20px);
  }
  
  .header { grid-column: 1 / -1; }
  .pipeline-info { grid-column: 1 / -1; }
  .btn-group { grid-column: 1 / -1; }
  
  h1 { font-size: 32px; }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #2563eb, #0891b2);
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Print styles */
@media print {
  body { background: white; color: black; }
  .container { box-shadow: none; border: 1px solid #ccc; }
  .section { box-shadow: none; }
  button { display: none; }
}

/* Authentication Styles */
.auth-wall {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #000000 0%, #0a0a1a 25%, #1a1a3e 50%, #0f0f2e 75%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.auth-wall::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent);
  background-size: 200% 200%, 180% 180%, 150% 150%, 220% 220%, 190% 190%, 210% 210%;
  animation: twinkle 8s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.6;
}

.auth-card {
  background: rgba(10, 10, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 100px rgba(138, 43, 226, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  max-width: 380px;
  width: 90%;
  position: relative;
  z-index: 1;
}

/* Glossy highlight */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  border-radius: 20px 20px 0 0;
}

.auth-card h2 {
  color: #f8fafc;
  font-size: 24px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-card p {
  color: #94a3b8;
  margin-bottom: 24px;
  font-size: 15px;
}

.google-signin-btn {
  background: #fff;
  color: #333;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.google-signin-btn:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hidden {
  display: none !important;
}

/* User Profile Styles */
.user-profile {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(51, 65, 85, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 16px;
  margin-bottom: 12px;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  gap: 15px;
  flex-wrap: wrap;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #3b82f6;
  object-fit: cover;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.user-name {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 14px;
}

.user-email {
  font-size: 12px;
  color: #94a3b8;
}

/* Model Selector in Navbar */
.model-selector-navbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.model-label {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 14px;
  white-space: nowrap;
}

.model-select-navbar {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border: 2px solid #475569;
  border-radius: 8px;
  padding: 8px 12px;
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 160px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.model-select-navbar:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.model-select-navbar:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.model-info {
  display: flex;
  align-items: center;
  gap: 5px;
}

.model-info span {
  font-size: 12px;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.7);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #334155;
  white-space: nowrap;
}

.user-count-info {
  display: flex;
  align-items: center;
  gap: 5px;
}

.user-count-info span {
  font-size: 12px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #10b981;
  white-space: nowrap;
  font-weight: 600;
}

.user-email {
  font-size: 14px;
  color: #94a3b8;
}

.logout-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 15px rgba(239, 68, 68, 0.4),
    0 0 0 1px rgba(239, 68, 68, 0.1);
  position: relative;
  overflow: hidden;
}

.logout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.logout-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(239, 68, 68, 0.5),
    0 0 0 1px rgba(239, 68, 68, 0.2);
}

.logout-btn:hover::before {
  left: 100%;
}

.logout-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 10px rgba(239, 68, 68, 0.4),
    0 0 0 1px rgba(239, 68, 68, 0.1);
}

/* Mobile responsive for user profile */
@media (max-width: 576px) {
  .user-profile {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .user-info {
    flex-direction: column;
    gap: 8px;
  }
  
  .model-selector-navbar {
    order: 2;
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  
  .model-select-navbar {
    width: 100%;
    min-width: auto;
  }
  
  .model-info {
    justify-content: center;
  }
  
  .logout-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Document Manager Styles */
.document-item {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.document-item:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.doc-info {
  flex: 1;
}

.doc-title {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 14px;
  margin-bottom: 4px;
}

.doc-meta {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  gap: 12px;
}

.doc-category {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.doc-actions {
  display: flex;
  gap: 6px;
}

.doc-btn {
  background: none;
  border: 1px solid #475569;
  color: #94a3b8;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.doc-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.doc-btn.delete:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.doc-btn.download:hover {
  border-color: #06b6d4;
  color: #06b6d4;
}

.empty-docs {
  text-align: center;
  color: #94a3b8;
  font-style: italic;
  padding: 20px;
}

/* Mobile responsive for document manager */
@media (max-width: 576px) {
  .document-item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .doc-actions {
    justify-content: center;
  }
  
  .doc-meta {
    justify-content: center;
  }
}

/* ATS Score Display Styles */
.ats-score-display {
  background: linear-gradient(145deg, #065f46, #047857);
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 20px;
  margin: 15px 0;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
  animation: scoreSlideIn 0.6s ease-out;
}

.ats-score-header {
  text-align: center;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #f0fdf4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ats-score-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}

.ats-score-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 120px;
  background: radial-gradient(circle, #ffffff, #f0fdf4);
  border: 3px solid #10b981;
  border-radius: 50%;
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

#atsScoreValue {
  font-size: 36px;
  font-weight: 900;
  color: #047857;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.score-suffix {
  font-size: 18px;
  font-weight: 600;
  color: #065f46;
  margin-left: 2px;
}

.ats-score-explanation {
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #34d399;
  border-radius: 8px;
  padding: 15px;
  backdrop-filter: blur(8px);
}

.ats-score-explanation p {
  color: #f0fdf4;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

@keyframes scoreSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Score-based color variations */
.ats-score-display.score-excellent {
  background: linear-gradient(145deg, #065f46, #047857);
  border-color: #10b981;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.ats-score-display.score-good {
  background: linear-gradient(145deg, #1f2937, #374151);
  border-color: #6b7280;
  box-shadow: 0 8px 20px rgba(107, 114, 128, 0.2);
}

.ats-score-display.score-needs-work {
  background: linear-gradient(145deg, #7c2d12, #dc2626);
  border-color: #ef4444;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

.ats-score-display.score-good .ats-score-number {
  background: radial-gradient(circle, #f3f4f6, #e5e7eb);
  border-color: #6b7280;
}

.ats-score-display.score-good #atsScoreValue {
  color: #374151;
}

.ats-score-display.score-needs-work .ats-score-number {
  background: radial-gradient(circle, #fef2f2, #fee2e2);
  border-color: #ef4444;
}

.ats-score-display.score-needs-work #atsScoreValue {
  color: #dc2626;
}