/* ==========================================
   ATS Resume Checker Pro - Modern Styling
   ========================================== */

:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --info-color: #06b6d4;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow-success: 0 0 15px rgba(16, 185, 129, 0.25);
  --shadow-glow-warning: 0 0 15px rgba(245, 158, 11, 0.25);
  --shadow-glow-danger: 0 0 15px rgba(239, 68, 68, 0.25);

  --dropzone-bg: #f1f5f9;
  --dropzone-border: #cbd5e1;
  --dropzone-active: #dbeafe;
}

[data-bs-theme="dark"] {
  --primary-color: #60a5fa;
  --primary-hover: #3b82f6;
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --card-bg: #1e293b;
  --card-border: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4);

  --dropzone-bg: #0f172a;
  --dropzone-border: #334155;
  --dropzone-active: #1e3a8a;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Glassmorphic Navbar */
.navbar-custom {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 1020;
}

[data-bs-theme="dark"] .navbar-custom {
  background: rgba(30, 41, 59, 0.85);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* Custom Cards */
.custom-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease-in-out;
}

.custom-card:hover {
  box-shadow: var(--shadow-md);
}

.card-header-clean {
  background: transparent;
  border-bottom: 1px solid var(--card-border);
  padding: 1.25rem 1.5rem;
}

/* Drag and Drop Zone */
.dropzone {
  border: 2px dashed var(--dropzone-border);
  background: var(--dropzone-bg);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary-color);
  background: var(--dropzone-active);
  transform: translateY(-2px);
}

.dropzone-icon {
  font-size: 2.75rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: transform 0.25s ease;
}

.dropzone:hover .dropzone-icon {
  transform: scale(1.1);
}

/* Circular Score Chart Wrapper */
.score-chart-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}

.score-chart-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-number {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.score-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Score Metric Cards Grid */
.metric-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Badges & Tags */
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.15s ease;
}

.skill-tag:hover {
  transform: scale(1.04);
}

.skill-tag-tech {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

[data-bs-theme="dark"] .skill-tag-tech {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.3);
}

.skill-tag-soft {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-bs-theme="dark"] .skill-tag-soft {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.3);
}

.skill-tag-industry {
  background: rgba(168, 85, 247, 0.12);
  color: #7e22ce;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

[data-bs-theme="dark"] .skill-tag-industry {
  background: rgba(192, 132, 252, 0.15);
  color: #e9d5ff;
  border-color: rgba(192, 132, 252, 0.3);
}

.word-chip {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.15rem;
}

.word-chip-power {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

[data-bs-theme="dark"] .word-chip-power {
  color: #34d399;
}

.word-chip-weak {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

[data-bs-theme="dark"] .word-chip-weak {
  color: #fca5a5;
}

/* Custom Nav Pills */
.nav-pills-custom .nav-link {
  color: var(--text-muted);
  font-weight: 600;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  transition: all 0.2s ease;
}

.nav-pills-custom .nav-link.active {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* Text Preview Area */
.text-preview-box {
  background: var(--dropzone-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem;
  max-height: 480px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Section Order Status Badge */
.status-badge {
  padding: 0.3rem 0.7rem;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge-found {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.status-badge-missing {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.status-badge-warning {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

/* Privacy Banner Alert */
.privacy-alert {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  color: var(--text-main);
}

/* Custom Progress Bars */
.progress-custom {
  height: 8px;
  border-radius: 10px;
  background-color: rgba(100, 116, 139, 0.15);
  overflow: hidden;
}

.progress-custom .progress-bar {
  border-radius: 10px;
  transition: width 0.8s ease-in-out;
}

/* Top 10 Checklist Item */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  background: var(--card-bg);
  transition: background 0.2s ease;
}

.checklist-item:hover {
  background: var(--dropzone-bg);
}

.checklist-item input[type="checkbox"]:checked + div {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Print Optimization */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  
  .navbar-custom,
  .no-print,
  .btn,
  .nav-pills-custom,
  .dropzone {
    display: none !important;
  }

  .custom-card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin-bottom: 1.5rem !important;
  }

  .print-only {
    display: block !important;
  }
}

.print-only {
  display: none;
}

/* Animation Utilities */
.fade-in {
  animation: fadeIn 0.4s ease-in-out forwards;
}

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