@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* --- CSS VARIABLES & RESET --- */
:root {
  --primary-color: #258ccd; /* Vibrant Indigo */
  --secondary-color: #f08721; /* Vibrant Pink */
  --primary-gradient: linear-gradient(135deg, #258ccd 0%, #f08721 100%);
  --dark-text: #0f172a;
  --light-text: #475569;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--dark-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- NAVIGATION --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 45px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--light-text);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--primary-gradient);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--dark-text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-btns {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-hover);
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--dark-text);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: #334155;
  box-shadow: var(--shadow-hover);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-text);
}

/* --- HERO SECTION --- */
.hero {
  margin-top: 70px;
  padding: 6rem 5% 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 85vh;
  background: linear-gradient(135deg, #eff6ff 0%, #fdf2f8 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: rgba(236, 72, 153, 0.15);
  filter: blur(80px);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: rgba(79, 70, 229, 0.15);
  filter: blur(100px);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  flex: 1;
  max-width: 650px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  color: var(--light-text);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.search-box {
  background: var(--white);
  padding: 0.75rem;
  border-radius: 12px;
  display: flex;
  box-shadow: var(--shadow-lg);
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.search-input {
  flex: 1;
  border: none;
  padding: 1rem 1.2rem;
  outline: none;
  font-size: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  transition: var(--transition);
}

.search-input:focus {
  background: white;
  box-shadow: 0 0 0 2px var(--primary-color);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  max-width: 550px;
  border-radius: 24px;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(-5deg);
  transition: var(--transition);
}

.hero-image img:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
  box-shadow: 25px 25px 65px rgba(0, 0, 0, 0.15);
}

/* --- STATS --- */
.stats-container {
  background: var(--white);
  padding: 4rem 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: -40px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.2rem;
}

.stat-item p {
  color: var(--light-text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

/* --- FOR EMPLOYERS & CANDIDATES --- */
.split-section {
  padding: 6rem 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.split-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.split-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary-color);
  opacity: 0.8;
}

.card-employer::before {
  background: var(--secondary-color);
}

.split-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.split-card i {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 50%;
  background: #f1f5f9;
}

.card-seeker i {
  color: var(--primary-color);
  background: rgba(79, 70, 229, 0.1);
}

.card-employer i {
  color: var(--secondary-color);
  background: rgba(236, 72, 153, 0.1);
}

/* --- FEATURED JOBS --- */
.jobs-section {
  padding: 6rem 5%;
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--dark-text);
}

.section-header p {
  color: var(--light-text);
  font-size: 1.1rem;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.job-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
}

.job-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.job-header {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.company-logo {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--dark-text);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.job-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 0.2rem;
}

.company-name {
  font-size: 0.95rem;
  color: var(--light-text);
  font-weight: 500;
}

.job-tags {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary-color);
}

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
}

.salary {
  font-weight: 700;
  color: var(--dark-text);
  font-size: 1.1rem;
}

/* --- FOOTER --- */
footer {
  background: #0f172a;
  color: var(--white);
  padding: 5rem 5% 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #f8fafc;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: #94a3b8;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  color: #64748b;
  font-size: 0.9rem;
}

/* --- RESPONSIVE TABLE CONTAINERS --- */
.data-table-container,
.dashboard-container {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-width: 600px;
}
th,
td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}
th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--light-text);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
tr:last-child td {
  border-bottom: none;
}
tr:hover td {
  background: #f8fafc;
}

/* --- TABS (Premium Look) --- */
.tabs-container {
  margin-top: 2rem;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: #f1f5f9;
  padding: 0.5rem;
  border-radius: 12px;
  width: fit-content;
  border-bottom: none;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.6rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--light-text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  border-bottom: none;
}

.tab-btn:hover {
  color: var(--primary-color);
  background: rgba(79, 70, 229, 0.05);
}

.tab-btn.active {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
  animation: slideLeft 0.3s ease-out;
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tab-content.active {
  display: block;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  color: var(--white);
  font-size: 0.75rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  min-width: 1.5rem;
  height: 1.5rem;
  font-weight: 700;
}

/* --- MODIFIED UTILITIES FOR BEAUTIFICATION --- */
.auth-container {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 5%;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: all 0.4s ease-in-out;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-btns {
    display: none;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 2rem;
    gap: 2rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .search-box {
    flex-direction: column;
  }

  .search-input {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .stats-container {
    width: 100%;
    margin-top: 0;
    border-radius: 0;
  }
}
