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

:root {
  --primary: #f47820; /* Brilliant Orange */
  --primary-dark: #d25f0e;
  --secondary: #b02a29; /* Deep Red */
  --navy: #152238; /* Deep Navy */
  --bg-body: #f8f9fa; /* Light Gray */
  --bg-white: #ffffff;
  --text-main: #2c313d;
  --text-muted: #727a85;
  --border: #e2e5e9;
  --radius: 6px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.1);
  --font-family: 'Inter', sans-serif;
  --success: #2e8b57;
  --warning: #f1c40f;
  --danger: #e74c3c;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: var(--font-family);
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 4px 10px rgba(244, 120, 32, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--bg-white);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: #0b1424;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
}

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

/* Form Controls */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--navy);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: 15px;
  transition: 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244, 120, 32, 0.1);
}

/* Alert Banner */
.alert-banner {
  background: rgba(244, 120, 32, 0.1);
  color: var(--primary-dark);
  padding: 0.75rem;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid rgba(244, 120, 32, 0.2);
}

/* Navbar */
.navbar-top {
  background: var(--navy);
  color: var(--bg-white);
  padding: 0.5rem 0;
  font-size: 13px;
}
.navbar-top a {
  color: #aeb5c0;
}
.navbar-top a:hover {
  color: var(--bg-white);
}

.navbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.nav-brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a.nav-item {
  color: var(--text-main);
  font-weight: 500;
  font-size: 14px;
}
.nav-links a.nav-item:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--bg-white);
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MiIgaGVpZ2h0PSI0MiI+CgkJPGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiPgoJCQk8Y2lyY2xlIGN4PSIyMSIgY3k9IjIxIiByPSIxIiAvPgoJCTwvZz4KPC9zdmc+') repeat;
  opacity: 0.1;
  pointer-events: none;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.search-bar {
  background: var(--bg-white);
  padding: 0.5rem;
  border-radius: var(--radius);
  display: flex;
  gap: 0.5rem;
  max-width: 900px;
  margin: 2rem auto 0;
  box-shadow: var(--shadow-lg);
}

.search-bar .form-control {
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
}
.search-bar .form-control:last-of-type {
  border-right: none;
}
.search-bar .form-control:focus {
  box-shadow: none;
}
.search-bar .btn {
  padding: 0.75rem 2.5rem;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Cards */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Job Cards */
.job-card {
  display: flex;
  flex-direction: column;
}
.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.job-title {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 600;
}
.job-company {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
.job-meta-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-blue { background: #e3f2fd; color: #1565c0; }
.badge-orange { background: rgba(244, 120, 32, 0.1); color: var(--primary-dark); }
.badge-green { background: #e8f5e9; color: #2e7d32; }
.badge-red { background: #ffebee; color: #c62828; }

/* Dashboard Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
  min-height: 70vh;
}

.sidebar {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 1.5rem 0;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: var(--text-main);
  font-weight: 500;
  border-left: 3px solid transparent;
}

.sidebar-nav li a:hover, .sidebar-nav li a.active {
  background: rgba(244, 120, 32, 0.05);
  color: var(--primary);
  border-left-color: var(--primary);
}

.sidebar-nav li a svg {
  margin-right: 0.75rem;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.profile-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 auto 1rem;
}

/* Upload CV Box */
.upload-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  background: #fafbfc;
  cursor: pointer;
  transition: 0.3s;
}
.upload-box:hover {
  border-color: var(--primary);
  background: rgba(244, 120, 32, 0.02);
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--bg-white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: #aeb5c0;
}
.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: #aeb5c0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .search-bar {
    flex-direction: column;
  }
  .search-bar .form-control {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .grid-3, .grid-2, .dashboard-layout, .footer-grid {
    grid-template-columns: 1fr;
  }
}

