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

:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1c2136;
  --muted: #5a627d;
  --accent: #265df5; /* Naukri blue */
  --accent-glow: rgba(38, 93, 245, 0.1);
  --line: #e2e8f0;
  --gradient: linear-gradient(135deg, #265df5, #1e4bbd);
  --btn-shadow: 0 4px 14px 0 rgba(38, 93, 245, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  transition: background-color 0.3s, border-color 0.3s;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

.page-shell {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 32px 40px;
  flex: 1;
}

@media (max-width: 768px) {
  .site-header { padding: 16px 20px !important; }
  .page-shell { padding: 20px 20px !important; }
}

/* Fixed Header */
.site-header {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.brand a {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-cta a {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease-in-out;
}

.nav-cta a:hover {
  background: var(--line);
  color: var(--accent);
}

.btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease-in-out;
  color: #ffffff !important;
  background: var(--gradient) !important;
  border: none !important;
  box-shadow: var(--btn-shadow);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(38, 93, 245, 0.35);
  opacity: 0.95;
}

.btn.secondary {
  background: var(--gradient) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: var(--btn-shadow);
}

.btn.secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(38, 93, 245, 0.35);
  opacity: 0.95;
}

/* Danger / destructive action buttons */
.btn-danger {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  background: rgba(239,68,68,0.08) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239,68,68,0.3) !important;
  box-shadow: none;
}

.btn-danger:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  transform: translateY(-1px);
}


/* Solid blue CTA — same as .btn, for non-secondary contexts */
.btn-solid {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease-in-out;
  background: var(--gradient) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: var(--btn-shadow);
  text-decoration: none;
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(38, 93, 245, 0.35);
  opacity: 0.95;
}


/* Card layout */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px 0 rgba(140, 150, 170, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(38, 93, 245, 0.4);
  box-shadow: 0 12px 40px 0 rgba(38, 93, 245, 0.12);
}

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

.hero {
  padding: 48px;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(38, 93, 245, 0.08), transparent 70%), var(--card);
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--text);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

.muted {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.feature-grid .card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-grid .card p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.stack {
  display: grid;
  gap: 16px;
}

input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.table th, .table td {
  border: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: middle;
}

.table th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table tr:hover td {
  background: #f1f5f9;
}

.ctas, .toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  justify-content: center;
}

.toolbar {
  justify-content: flex-start;
}

.toolbar input {
  flex: 1;
}

.alert {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #b91c1c;
  padding: 14px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.success {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #15803d;
  padding: 14px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.site-footer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .nav-cta {
    width: 100%;
    margin-top: 12px;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Naukri-Style Light Theme Overrides for Hardcoded Components and Inline Styles
   ========================================================================== */

/* Overrides for Login / Registration / Auth Cards */
.login-card, .auth-card {
  background: transparent !important;
  color: var(--text) !important;
  border: none !important;
  box-shadow: none !important;
}

.login-card h1, .auth-card h1, .login-info h1, .login-info h2 {
  color: var(--text) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.login-card .subtitle, .auth-card .subtitle {
  color: var(--muted) !important;
}

/* Job Rows and Items */
.job-row {
  background: var(--card) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}

.job-row:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 6px 20px rgba(38, 93, 245, 0.08) !important;
}

.job-info h4 {
  color: var(--text) !important;
}

.job-panel {
  background: var(--card) !important;
  border-color: var(--line) !important;
}

.job-item {
  background: var(--card) !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--line) !important;
}

.job-item:hover {
  background: #f8fafc !important;
}

.job-item.expanded {
  background: #e8f0fe !important;
}

/* Service Requests & Placement Cards */
.service-card, .services-info .card, .request-item {
  background: var(--card) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}

/* Status Badges - Light Theme High Contrast */
.badge-green {
  background: #e6f4ea !important;
  color: #137333 !important;
  border: 1px solid #ceead6 !important;
}

.badge-blue {
  background: #e8f0fe !important;
  color: #1a73e8 !important;
  border: 1px solid #d2e3fc !important;
}

.badge-yellow {
  background: #fef7e0 !important;
  color: #b06000 !important;
  border: 1px solid #feecb5 !important;
}

.badge-red {
  background: #fce8e6 !important;
  color: #c5221f !important;
  border: 1px solid #fad2cf !important;
}

.badge-gray {
  background: #f1f3f4 !important;
  color: #5f6368 !important;
  border: 1px solid #dadce0 !important;
}

/* Override hardcoded inline dark styles (rgba(14,22,40)) */
[style*="background: rgba(14,22,40"],
[style*="background:rgba(14,22,40"],
[style*="background: #090e1a"],
[style*="background:#090e1a"] {
  background: var(--card) !important;
}

/* Override hardcoded white text in headings, paragraphs, strong and table cells */
h1[style*="color: #fff"], h1[style*="color:#fff"], h1[style*="color: white"], h1[style*="color:white"],
h2[style*="color: #fff"], h2[style*="color:#fff"], h2[style*="color: white"], h2[style*="color:white"],
h3[style*="color: #fff"], h3[style*="color:#fff"], h3[style*="color: white"], h3[style*="color:white"],
h4[style*="color: #fff"], h4[style*="color:#fff"], h4[style*="color: white"], h4[style*="color:white"],
strong[style*="color: #fff"], strong[style*="color:#fff"], strong[style*="color: white"], strong[style*="color:white"],
p[style*="color: #fff"], p[style*="color:#fff"], p[style*="color: white"], p[style*="color:white"],
td[style*="color: #fff"], td[style*="color:#fff"], td[style*="color: white"], td[style*="color:white"],
div[style*="color: #fff"], div[style*="color:#fff"], div[style*="color: white"], div[style*="color:white"] {
  color: var(--text) !important;
}

/* Extra support for page titles that were hardcoded white */
.hero h1, .card h1, .card h2, .card h3 {
  color: var(--text) !important;
}

/* ==========================================================================
   Universal Auto-Contrast System
   Rule: dark background → light text | light background → dark text
   ========================================================================== */

/* --- Utility Classes --- */

/* Dark background containers → white text */
.bg-dark,
.bg-gradient,
.bg-primary,
.bg-accent {
  background: var(--gradient) !important;
  color: #ffffff !important;
}
.bg-dark *,
.bg-gradient *,
.bg-primary *,
.bg-accent * {
  color: #ffffff !important;
}

/* Light background containers → dark text */
.bg-light,
.bg-white,
.bg-card {
  background: #ffffff !important;
  color: var(--text) !important;
}
.bg-light *,
.bg-white *,
.bg-card * {
  color: var(--text) !important;
}

/* --- Auto-detect dark inline backgrounds → force light text --- */

/* Gradient backgrounds */
[style*="background: linear-gradient"],
[style*="background:linear-gradient"],
[style*="background-image: linear-gradient"],
[style*="background-image:linear-gradient"] {
  color: #ffffff !important;
}

/* Dark hex colors */
[style*="background: #0"],
[style*="background:#0"],
[style*="background-color: #0"],
[style*="background-color:#0"] {
  color: #ffffff !important;
}
[style*="background: #1"],
[style*="background:#1"],
[style*="background-color: #1"],
[style*="background-color:#1"] {
  color: #ffffff !important;
}
[style*="background: #2"],
[style*="background:#2"],
[style*="background-color: #2"],
[style*="background-color:#2"] {
  color: #ffffff !important;
}

/* Dark rgba backgrounds (opacity > 0.5 threshold approximation) */
[style*="background: rgba(0,"],
[style*="background:rgba(0,"],
[style*="background: rgba(9,"],
[style*="background:rgba(9,"],
[style*="background: rgba(14,"],
[style*="background:rgba(14,"],
[style*="background: rgba(38,"],
[style*="background:rgba(38,"] {
  color: #ffffff !important;
}

/* --- Auto-detect light inline backgrounds → force dark text --- */
[style*="background: #fff"],
[style*="background:#fff"],
[style*="background: white"],
[style*="background:white"],
[style*="background: #ffffff"],
[style*="background:#ffffff"],
[style*="background-color: #fff"],
[style*="background-color:#fff"],
[style*="background-color: white"],
[style*="background-color: #ffffff"] {
  color: var(--text) !important;
}

/* Light rgba backgrounds */
[style*="background: rgba(255,255,255"],
[style*="background:rgba(255,255,255"],
[style*="background-color: rgba(255,255,255"],
[style*="background-color:rgba(255,255,255"] {
  color: var(--text) !important;
}

/* --- Ensure buttons always have correct contrast --- */
.btn,
.btn.secondary,
.btn-solid,
[class*="btn-primary"],
[class*="btn-dark"],
[class*="btn-accent"] {
  color: #ffffff !important;
}

[class*="btn-light"],
[class*="btn-ghost"],
[class*="btn-outline"] {
  color: var(--accent) !important;
}

