/* ================================================
GLOBAL & ROOT STYLES
(Merged with Prism Flux Theme)
================================================
*/
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Prism Flux Theme --- */
:root {
  --primary-black: #0a0a0a;
  --carbon-dark: #121212;
  --carbon-medium: #1a1a1a;
  --carbon-light: #2a2a2a;
  --metal-dark: #3a3a3a;
  --metal-light: #4a4a4a;
  --accent-red: #ff3333; /* Use this for danger/logout */
  --accent-blue: #00a8ff;
  --accent-green: #00ff88;
  --accent-purple: #9945ff;
  --accent-cyan: #00ffff;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-dim: #808080;

  /* --- Original App Colors (Re-mapped) --- */
  --primary-color: var(--accent-purple); /* Was red, now purple */
  --secondary-color: var(
    --accent-blue
  ); /* New secondary for contrast */
  --light-red-bg: rgba(
    153,
    69,
    255,
    0.1
  ); /* Light Purple background */
  --text-color: var(--text-primary);
  --light-text: var(--text-secondary);
  --border-color: var(--metal-dark);
  --background-color: var(--carbon-dark); /* Was light grey, now dark */
  --white: var(
    --carbon-medium
  ); /* Was true white, now a dark card color */

  --success-color: var(--accent-green);
  --danger-color: var(--accent-red);
  --warning-color: #f5a623;
  --info-color: var(--accent-cyan);
  --notification-red: var(--accent-red);
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  font-family: "Rajdhani", "Roboto", sans-serif;
  background: var(--primary-black);
  color: var(--text-primary);
  line-height: 1.6;
  width: 100%; /* FIX: Ensure body is full width */
  overflow-x: hidden;
  position: relative;
}

/* Carbon Fiber Background Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    ),
    linear-gradient(
      135deg,
      var(--primary-black) 0%,
      var(--carbon-dark) 25%,
      var(--carbon-medium) 50%,
      var(--carbon-dark) 75%,
      var(--primary-black) 100%
    );
  z-index: -2;
}

/* Animated Grid Overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(153, 69, 255, 0.05) 2px,
      transparent 2px
    ),
    linear-gradient(90deg, rgba(153, 69, 255, 0.05) 2px, transparent 2px);
  background-size: 150px 150px;
  animation: gridMove 20s linear infinite;
  z-index: -1;
  opacity: 0.5;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(150px, 150px);
  }
}

body.jobseeker-page,
body.recruiter-page,
body.admin-page {
  display: flex;
  min-height: 100vh;
}

/* --- Global Load-in Animation --- */
@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Prism Line Sweep Animation --- */
@keyframes prismSweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* --- Loading Screen --- */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--primary-black);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-prism {
  width: 100px;
  height: 100px;
  position: relative;
  margin: 0 auto 30px;
}

.prism-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  transform-origin: center;
  animation: prismRotate 3s linear infinite;
}

.prism-face:nth-child(1) {
  border-image: linear-gradient(45deg, var(--accent-red), var(--accent-blue)) 1;
  animation-delay: 0s;
}

.prism-face:nth-child(2) {
  border-image: linear-gradient(
      45deg,
      var(--accent-blue),
      var(--accent-green)
    )
    1;
  transform: rotate(60deg);
  animation-delay: 0.2s;
}

.prism-face:nth-child(3) {
  border-image: linear-gradient(
      45deg,
      var(--accent-green),
      var(--accent-purple)
    )
    1;
  transform: rotate(120deg);
  animation-delay: 0.4s;
}

@keyframes prismRotate {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.2);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* ================================================
SHARED COMPONENTS (BUTTONS, FORMS, MODALS, ETC.)
================================================
*/

/* --- Buttons --- */
.btn {
  padding: 10px 24px;
  border: 2px solid transparent;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-purple),
    var(--accent-blue)
  );
  color: var(--text-primary);
  border-color: transparent;
  box-shadow: 0 5px 20px rgba(153, 69, 255, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(153, 69, 255, 0.5);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: none;
}
.btn-outline:hover {
  background-color: var(--accent-cyan);
  color: var(--primary-black);
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
}

.btn-success {
  background: var(--accent-green);
  color: var(--primary-black);
  font-weight: 700;
  box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}
.btn-danger {
  background: var(--accent-red);
  color: var(--text-primary);
  box-shadow: 0 5px 20px rgba(255, 51, 51, 0.3);
}
.btn-warning {
  background: var(--warning-color);
  color: var(--primary-black);
  font-weight: 700;
  box-shadow: 0 5px 20px rgba(245, 166, 35, 0.3);
}
.btn-info {
  background: var(--accent-cyan);
  color: var(--primary-black);
  font-weight: 700;
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* --- Modals --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: linear-gradient(
    135deg,
    var(--carbon-dark),
    var(--carbon-medium)
  );
  margin: 5% auto;
  padding: 0;
  border-radius: 20px;
  border: 1px solid var(--metal-dark);
  width: 90%;
  max-width: 450px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  animation: slideDown 0.4s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

.jobseeker-page .modal-content,
.recruiter-page .modal-content,
.admin-page .modal-content {
  max-width: 700px;
  margin: 3% auto;
}

.index-page .modal-content {
  max-width: 450px;
}

@keyframes slideDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 30px 30px 20px;
  text-align: center;
  border-bottom: 1px solid var(--metal-dark);
  position: relative;
}
/* Prism line in modal header */
.modal-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-purple),
    var(--accent-blue),
    transparent
  );
  animation: prismSweep 4s ease-in-out infinite;
}

.jobseeker-page .modal-header,
.recruiter-page .modal-header,
.admin-page .modal-header {
  padding: 25px 30px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.jobseeker-page .modal-header h2,
.recruiter-page .modal-header h2,
.admin-page .modal-header h2 {
  font-size: 24px;
  margin: 0;
  font-family: "Orbitron", sans-serif;
  color: var(--accent-cyan);
}

.index-page .modal-header h2 {
  color: var(--text-primary);
  font-size: 28px;
  font-family: "Orbitron", sans-serif;
  margin-bottom: 10px;
}
.index-page .modal-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.close {
  color: var(--text-dim);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10;
}
.index-page .close {
  position: absolute;
  top: 15px;
  right: 25px;
}
.close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 30px;
}
.index-page .modal-body {
  padding: 0 30px 30px;
}

.modal-footer {
  text-align: center;
  padding: 20px 30px 30px;
  border-top: 1px solid var(--metal-dark);
}
.modal-footer p {
  color: var(--text-secondary);
  font-size: 14px;
}
.modal-footer a {
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.modal-footer a:hover {
  text-decoration: underline;
}

/* --- NEW: Bottom 'More' Menu Modal (Draggable) --- */
.modal-bottom-menu {
  z-index: 2001; /* Above bottom-nav */
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.2s;
  margin: 0;
  padding: 0;
  /* FIX: Override .modal display:none */
  display: block;
  visibility: hidden; /* Use visibility to hide */
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}
/* Class added by JS to show */
.modal-bottom-menu.show {
    visibility: visible;
    opacity: 1;
}

.modal-bottom-menu .modal-content-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--carbon-dark);
  border-top: 1px solid var(--metal-dark);
  border-radius: 20px 20px 0 0;
  padding: 20px 20px 10px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  max-height: 80vh; /* Don't let it cover full screen */
  overflow-y: auto;
  /* FIX: Start off-screen */
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}
/* Class added by JS to show */
.modal-bottom-menu.show .modal-content-bottom {
    transform: translateY(0);
}

/* FIX: Draggable Handle Styles */
.bottom-menu-handle-container {
    padding: 0 0 10px 0;
    cursor: grab;
    -webkit-tap-highlight-color: transparent; /* Disable tap flash */
}
.bottom-menu-handle {
    width: 50px;
    height: 5px;
    background-color: var(--metal-dark);
    border-radius: 3px;
    margin: 0 auto;
}
.bottom-menu-handle-container:active {
    cursor: grabbing;
}


.bottom-menu-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 10px;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--metal-dark);
  cursor: pointer;
}
.bottom-menu-item:hover {
  color: var(--accent-purple);
}
.bottom-menu-item i {
  font-size: 20px;
  width: 30px;
  text-align: center;
}
.bottom-menu-item-close {
  display: block;
  text-align: center;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-red);
  margin-top: 10px;
  cursor: pointer;
}


/* --- Forms --- */
.form-group {
  margin-bottom: 20px;
  position: relative;
}
.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--metal-dark);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
  background-color: var(--carbon-dark);
  color: var(--text-primary);
  font-family: "Rajdhani", "Roboto", sans-serif;
  font-weight: 500;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(153, 69, 255, 0.2);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select:disabled {
  background-color: var(--primary-black);
  cursor: not-allowed;
  color: var(--text-dim);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 48px; /* Adjusted for label */
  cursor: pointer;
  color: var(--text-dim);
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(
    135deg,
    var(--accent-purple),
    var(--accent-blue)
  );
  color: var(--text-primary);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 5px 15px rgba(153, 69, 255, 0.3);
}
.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(153, 69, 255, 0.5);
}

/* --- Cards --- */
.card {
  background: linear-gradient(
    135deg,
    var(--carbon-medium),
    var(--carbon-dark)
  );
  border: 1px solid var(--metal-dark);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  animation: fadeInContent 0.5s ease-out;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 20px 40px rgba(153, 69, 255, 0.2);
  transform: translateY(-4px);
}
/* Card hover glow */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-purple),
    transparent
  );
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.card:hover::before {
  transform: scaleX(1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--metal-dark);
}
.card-header h2 {
  font-size: 22px;
  font-weight: 700;
  font-family: "Orbitron", sans-serif;
  color: var(--text-primary);
}

/* --- Interactive Card List Items (Jobs, Connections, etc.) --- */
.job-card,
.connection-card,
.job-post-card,
.application-card,
.message-card {
  transition: all 0.3s ease;
  border: 1px solid var(--metal-dark);
}
.job-card:hover,
.connection-card:hover,
.job-post-card:hover,
.application-card:hover,
.message-card:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 10px 30px rgba(153, 69, 255, 0.2);
  transform: translateY(-4px);
}

/* --- New CSS Spinner --- */
.loading {
  display: none;
  text-align: center;
  padding: 40px;
}
.loading.active {
  display: block;
}
.spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 4px solid var(--metal-dark);
  border-radius: 50%;
  border-top-color: var(--accent-purple);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 20px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Status Badges --- */
.status-badge {
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid;
}
.status-pending {
  background-color: rgba(245, 166, 35, 0.1);
  color: var(--warning-color);
  border-color: var(--warning-color);
}
.status-reviewed {
  background-color: rgba(0, 255, 255, 0.1);
  color: var(--info-color);
  border-color: var(--info-color);
}
.status-shortlisted {
  background-color: rgba(0, 255, 136, 0.1);
  color: var(--success-color);
  border-color: var(--success-color);
}
.status-rejected {
  background-color: rgba(255, 51, 51, 0.1);
  color: var(--danger-color);
  border-color: var(--danger-color);
}
.status-active {
  background-color: rgba(0, 255, 136, 0.1);
  color: var(--success-color);
  border-color: var(--success-color);
}
.status-suspended {
  background-color: rgba(255, 51, 51, 0.1);
  color: var(--danger-color);
  border-color: var(--danger-color);
}
.status-verified {
  background-color: var(--light-red-bg);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  animation: fadeInContent 0.5s ease;
  background: rgba(10, 10, 10, 0.5);
  border-radius: 12px;
  border: 1px dashed var(--metal-dark);
}
.empty-state i {
  font-size: 64px;
  color: var(--metal-light);
  margin-bottom: 20px;
}
.empty-state h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-family: "Orbitron", sans-serif;
}
.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* --- Error/Success Messages --- */
.error-message {
  display: none;
  background: rgba(255, 51, 51, 0.1);
  color: var(--danger-color);
  border: 1px solid var(--danger-color);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}
.success-message {
  display: none;
  background: rgba(0, 255, 136, 0.1);
  color: var(--success-color);
  border: 1px solid var(--success-color);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}


/* ================================================
INDEX PAGE (index.html)
================================================
*/

/* --- Navbar --- */
nav {
  background: linear-gradient(
    180deg,
    rgba(18, 18, 18, 0.98) 0%,
    rgba(18, 18, 18, 0.9) 50%,
    rgba(18, 18, 18, 0) 100%
  );
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%; /* FIX: Ensure nav is full width */
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 30px;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo {
  font-size: 28px;
  font-weight: 900;
  font-family: "Orbitron", sans-serif;
  color: var(--accent-purple);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  border-radius: 50%;
  transition: transform 0.5s ease;
  border: 2px solid var(--accent-purple);
  width: 50px;
  height: 50px;
}
.logo:hover img {
  transform: rotate(360deg);
  box-shadow: 0 0 20px var(--accent-purple);
}
.nav-links {
  display: flex;
  gap: 15px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: var(--carbon-medium);
}
.nav-links a.btn-outline {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}
.nav-links a.btn-outline:hover {
  background: var(--accent-cyan);
  color: var(--primary-black);
  box-shadow: 0 0 20px var(--accent-cyan);
}

/* --- Hero Section --- */
.hero {
  background: radial-gradient(
    ellipse at center,
    rgba(153, 69, 255, 0.1) 0%,
    transparent 50%
  );
  color: var(--text-primary);
  padding: 100px 20px;
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content {
  max-width: 900px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 64px;
  margin-bottom: 20px;
  font-weight: 900;
  font-family: "Orbitron", sans-serif;
  line-height: 1.2;
  background: linear-gradient(
    135deg,
    var(--accent-cyan) 0%,
    var(--accent-purple) 25%,
    var(--accent-blue) 50%,
    var(--accent-green) 75%,
    var(--accent-cyan) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientFlow 5s ease infinite;
}
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.hero p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
  color: var(--text-secondary);
  font-weight: 300;
}
.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Special styling for white hero button */
.hero .btn-outline {
  background-color: transparent;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}
.hero .btn-outline:hover {
  background-color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--primary-black);
  box-shadow: 0 0 25px var(--accent-cyan);
}

/* --- Features Section --- */
.features {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}
.section-title {
  text-align: center;
  font-size: 48px;
  margin-bottom: 50px;
  color: var(--text-primary);
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.feature-card {
  background: linear-gradient(
    135deg,
    rgba(42, 42, 42, 0.2),
    rgba(26, 26, 26, 0.3)
  );
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--metal-dark);
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
}
.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-purple);
  box-shadow: 0 20px 40px rgba(153, 69, 255, 0.2);
  background: linear-gradient(
    135deg,
    rgba(153, 69, 255, 0.05),
    rgba(26, 26, 26, 0.3)
  );
}
.feature-card i {
  font-size: 48px;
  color: var(--accent-purple);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  text-shadow: 0 0 20px var(--accent-purple);
}
.feature-card:hover i {
  transform: scale(1.1) rotate(-5deg);
}
.feature-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text-primary);
  font-family: "Orbitron", sans-serif;
}
.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Registration Role Selection --- */
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}
.role-card {
  padding: 30px 20px;
  border: 2px solid var(--metal-dark);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--carbon-dark);
}
.role-card:hover,
.role-card.active {
  border-color: var(--accent-purple);
  background: var(--light-red-bg);
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(153, 69, 255, 0.5);
}
.role-card i {
  font-size: 40px;
  color: var(--accent-purple);
  margin-bottom: 15px;
}
.role-card h4 {
  margin-bottom: 8px;
  color: var(--text-primary);
  font-family: "Orbitron", sans-serif;
}
.role-card p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* --- Footer --- */
footer {
  background-color: var(--primary-black);
  color: var(--text-primary);
  padding: 60px 30px 30px;
  margin-top: 80px;
  border-top: 1px solid var(--metal-dark);
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}
.footer-section h3 {
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--accent-purple);
  font-family: "Orbitron", sans-serif;
}
.footer-section ul {
  list-style: none;
}
.footer-section ul li {
  margin-bottom: 10px;
}
.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer-section ul li a:hover {
  color: var(--accent-purple);
  padding-left: 10px;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--metal-dark);
  color: var(--text-dim);
}

/* ================================================
DASHBOARD SHARED (Sidebar, Main Content, etc.)
================================================
*/

/* --- Sidebar --- */
.sidebar {
  width: 260px;
  background: linear-gradient(
    180deg,
    var(--carbon-dark) 0%,
    var(--primary-black) 100%
  );
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  border-right: 1px solid var(--metal-dark);
}
.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--metal-dark);
  background: linear-gradient(
    135deg,
    var(--accent-purple),
    var(--accent-blue)
  );
}
.sidebar-header .logo {
  color: var(--text-primary);
  font-size: 24px;
}
.sidebar-header .logo img {
  border-color: var(--text-primary);
}
.admin-page .sidebar-header {
  background: linear-gradient(
    135deg,
    var(--accent-red),
    var(--accent-purple)
  );
}
.admin-page .logo {
  color: var(--text-primary);
}
.admin-badge {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
  display: inline-block;
  font-family: "Orbitron", sans-serif;
}
.sidebar-menu {
  padding: 20px 0;
}
.menu-item {
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  border-left: 4px solid transparent;
  font-size: 16px;
  font-weight: 500;
}
.menu-item:hover {
  background: var(--light-red-bg);
  color: var(--accent-purple);
}
.menu-item.active {
  background: var(--light-red-bg);
  color: var(--accent-purple);
  border-left: 4px solid var(--accent-purple);
}
.menu-item i {
  font-size: 20px;
  width: 25px;
  transition: all 0.3s ease;
}
.menu-item.active i,
.menu-item:hover i {
  transform: scale(1.1);
  text-shadow: 0 0 10px var(--accent-purple);
}

/* --- Notification Dot --- */
.notification-dot {
  display: none; /* Hidden by default */
  width: 10px;
  height: 10px;
  background-color: var(--notification-red);
  border-radius: 50%;
  position: absolute;
  top: 10px;
  right: 15px;
  border: 1px solid var(--primary-black);
  box-shadow: 0 0 10px var(--notification-red);
}
.menu-item .notification-dot {
  right: 25px;
  top: 18px;
}
.tab-btn .notification-dot {
  position: static;
  display: inline-block;
  margin-left: 5px;
  width: 8px;
  height: 8px;
}

/* --- Main Content Area --- */
.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 20px;
  min-width: 0; /* FIX: Added for flexbox to prevent overflow */
}
.top-nav {
  background: var(--carbon-medium);
  padding: 15px 30px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border: 1px solid var(--metal-dark);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInContent 0.5s ease-out;
}
.section-header {
  margin-bottom: 30px;
  animation: fadeInContent 0.4s ease-out;
}
.section-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  color: var(--text-primary);
}
.section-header p {
  color: var(--text-secondary);
  font-size: 18px;
}
.content-section {
  display: none;
}
.content-section.active {
  display: block;
  animation: fadeInContent 0.5s ease-out;
}

/* --- Top Nav User/Notifications --- */
.top-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.notification-icon {
  font-size: 22px;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}
.notification-icon:hover {
  color: var(--accent-purple);
}
.notification-icon .notification-dot {
  top: -5px;
  right: -5px;
}
.notification-dropdown {
  display: none;
  position: absolute;
  top: 55px;
  right: 0;
  width: 350px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--carbon-dark);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1100;
  animation: slideDown 0.3s ease-out;
  border: 1px solid var(--metal-dark);
}
.notification-dropdown-header {
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--metal-dark);
  font-family: "Orbitron", sans-serif;
}
.notification-item {
  padding: 15px;
  border-bottom: 1px solid var(--metal-dark);
  cursor: pointer;
  transition: background-color 0.3s;
}
.notification-item:hover {
  background-color: var(--carbon-medium);
}
.notification-item.unread {
  background-color: rgba(153, 69, 255, 0.1);
}
.notification-item p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 5px;
}
.notification-item span {
  font-size: 12px;
  color: var(--text-dim);
}
.notification-dropdown-footer {
  text-align: center;
  padding: 15px;
  font-size: 14px;
  color: var(--accent-purple);
  font-weight: 500;
  cursor: pointer;
}
.notification-dropdown-footer:hover {
  text-decoration: underline;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  position: relative;
}
.user-avatar-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent-purple),
    var(--accent-blue)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-weight: 600;
  font-family: "Orbitron", sans-serif;
}
.user-avatar img,
.company-logo-small img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-purple);
}
.company-logo-small img {
  border-radius: 8px;
}

.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--danger-color), #ff4444);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
}
.user-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.user-info p {
  font-size: 12px;
  color: var(--text-secondary);
}
.admin-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* --- Search & Filters --- */
.search-bar {
  flex: 1;
  max-width: 500px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 12px 45px 12px 20px;
  border: 1px solid var(--metal-dark);
  border-radius: 24px;
  font-size: 14px;
  background: var(--carbon-dark);
  color: var(--text-primary);
}
.search-bar input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(153, 69, 255, 0.5);
}
.search-bar i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.filter-bar {
  background-color: var(--carbon-medium);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  animation: fadeInContent 0.5s ease-out;
  border: 1px solid var(--metal-dark);
}
.admin-page .filter-bar {
  background-color: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  border: none;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.filter-group label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
}
.filter-group select,
.filter-group input {
  padding: 8px 12px;
  border: 1px solid var(--metal-dark);
  border-radius: 6px;
  font-size: 14px;
  background: var(--carbon-dark);
  color: var(--text-primary);
}

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--metal-dark);
  width: 100%;
}
.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tab-btn.active,
.tab-btn:hover {
  color: var(--accent-purple);
  border-bottom-color: var(--accent-purple);
}
.tab-content {
  display: none;
  padding-top: 20px;
}
.tab-content.active {
  display: block;
}

/* --- Message Cards --- */
.message-list {
  max-height: 600px;
  overflow-y: auto;
}
.message-card {
  background-color: var(--carbon-dark);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  cursor: pointer;
}
.message-card.unread {
  border-left: 4px solid var(--accent-purple);
  font-weight: 600;
  background-color: rgba(153, 69, 255, 0.1);
}
.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.message-sender {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}
.message-time {
  color: var(--text-dim);
  font-size: 12px;
}
.message-subject {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.message-preview {
  color: var(--text-dim);
  font-size: 14px;
}

/* --- Message Search Results Dropdown --- */
.search-results-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--carbon-dark);
  border: 1px solid var(--metal-dark);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
}
.search-result-item {
  padding: 12px 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.search-result-item:hover {
  background-color: var(--carbon-medium);
}
.search-result-item p {
  font-weight: 500;
  margin: 0;
  color: var(--text-primary);
}
.search-result-item span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ================================================
JOB SEEKER PAGE (jobseeker-dashboard.html)
================================================
*/

/* --- Profile Page (New "Instagram" Layout) --- */
.profile-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--metal-dark);
}
.profile-avatar-container {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
}
.profile-avatar-large {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--carbon-light);
  box-shadow: 0 0 30px rgba(153, 69, 255, 0.5);
}
.profile-avatar-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent-purple),
    var(--accent-blue)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 48px;
  border: 4px solid var(--carbon-light);
  box-shadow: 0 0 30px rgba(153, 69, 255, 0.5);
  font-family: "Orbitron", sans-serif;
}

.profile-info {
  flex: 1;
}
.profile-info-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.profile-info-header h2 {
  font-size: 32px;
  font-weight: 700;
  font-family: "Orbitron", sans-serif;
}
.profile-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}
.profile-stats-item {
  font-size: 16px;
  color: var(--text-secondary);
}
.profile-stats-item strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: "Orbitron", sans-serif;
}
.profile-bio .profile-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}
.profile-bio .profile-title {
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-size: 18px;
}

/* --- Skills & Resume --- */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.skill-tag {
  background: rgba(153, 69, 255, 0.1);
  border: 1px solid var(--accent-purple);
  color: var(--accent-purple);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-tag i {
  cursor: pointer;
  display: none; /* Hidden by default, shown in edit mode */
}
#resumeView a {
  color: var(--accent-cyan);
  font-weight: 500;
}
#resumeView a:hover {
  text-decoration: underline;
}

/* --- Job Browse Page --- */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}
.job-card {
  background-color: var(--carbon-medium);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
}
.job-card-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}
.company-logo {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    var(--accent-purple),
    var(--accent-blue)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-weight: 600;
  flex-shrink: 0;
  font-family: "Orbitron", sans-serif;
}
.company-logo img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}
.job-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--text-primary);
  font-weight: 700;
}
.job-info p {
  color: var(--text-secondary);
  font-size: 14px;
}
.job-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 15px 0;
}
.job-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
}
.job-detail-item i {
  color: var(--accent-purple);
}
.job-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}
.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--metal-dark);
}
.job-posted {
  color: var(--text-dim);
  font-size: 12px;
}

/* --- Applications Page --- */
.application-card {
  background-color: var(--carbon-medium);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 4px solid var(--accent-purple);
}
.application-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

/* --- Connections Page --- */
.connection-card {
  background-color: var(--carbon-medium);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.connection-info {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}
.connection-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent-purple),
    var(--accent-blue)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
  flex-shrink: 0;
  font-family: "Orbitron", sans-serif;
}
.connection-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
.connection-details h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--text-primary);
  font-weight: 700;
}
.connection-details p {
  color: var(--text-secondary);
  font-size: 14px;
}
.connection-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* --- User Profile Modal --- */
.profile-modal-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent-purple),
    var(--accent-blue)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 36px;
  margin: 0 auto 20px;
  font-family: "Orbitron", sans-serif;
}
.profile-modal-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-modal-header {
  text-align: center;
  margin-bottom: 20px;
}
.profile-modal-header h3 {
  font-size: 24px;
  margin-bottom: 5px;
  font-family: "Orbitron", sans-serif;
}
.profile-modal-header p {
  font-size: 16px;
  color: var(--text-secondary);
}
.profile-modal-section {
  margin-bottom: 20px;
}
.profile-modal-section h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-purple);
  border-bottom: 2px solid var(--metal-dark);
  padding-bottom: 8px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.profile-modal-section p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.profile-modal-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-modal-skills .skill-tag {
  font-size: 12px;
  padding: 5px 10px;
}

/* ================================================
RECRUITER PAGE (recruiter-dashboard.html)
================================================
*/

/* --- Recruiter Profile Page --- */
.company-logo-container {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
}
.company-logo-large {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  border: 4px solid var(--carbon-light);
  box-shadow: 0 0 30px rgba(153, 69, 255, 0.5);
}
.company-logo-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--accent-purple),
    var(--accent-blue)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 48px;
  border: 4px solid var(--carbon-light);
  box-shadow: 0 0 30px rgba(153, 69, 255, 0.5);
  font-family: "Orbitron", sans-serif;
}

/* --- Top Nav Verification Badge --- */
.verification-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid;
}
.badge-verified {
  background-color: rgba(0, 255, 136, 0.1);
  color: var(--success-color);
  border-color: var(--success-color);
}
.badge-pending {
  background-color: rgba(245, 166, 35, 0.1);
  color: var(--warning-color);
  border-color: var(--warning-color);
}
.badge-rejected {
  background-color: rgba(255, 51, 51, 0.1);
  color: var(--danger-color);
  border-color: var(--danger-color);
}
.badge-not-verified {
  background-color: rgba(74, 74, 74, 0.2);
  color: var(--text-dim);
  border-color: var(--metal-light);
}

/* --- Dashboard Stats --- */
.recruiter-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.recruiter-page .stat-card {
  background: linear-gradient(
    135deg,
    var(--accent-purple),
    var(--accent-blue)
  );
  color: var(--text-primary);
  padding: 25px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(153, 69, 255, 0.3);
}
.recruiter-page .stat-card:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(153, 69, 255, 0.5);
}
.recruiter-page .stat-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.recruiter-page .stat-info h3 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 5px;
  font-family: "Orbitron", sans-serif;
}
.recruiter-page .stat-info p {
  opacity: 0.9;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Job Post Card --- */
.jobs-list {
  display: grid;
  gap: 15px;
}
.job-post-card {
  background-color: var(--carbon-medium);
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid var(--accent-purple);
}
.job-post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}
.job-post-title h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 700;
}
.job-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 15px 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.job-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.job-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--metal-dark);
}

/* --- Application Card (Recruiter View) --- */
.recruiter-page .application-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.applicant-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}
.applicant-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent-purple),
    var(--accent-blue)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
  flex-shrink: 0;
  font-family: "Orbitron", sans-serif;
}
.applicant-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
.applicant-details h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--text-primary);
  font-weight: 700;
}
.applicant-details p {
  color: var(--text-secondary);
  font-size: 14px;
}
.application-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ================================================
ADMIN PAGE (admin-dashboard.html)
================================================
*/

/* --- Dashboard Stats --- */
.admin-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.admin-page .stat-card {
  background-color: var(--carbon-medium);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--metal-dark);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s;
}
.admin-page .stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-purple);
}
.admin-page .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-primary);
}
.admin-page .stat-icon.blue {
  background: linear-gradient(135deg, #00a8ff 0%, #00f2fe 100%);
}
.admin-page .stat-icon.green {
  background: linear-gradient(135deg, #00ff88 0%, #38ef7d 100%);
}
.admin-page .stat-icon.orange {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.admin-page .stat-icon.purple {
  background: linear-gradient(135deg, #9945ff 0%, #4facfe 100%);
}
.admin-page .stat-info h3 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 5px;
  color: var(--text-primary);
  font-family: "Orbitron", sans-serif;
}
.admin-page .stat-info p {
  color: var(--text-secondary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Charts --- */
.chart-container {
  background-color: var(--carbon-medium);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  height: 400px;
  animation: fadeInContent 0.5s ease-out;
  border: 1px solid var(--metal-dark);
}

/* --- Data Tables --- */
/* FIX: This wrapper makes the table scrollable */
#usersTableContainer,
#jobsTableContainer,
#pendingVerificationsContainer,
#flaggedContentContainer {
    overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  min-width: 800px; /* FIX: Set a min-width for the table */
}
.data-table thead {
  background-color: var(--carbon-dark);
}
.data-table th {
  padding: 15px;
  text-align: left;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--metal-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}
.data-table td {
  padding: 15px;
  border-bottom: 1px solid var(--metal-dark);
  vertical-align: middle;
  color: var(--text-secondary);
}
.data-table tbody tr:hover {
  background-color: rgba(153, 69, 255, 0.05);
}
.data-table td strong {
  color: var(--text-primary);
  font-weight: 500;
}
.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* --- Search Box (Admin) --- */
.admin-page .search-box {
  flex: 1;
  max-width: 400px;
  position: relative;
}
.admin-page .search-box input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border: 1px solid var(--metal-dark);
  border-radius: 8px;
  font-size: 14px;
  background: var(--carbon-dark);
  color: var(--text-primary);
}
.admin-page .search-box i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

/* --- Alerts --- */
.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.alert-info {
  background-color: rgba(0, 255, 255, 0.1);
  color: var(--info-color);
  border-left: 4px solid var(--info-color);
}
.alert-warning {
  background-color: rgba(245, 166, 35, 0.1);
  color: var(--warning-color);
  border-left: 4px solid var(--warning-color);
}
.alert-danger {
  background-color: rgba(255, 51, 51, 0.1);
  color: var(--danger-color);
  border-left: 4px solid var(--danger-color);
}

/* ================================================
NEW MOBILE BOTTOM NAVBAR (v2)
================================================
*/
.bottom-nav {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background: var(--carbon-medium);
  border-top: 1px solid var(--metal-dark);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
  z-index: 1500;
  overflow: hidden;
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  padding: 8px 0;
  position: relative;
  cursor: pointer;
}
.bottom-nav-item i {
  font-size: 22px;
  margin-bottom: 4px;
}
.bottom-nav-item span {
  font-size: 11px;
  font-weight: 500;
}
.bottom-nav-item.active {
  color: var(--accent-purple);
}
/* Active item indicator */
.bottom-nav-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
}
.bottom-nav-item .notification-dot {
  top: 8px;
  right: calc(50% - 20px); /* Position dot near icon */
  width: 8px;
  height: 8px;
}
/* For admin nav with 5 items */
.admin-page .bottom-nav-item i {
  font-size: 20px;
}
.admin-page .bottom-nav-item span {
  font-size: 10px;
}
.admin-page .bottom-nav-item .notification-dot {
  right: 18px;
}

/* ================================================
RESPONSIVE STYLES
================================================
*/

@media (max-width: 992px) {
  .sidebar {
    /* HIDE the sidebar completely on mobile */
    display: none;
  }
  .main-content {
    /* Main content takes full width */
    margin-left: 0;
    /* Add padding to the bottom to avoid overlap with new nav */
    padding-bottom: 85px; /* 65px nav + 20px buffer */
  }
  .bottom-nav {
    /* SHOW the new bottom nav */
    display: flex;
  }
}

@media (max-width: 768px) {
  /* --- Index Page --- */
  .nav-container {
    height: auto; /* Allow nav to grow */
    padding: 15px 20px;
  }
  .logo {
    font-size: 22px;
  }
  .logo img {
    width: 40px;
    height: 40px;
  }
  .nav-links {
    gap: 5px;
  }
  .nav-links a {
    padding: 8px 12px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 16px;
  }
  .section-title {
    font-size: 32px;
  }
  .role-grid {
    grid-template-columns: 1fr;
  }
  .modal-content {
    margin: 10% auto;
    width: 95%;
  }

  /* --- Dashboard --- */
  .top-nav {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
    padding: 15px;
  }
  .top-nav-right {
    justify-content: space-between;
  }
  .notification-dropdown {
    right: 0;
    width: 320px;
  }
  .search-bar {
    max-width: none;
  }
  .section-header h1 {
    font-size: 28px;
  }
  .section-header p {
    font-size: 16px;
  }
  /* Profile responsive */
  .profile-header {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .profile-info-header {
    justify-content: center;
  }
  .profile-stats {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
  .jobs-grid {
    grid-template-columns: 1fr;
  }
  .admin-page .stats-grid {
    grid-template-columns: 1fr;
  }
  .data-table {
    font-size: 12px;
    /* Force table to scroll horizontally if needed */
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    min-width: 0; /* Override desktop min-width */
  }
  .data-table th,
  .data-table td {
    padding: 10px;
  }
  .application-card {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .recruiter-page .application-card {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .application-actions {
    flex-wrap: wrap;
  }
  .connection-card {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .connection-actions {
    flex-wrap: wrap;
  }
}