/* CSS Custom Properties for Design System */
:root {
  /* Primary Colors */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #dbeafe;

  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Success Colors */
  --success: #22c55e;

  /* Error Colors */
  --error: #ef4444;
  --error-light: #fee2e2;

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  /* Spacing */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;

  /* Border Radius */
  --radius: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;

  /* Shadows */
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--gray-900);
  background-color: var(--gray-50);
  margin: 0;
  padding: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--gray-900);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 var(--spacing-4) 0;
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}

/* Links */
a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-700);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary-600);
  color: white;
  padding: var(--spacing-3) var(--spacing-6);
  font-size: var(--font-size-sm);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Form Elements */
.form-input {
  width: 100%;
  padding: var(--spacing-3) var(--spacing-4);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: var(--font-size-base);
  background-color: white;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--spacing-2);
}

.form-group {
  margin-bottom: var(--spacing-4);
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-4 {
  gap: var(--spacing-4);
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.px-4 {
  padding-left: var(--spacing-4);
  padding-right: var(--spacing-4);
}

.py-16 {
  padding-top: var(--spacing-10);
  padding-bottom: var(--spacing-10);
}

.py-20 {
  padding-top: var(--spacing-12);
  padding-bottom: var(--spacing-12);
}

.mb-4 {
  margin-bottom: var(--spacing-4);
}

.mb-6 {
  margin-bottom: var(--spacing-6);
}

.mb-8 {
  margin-bottom: var(--spacing-8);
}

.mb-12 {
  margin-bottom: var(--spacing-12);
}

.mt-8 {
  margin-top: var(--spacing-8);
}

.p-4 {
  padding: var(--spacing-4);
}

.p-6 {
  padding: var(--spacing-6);
}

.p-8 {
  padding: var(--spacing-8);
}

.rounded {
  border-radius: var(--radius);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.bg-white {
  background-color: white;
}

.bg-gray-50 {
  background-color: var(--gray-50);
}

.bg-blue-50 {
  background-color: #eff6ff;
}

.bg-green-50 {
  background-color: #f0fdf4;
}

.bg-purple-50 {
  background-color: #faf5ff;
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-blue-600 {
  --tw-gradient-from: #2563eb;
  --tw-gradient-stops: var(--tw-gradient-from),
    var(--tw-gradient-to, rgba(37, 99, 235, 0));
}

.to-purple-700 {
  --tw-gradient-to: #7c3aed;
}

.text-white {
  color: white;
}

.text-gray-600 {
  color: var(--gray-600);
}

.text-gray-700 {
  color: var(--gray-700);
}

.text-gray-800 {
  color: var(--gray-800);
}

.text-blue-600 {
  color: var(--primary-600);
}

.text-green-600 {
  color: #16a34a;
}

.text-purple-600 {
  color: #9333ea;
}

.text-center {
  text-align: center;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.shadow {
  box-shadow: var(--shadow);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.transition {
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter,
    backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.hover\:bg-gray-100:hover {
  background-color: var(--gray-100);
}

.hover\:bg-blue-700:hover {
  background-color: #1d4ed8;
}

.hover\:bg-green-700:hover {
  background-color: #15803d;
}

.hover\:text-blue-600:hover {
  color: var(--primary-600);
}

.hover\:text-red-600:hover {
  color: #dc2626;
}

.flex-wrap {
  flex-wrap: wrap;
}

.grid {
  display: grid;
}

.md\:grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.md\:grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-8 {
  gap: var(--spacing-8);
}

.max-w-2xl {
  max-width: 42rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.space-y-2 > * + * {
  margin-top: var(--spacing-2);
}

.space-y-4 > * + * {
  margin-top: var(--spacing-4);
}

.text-2xl {
  font-size: var(--font-size-2xl);
}

.text-3xl {
  font-size: var(--font-size-3xl);
}

.text-4xl {
  font-size: var(--font-size-4xl);
}

.text-5xl {
  font-size: var(--font-size-5xl);
}

.border {
  border-width: 1px;
  border-style: solid;
}

.border-gray-200 {
  border-color: var(--gray-200);
}

.border-green-200 {
  border-color: #bbf7d0;
}

.border-purple-200 {
  border-color: #e9d5ff;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-y-0 {
  top: 0;
  bottom: 0;
}

.right-0 {
  right: 0;
}

.pr-3 {
  padding-right: var(--spacing-3);
}

.transform {
  transform: translate(
      var(--tw-transform-translate-x, 0),
      var(--tw-transform-translate-y, 0)
    )
    rotate(var(--tw-transform-rotate, 0)) skewX(var(--tw-transform-skew-x, 0))
    skewY(var(--tw-transform-skew-y, 0)) scaleX(var(--tw-transform-scale-x, 1))
    scaleY(var(--tw-transform-scale-y, 1));
}

.translateY-50 {
  --tw-transform-translate-y: -50%;
}

.cursor-pointer {
  cursor: pointer;
}

.overflow-hidden {
  overflow: hidden;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

/* Job Seeker Profile Card Sidebar Styles */
.job-seeker-profile-card {
  position: absolute;
  left: 1rem;
  top: 5rem;
  width: 20rem;
  height: calc(100vh - 6rem);
  overflow-y: auto;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  z-index: 60;
}

.job-seeker-profile-card::-webkit-scrollbar {
  width: 4px;
}

.job-seeker-profile-card::-webkit-scrollbar-track {
  background: var(--gray-100);
}

.job-seeker-profile-card::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 2px;
}

.job-seeker-profile-card::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Line clamp utility for bio text */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
  /* Tablet styles */
  .container {
    padding: 0 var(--spacing-3);
  }

  .max-w-6xl {
    max-width: 100%;
  }

  .max-w-4xl {
    max-width: 100%;
  }

  .max-w-2xl {
    max-width: 100%;
  }

  /* Grid layouts for tablets */
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Hide profile card on tablets and smaller screens */
  .job-seeker-profile-card {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* Mobile styles */
  .container {
    padding: 0 var(--spacing-1);
  }

  h1 {
    font-size: var(--font-size-3xl);
  }
  h2 {
    font-size: var(--font-size-2xl);
  }
  h3 {
    font-size: var(--font-size-xl);
  }

  .btn {
    padding: var(--spacing-2) var(--spacing-4);
    font-size: 0.75rem;
  }

  /* Single column layouts for mobile */
  .lg\:grid-cols-3,
  .md\:grid-cols-2,
  .md\:grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  /* Mobile-specific adjustments */
  .flex-col-mobile {
    flex-direction: column;
  }

  .gap-4-mobile {
    gap: var(--spacing-2);
  }

  .text-center-mobile {
    text-align: center;
  }

  .w-full-mobile {
    width: 100%;
  }

  /* Mobile navigation adjustments */
  .mobile-stack {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-full-width {
    width: 100%;
  }

  /* Mobile card adjustments */
  .mobile-p-4 {
    padding: var(--spacing-2);
  }

  .mobile-mb-4 {
    margin-bottom: var(--spacing-2);
  }

  /* Mobile form adjustments */
  .mobile-form-spacing {
    margin-bottom: var(--spacing-3);
  }

  /* Mobile button adjustments */
  .mobile-btn-stack {
    flex-direction: column;
    gap: var(--spacing-2);
  }

  .mobile-btn-full {
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* Small mobile styles */
  .container {
    padding: 0 0.125rem;
  }

  h1 {
    font-size: var(--font-size-2xl);
  }

  h2 {
    font-size: var(--font-size-xl);
  }

  h3 {
    font-size: var(--font-size-lg);
  }

  .btn {
    padding: var(--spacing-2) var(--spacing-3);
    font-size: 0.7rem;
  }

  /* Extra small spacing adjustments */
  .mobile-xs-spacing {
    padding: var(--spacing-1);
    margin-bottom: var(--spacing-1);
  }
}
/* Additional CSS for 30/60 Layout */

/* Profile Card - 25% Left Sidebar */
.job-seeker-profile-card {
  position: fixed;
  left: 0;
  top: 5rem; /* Adjust based on header height */
  width: 25%;
  height: calc(100vh - 5rem);
  overflow-y: auto;
  background-color: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  border-right: 1px solid var(--gray-200);
  z-index: 60;
  transition: all 0.3s ease;
}

/* Main Content Area - 75% Right */
.main-content-area {
  margin-left: 25%;
  width: 75%;
  padding: 0;
  min-height: calc(100vh - 5rem);
}

/* When footer is visible, change profile card to absolute positioning */
body.footer-visible .job-seeker-profile-card {
  position: absolute;
  top: 5rem;
  bottom: auto;
}

/* Profile Card Scrollbar Styling */
.job-seeker-profile-card::-webkit-scrollbar {
  width: 8px;
}

.job-seeker-profile-card::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.job-seeker-profile-card::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.job-seeker-profile-card::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Ensure footer stays above profile card when scrolling */
footer {
  position: relative;
  z-index: 40;
  background-color: white;
}

/* Tablet and Mobile Responsive */
@media (max-width: 1024px) {
  /* Hide profile card on tablets and smaller */
  .job-seeker-profile-card {
    display: none !important;
  }

  /* Make main content full width */
  .main-content-area {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 0 0.25rem;
  }
}

@media (max-width: 768px) {
  .main-content-area {
    padding: 0 0.125rem;
  }
}

/* Smooth transitions for scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Profile card content spacing */
.job-seeker-profile-card .profile-section {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.job-seeker-profile-card .profile-section:last-child {
  border-bottom: none;
}

/* Improve readability in profile card */
.job-seeker-profile-card h3 {
  color: var(--gray-900);
  font-weight: 600;
}

.job-seeker-profile-card h4 {
  color: var(--gray-800);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.job-seeker-profile-card p {
  color: var(--gray-700);
  line-height: 1.6;
}

/* Skills tag styling in profile card */
.job-seeker-profile-card .skill-tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: #dbeafe;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  margin: 0.25rem;
  transition: all 0.2s ease;
}

.job-seeker-profile-card .skill-tag:hover {
  background-color: #bfdbfe;
  transform: translateY(-1px);
}

/* Quick actions buttons in profile card */
.job-seeker-profile-card .quick-action-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

.job-seeker-profile-card .quick-action-btn.primary {
  background-color: #2563eb;
  color: white;
}

.job-seeker-profile-card .quick-action-btn.primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.job-seeker-profile-card .quick-action-btn.secondary {
  background-color: #f3f4f6;
  color: #374151;
}

.job-seeker-profile-card .quick-action-btn.secondary:hover {
  background-color: #e5e7eb;
}

/* Loading state */
.loading-skeleton {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Ensure proper spacing around main content */
.main-content-area > div {
  margin-bottom: 2rem;
}

/* Large desktop adjustments */
@media (min-width: 1440px) {
  .job-seeker-profile-card {
    width: 20%;
  }

  .main-content-area {
    margin-left: 20%;
    width: 80%;
  }
}

/* Extra large desktop adjustments */
@media (min-width: 1920px) {
  .job-seeker-profile-card {
    width: 20%;
  }

  .main-content-area {
    margin-left: 20%;
    width: 80%;
    max-width: 1400px;
    padding: 0 2rem;
  }
}
/* Job cards stacking fix - ensure vertical column layout with scrolling */
#jobs-list {
  display: flex;
  flex-direction: column;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

#jobs-list::-webkit-scrollbar {
  width: 6px;
}

#jobs-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

#jobs-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

#jobs-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

#jobs-list > div {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding: 1rem !important;
}

#jobs-list > div:last-child {
  margin-bottom: 0;
}
