/* ============================================
   TalentPronto Brand Colors
   Primary Green: #37846f (use for main CTAs/buttons)
   Earthy Palette: Warm creams and beiges
   Font: PT Serif
   ============================================ */
:root {
  --tp-primary: #37846f;
  --tp-primary-hover: #2d6d5b;
  --tp-primary-light: #4a9d85;
  
  /* Earthy background colors */
  --tp-cream: #faf8f5;
  --tp-cream-dark: #f0ebe4;
  --tp-warm-white: #fffefa;
  --tp-beige: #e8e2d9;
  --tp-text-warm: #4a4540;
  
  /* Typography */
  --tp-font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
}

/* Set PT Serif as the default font */
html, body {
  font-family: var(--tp-font-family) !important;
}

/* Ensure headings use PT Serif */
h1, h2, h3, h4, h5, h6,
.text-2xl, .text-xl, .text-lg {
  font-family: var(--tp-font-family) !important;
}

/* Primary button style - use instead of blue buttons */
.btn-primary, .bg-tp-primary {
  background-color: var(--tp-primary) !important;
  border-color: var(--tp-primary) !important;
  color: white !important;
}

.btn-primary:hover, .bg-tp-primary:hover,
.hover\:bg-tp-primary-hover:hover {
  background-color: var(--tp-primary-hover) !important;
  border-color: var(--tp-primary-hover) !important;
  color: white !important;
}

.text-tp-primary {
  color: var(--tp-primary) !important;
}

.border-tp-primary {
  border-color: var(--tp-primary) !important;
}

.ring-tp-primary {
  --tw-ring-color: var(--tp-primary) !important;
}

/* Custom slider styling with primary green */
.tp-slider {
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, var(--tp-primary-light), var(--tp-cream-dark));
  accent-color: var(--tp-primary);
  border-radius: 8px;
}

/* Webkit (Chrome, Safari, Edge) track styling */
.tp-slider::-webkit-slider-runnable-track {
  height: 8px;
  background: linear-gradient(to right, var(--tp-primary-light), var(--tp-cream-dark));
  border-radius: 8px;
}

/* Webkit (Chrome, Safari, Edge) thumb styling */
.tp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--tp-primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-top: -6px; /* Center the thumb on the track */
}

.tp-slider::-webkit-slider-thumb:hover {
  background: var(--tp-primary-hover);
}

/* Firefox track styling */
.tp-slider::-moz-range-track {
  height: 8px;
  background: linear-gradient(to right, var(--tp-primary-light), var(--tp-cream-dark));
  border-radius: 8px;
}

/* Firefox thumb styling */
.tp-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--tp-primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tp-slider::-moz-range-thumb:hover {
  background: var(--tp-primary-hover);
}

/* Global override: Convert blue buttons to primary green */
.bg-blue-500,
.bg-blue-600,
.bg-blue-700 {
  background-color: var(--tp-primary) !important;
  color: white !important;
}

.hover\:bg-blue-600:hover,
.hover\:bg-blue-700:hover,
.hover\:bg-blue-800:hover {
  background-color: var(--tp-primary-hover) !important;
  color: white !important;
}

/* Ensure all green background buttons have white text */
.bg-green-500,
.bg-green-600,
.bg-green-700,
.bg-emerald-500,
.bg-emerald-600,
.bg-emerald-700,
[style*="background-color: #37846f"],
[style*="background-color:#37846f"],
[style*="background: #37846f"] {
  color: white !important;
}

.hover\:bg-green-600:hover,
.hover\:bg-green-700:hover,
.hover\:bg-green-800:hover {
  color: white !important;
}

/* Force white text on any button/link with green background */
button.bg-green-500, button.bg-green-600, button.bg-green-700,
a.bg-green-500, a.bg-green-600, a.bg-green-700,
button.bg-blue-500, button.bg-blue-600, button.bg-blue-700,
a.bg-blue-500, a.bg-blue-600, a.bg-blue-700 {
  color: white !important;
}

/* Override any text color classes on primary colored elements */
.bg-green-500.text-gray-900, .bg-green-600.text-gray-900, .bg-green-700.text-gray-900,
.bg-blue-500.text-gray-900, .bg-blue-600.text-gray-900, .bg-blue-700.text-gray-900,
.bg-green-500.text-black, .bg-green-600.text-black, .bg-green-700.text-black,
.bg-blue-500.text-black, .bg-blue-600.text-black, .bg-blue-700.text-black {
  color: white !important;
}

.focus\:ring-blue-300:focus,
.focus\:ring-blue-500:focus {
  --tw-ring-color: var(--tp-primary-light) !important;
}

.border-blue-500,
.border-blue-600,
.border-blue-700 {
  border-color: var(--tp-primary) !important;
}

.text-blue-600,
.text-blue-700 {
  color: var(--tp-primary) !important;
}

.hover\:text-blue-700:hover,
.hover\:text-blue-800:hover {
  color: var(--tp-primary-hover) !important;
}

/* ============================================
   Warm/Earthy overrides for gray backgrounds
   Convert cool grays to warm earth tones
   ============================================ */

/* Background overrides */
.bg-gray-50 {
  background-color: var(--tp-cream) !important;
}

.bg-gray-100 {
  background-color: var(--tp-cream-dark) !important;
}

.bg-gray-200 {
  background-color: var(--tp-beige) !important;
}

/* Border overrides for warmer feel */
.border-gray-200 {
  border-color: var(--tp-beige) !important;
}

.border-gray-300 {
  border-color: #d4cec5 !important;
}

/* Hover states */
.hover\:bg-gray-50:hover {
  background-color: var(--tp-cream) !important;
}

.hover\:bg-gray-100:hover {
  background-color: var(--tp-cream-dark) !important;
}

/* Main content area warm background */
body {
  background-color: var(--tp-cream) !important;
}

/* Cards and panels - warm white */
.bg-white {
  background-color: var(--tp-warm-white) !important;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 16.5625rem;
  z-index: 30;
  background-color: var(--tp-cream) !important;
  border-right: 1px solid var(--tp-beige);
}

.main-content {
  margin-left: 16.5625rem;
  background-color: var(--tp-warm-white);
}

.nav-link.active {
  background-color: var(--tp-cream-dark);
  color: var(--tp-text-warm);
  font-weight: 500;
}

.nav-link:hover {
  background-color: var(--tp-cream-dark);
}

.sort-icon {
  opacity: 0.5;
  transition: opacity 0.2s;
}

.sort-button:hover .sort-icon {
  opacity: 1;
}

.sort-button.active .sort-icon {
  opacity: 1;
}

/* Header Styles */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: var(--tp-warm-white);
  box-shadow: 0 1px 3px 0 rgba(74, 69, 64, 0.08);
  height: 60px; /* Match sidebar header height */
  border-bottom: 1px solid var(--tp-beige);
}

.header-bar .flex {
  height: 100%;
}

/* Sidebar Header Alignment */
.sidebar-header {
  height: 60px; /* Match main header height */
}

.sidebar-header .flex {
  height: 100%;
}

/* Prevent company name text wrapping during transitions */
.sidebar-company-info h2 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #4a5568; /* Softer dark gray instead of harsh black */
  margin-left: 10px; /* Move 10px to the right */
  font-weight: bold; /* Make it bold */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Drop shadow */
}

/* Vertical Toggle Control */
.sidebar-vertical-toggle {
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  width: 24px;
  height: 80px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 70; /* Higher than mobile bottom bar (55) and logo (65) */
  gap: 4px;
}

.sidebar-vertical-toggle:hover {
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toggle-line {
  width: 2px;
  height: 20px;
  background: #d1d5db;
  border-radius: 1px;
  transition: all 0.2s ease;
}

.toggle-chevron {
  color: #6b7280;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-vertical-toggle:hover .toggle-line {
  background: var(--tp-primary);
}

.sidebar-vertical-toggle:hover .toggle-chevron {
  color: var(--tp-primary);
}

/* Desktop collapsed state - chevron points right (>) to indicate "click to expand" */
.sidebar-collapsed .sidebar-vertical-toggle .toggle-chevron svg {
  transform: rotate(180deg);
}

/* Desktop expanded state - chevron points left (<) to indicate "click to collapse" */
@media (min-width: 1025px) {
  .sidebar-vertical-toggle .toggle-chevron svg {
    transform: rotate(0deg);
  }
}

/* Mobile collapsed state - chevron points right (>) to indicate "click to expand" */
@media (max-width: 1024px) {
  .sidebar-vertical-toggle .toggle-chevron svg {
    transform: rotate(180deg);
  }
}

/* Mobile expanded state - chevron points left (<) to indicate "click to collapse" */
.sidebar.mobile-expanded .sidebar-vertical-toggle .toggle-chevron svg {
  transform: rotate(0deg);
}

/* ============================================
   Sidebar Footer - User Info & Logo
   ============================================ */

/* Sidebar footer base styles */
.sidebar-footer {
  margin-top: auto;
}

/* User avatar styling */
.user-avatar {
  transition: all 0.15s ease;
}

/* User info text container */
.sidebar-footer .user-info-text {
  display: flex;
  flex-direction: column;
  transition: opacity 0.15s ease, width 0.15s ease;
}

.sidebar-footer .user-info-text p {
  margin: 0;
  line-height: 1.3;
}

/* Logout button in sidebar footer */
.sidebar-footer .logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.sidebar-footer .logout-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Header logo */
.header-logo {
  flex-shrink: 0;
}

/* COLLAPSED STATE - Desktop */
@media (min-width: 1025px) {
  /* When collapsed, center everything and hide text */
  .sidebar-collapsed .sidebar-footer {
    padding: 12px 8px !important;
  }
  
  .sidebar-collapsed .sidebar-footer-user {
    flex-direction: column;
    gap: 8px;
  }
  
  /* Hide user text when collapsed */
  .sidebar-collapsed .sidebar-footer .user-info-text {
    display: none !important;
  }
  
  /* Center avatar when collapsed */
  .sidebar-collapsed .user-avatar {
    margin: 0 auto;
  }
  
  /* Center logout button when collapsed */
  .sidebar-collapsed .sidebar-footer .logout-btn {
    margin: 0 auto;
  }
}

/* MOBILE/TABLET - Sidebar is always collapsed style unless expanded */
@media (max-width: 1024px) {
  /* When sidebar is NOT expanded (default collapsed on mobile) */
  .sidebar:not(.mobile-expanded) .sidebar-footer {
    padding: 12px 8px !important;
  }
  
  .sidebar:not(.mobile-expanded) .sidebar-footer-user {
    flex-direction: column;
    gap: 8px;
  }
  
  .sidebar:not(.mobile-expanded) .sidebar-footer .user-info-text {
    display: none !important;
  }
  
  .sidebar:not(.mobile-expanded) .user-avatar {
    margin: 0 auto;
  }
  
  .sidebar:not(.mobile-expanded) .sidebar-footer .logout-btn {
    margin: 0 auto;
  }
  
  /* When sidebar IS expanded on mobile */
  .sidebar.mobile-expanded .sidebar-footer {
    padding: 12px 12px 16px 12px !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-bar {
    padding: 12px 16px;
  }
}

/* Page Title Styling */
.header-title h1 {
  color: var(--tp-primary); /* #37846f - Primary Green */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tab styling - black underline for selected tabs instead of blue */
.tab-button.border-gray-900,
.tab-button.font-bold {
  border-bottom: 2px solid #111827 !important;
  font-weight: 700 !important;
  color: #111827 !important;
}

/* Mobile Hamburger Menu */
#mobile-menu-toggle {
  z-index: 50;
}

#mobile-menu-toggle:hover {
  background-color: #f3f4f6 !important;
}

#mobile-menu-toggle svg {
  transition: transform 0.2s ease;
}

/* Keep title left-aligned on all screen sizes */
@media (max-width: 1024px) {
  .header-title {
    flex: 1;
    display: flex;
    justify-content: flex-start;
  }
  
  .header-title h1 {
    text-align: left;
  }
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 35;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Tablet and Mobile Responsive Styles */
@media (max-width: 1024px) {
  /* Default collapsed state on tablets/mobile */
  .sidebar {
    width: 3.5rem !important;
    background-color: var(--tp-cream);
    border-right: 1px solid var(--tp-beige);
    /* Remove slow transitions for instant response */
  }
  
  .main-content {
    margin-left: 3.5rem !important;
    padding-bottom: 80px; /* Add padding to prevent content from being hidden behind bottom bar */
    /* Remove slow transitions for instant response */
  }
  
  
  /* Hide text elements when collapsed */
  .sidebar-company-info,
  .footer-text,
  #search-container,
  .nav-text {
    display: none !important;
  }
  
  /* Show vertical toggle on mobile */
  .sidebar-vertical-toggle {
    display: flex !important;
  }
  
  /* Mobile expanded state - instant reveal */
  .sidebar.mobile-expanded {
    width: 16.5625rem !important;
    z-index: 40;
    background-color: var(--tp-cream) !important;
    box-shadow: 2px 0 15px rgba(74, 69, 64, 0.15);
    border-right: 1px solid var(--tp-beige);
  }
  
  .sidebar.mobile-expanded .sidebar-company-info,
  .sidebar.mobile-expanded .footer-text,
  .sidebar.mobile-expanded #search-container,
  .sidebar.mobile-expanded .nav-text {
    display: block !important;
  }
  
  .sidebar.mobile-expanded .nav-text {
    display: inline !important;
  }
  
  /* Fix company name text jumping */
  .sidebar.mobile-expanded .sidebar-company-info h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 14rem;
    font-size: 1rem;
    line-height: 1.25;
  }
}

@media (max-width: 768px) {
  /* Applicant detail page responsive fixes */
  /* Icon-only buttons on mobile - hide text labels */
  .applicant-action-btn .button-text {
    display: none;
  }
  
  .applicant-action-btn {
    padding: 8px !important;
    min-width: 40px;
    height: 40px !important;
  }
  
  .applicant-action-btn svg {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
  }
  
  /* Keep back button compact but show text */
  .space-y-6 > .flex.items-center.justify-between {
    gap: 12px;
  }
  
  .space-y-6 > .flex.items-center.justify-between > .flex.items-center.gap-3 {
    gap: 8px !important;
  }
  
  /* Make tabs scroll horizontally on mobile */
  .border-b.border-gray-200 > nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  
  .border-b.border-gray-200 > nav > button {
    flex-shrink: 0;
    font-size: 13px;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Hide table on mobile, show card layout instead */
  .jobs-table-desktop {
    display: none;
  }
  
  .jobs-table-mobile {
    display: block;
  }
  
  /* Mobile job card styles */
  .job-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  }
  
  .job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
  }
  
  .job-card-title {
    flex: 1;
  }
  
  .job-card-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.4;
  }
  
  .job-card-department {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
  }
  
  .job-card-status {
    margin-left: 12px;
    flex-shrink: 0;
  }
  
  .job-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
  
  .job-card-detail {
    display: flex;
    flex-direction: column;
  }
  
  .job-card-detail-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
  }
  
  .job-card-detail-value {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
  }
  
  .job-card-recruiter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
  }
  
  .job-card-recruiter-info {
    display: flex;
    align-items: center;
    flex: 1;
  }
  
  .job-card-recruiter-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
  }
  
  .job-card-recruiter-details {
    flex: 1;
  }
  
  .job-card-recruiter-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin: 0 0 2px 0;
  }
  
  .job-card-recruiter-location {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
  }
  
  .job-card-actions {
    flex-shrink: 0;
    margin-left: 12px;
  }
  
  /* Mobile header adjustments */
  .header-bar {
    padding: 12px 16px;
  }
  
  .header-title h1 {
    font-size: 20px;
  }
  
  /* Mobile button adjustments */
  .mobile-new-job-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 16px;
  }
  
  /* Mobile footer adjustments */
  #table-footer {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    text-align: center;
  }
  
  /* Hide users table on mobile, show card layout instead */
  .users-table-desktop {
    display: none;
  }
  
  .users-table-mobile {
    display: block;
  }
  
  /* Mobile user card styles */
  .user-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
  }
  
  .user-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
  }
  
  .user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
  }
  
  .user-card-user {
    display: flex;
    align-items: center;
    flex: 1;
  }
  
  .user-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
  }
  
  .user-card-info {
    flex: 1;
  }
  
  .user-card-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.4;
  }
  
  .user-card-email {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
  }
  
  .user-card-status {
    margin-left: 12px;
    flex-shrink: 0;
  }
  
  .user-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
  }
  
  .user-card-detail {
    display: flex;
    flex-direction: column;
  }
  
  .user-card-detail-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
  }
  
  .user-card-detail-value {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
  }
  
  /* Mobile user button adjustments */
  .mobile-new-user-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 16px;
  }
  
  /* Mobile organization button adjustments */
  .mobile-new-organization-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 16px;
  }

  /* Hide candidates grid on mobile, show card layout instead */
  .candidates-table-desktop {
    display: none;
  }
  
  .candidates-table-mobile {
    display: block;
  }
  
  /* Mobile candidate card styles */
  .candidate-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
  }
  
  .candidate-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
  }
  
  .candidate-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
  }
  
  .candidate-card-candidate {
    display: flex;
    align-items: center;
    flex: 1;
  }
  
  .candidate-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
  }
  
  .candidate-card-info {
    flex: 1;
  }
  
  .candidate-card-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.4;
  }
  
  .candidate-card-position {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
  }
  
  .candidate-card-status {
    margin-left: 12px;
    flex-shrink: 0;
  }
  
  .candidate-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
  
  .candidate-card-detail {
    display: flex;
    flex-direction: column;
  }
  
  .candidate-card-detail-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
  }
  
  .candidate-card-detail-value {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
  }
  
  .candidate-card-skills {
    margin-bottom: 12px;
  }
  
  .candidate-card-skills .skill-tag {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 12px;
    margin: 2px 2px 2px 0;
  }
  
  .candidate-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
  }
  
  .candidate-card-actions button {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
  }
  
  .candidate-card-actions .btn-primary {
    background: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
  }
  
  .candidate-card-actions .btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
  }
  
  .candidate-card-actions .btn-secondary {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
  }
  
  .candidate-card-actions .btn-secondary:hover {
    background: #f9fafb;
    color: #374151;
  }
  
  /* Mobile candidate button adjustments */
  .mobile-new-candidate-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 16px;
  }
  
  /* Hide organizations table on mobile, show card layout instead */
  .organizations-table-desktop {
    display: none;
  }
  
  .organizations-table-mobile {
    display: block;
  }
  
  /* Mobile organization card styles */
  .organization-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  }
  
  .organization-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
  }
  
  .organization-card-org {
    display: flex;
    align-items: center;
    flex: 1;
  }
  
  .organization-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
  }
  
  .organization-card-info {
    flex: 1;
  }
  
  .organization-card-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.4;
  }
  
  .organization-card-slug {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
  }
  
  .organization-card-status {
    margin-left: 12px;
    flex-shrink: 0;
  }
  
  .organization-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
  }
  
  .organization-card-detail {
    display: flex;
    flex-direction: column;
  }
  
  .organization-card-detail-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
  }
  
  .organization-card-detail-value {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
  }
  
  .organization-card-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
  }
  
  /* Location table mobile styles */
  .locations-table-desktop {
    display: none;
  }
  
  .locations-table-mobile {
    display: block;
  }
  
  /* Mobile location card styles */
  .location-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  }
  
  .location-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
  }
  
  .location-card-location {
    display: flex;
    align-items: center;
    flex: 1;
  }
  
  .location-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
  }
  
  .location-card-info {
    flex: 1;
  }
  
  .location-card-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.4;
  }
  
  .location-card-address {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
  }
  
  .location-card-status {
    margin-left: 12px;
    flex-shrink: 0;
  }
  
  .location-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
  }
  
  .location-card-detail {
    display: flex;
    flex-direction: column;
  }
  
  .location-card-detail-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
  }
  
  .location-card-detail-value {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
  }
  
  /* Mobile location button adjustments */
  .mobile-new-location-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 16px;
  }
  
  /* Department table mobile styles */
  .departments-table-desktop {
    display: none;
  }
  
  .departments-table-mobile {
    display: block;
  }
  
  /* Mobile department card styles */
  .department-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  }
  
  .department-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
  }
  
  .department-card-department {
    display: flex;
    align-items: center;
    flex: 1;
  }
  
  .department-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
  }
  
  .department-card-info {
    flex: 1;
  }
  
  .department-card-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.4;
  }
  
  .department-card-organization {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
  }
  
  .department-card-jobs {
    margin-left: 12px;
    flex-shrink: 0;
  }
  
  .department-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
  }
  
  .department-card-detail {
    display: flex;
    flex-direction: column;
  }
  
  .department-card-detail-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
  }
  
  .department-card-detail-value {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
  }
  
  /* Mobile department button adjustments */
  .mobile-new-department-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 16px;
  }
  
  /* Job Statuses table mobile styles */
  .job-statuses-table-desktop {
    display: none;
  }
  
  .job-statuses-table-mobile {
    display: block;
  }
  
  /* Mobile job status card styles */
  .job-status-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
  }
  
  .job-status-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
  }
  
  .job-status-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .job-status-card-color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
    border: 2px solid #f3f4f6;
  }
  
  .job-status-card-info {
    flex: 1;
  }
  
  .job-status-card-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.2;
  }
  
  .job-status-card-type {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
  }
  
  .job-status-card-status-badge {
    margin-left: auto;
    flex-shrink: 0;
  }
  
  .job-status-card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
  }
  
  .job-status-card-detail {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .job-status-card-detail-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .job-status-card-detail-value {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .job-status-card-detail-value .color-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
  }
  
  .job-status-card-arrow {
    color: #9ca3af;
    margin-left: 8px;
  }
  
  /* Mobile job status button adjustments */
  .mobile-new-job-status-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 16px;
  }
  
  /* Mobile form action buttons - ensure consistent sizing */
  .form-actions-mobile {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .form-actions-mobile .btn-mobile-full {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
  }
  
  .form-actions-mobile .btn-mobile-half {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
  }
  
  .form-actions-mobile .btn-group-mobile {
    display: flex;
    gap: 12px;
    width: 100%;
  }
}

@media (min-width: 769px) {
  /* Show table on desktop, hide card layout */
  .jobs-table-desktop {
    display: block;
  }
  
  .jobs-table-mobile {
    display: none;
  }
  
  /* Show users table on desktop, hide card layout */
  .users-table-desktop {
    display: block;
  }
  
  /* Show organizations table on desktop, hide card layout */
  .organizations-table-desktop {
    display: block;
  }
  
  .organizations-table-mobile {
    display: none;
  }
  
  .users-table-mobile {
    display: none;
  }
  
  /* Show locations table on desktop, hide card layout */
  .locations-table-desktop {
    display: block;
  }
  
  .locations-table-mobile {
    display: none;
  }
  
  /* Show departments table on desktop, hide card layout */
  .departments-table-desktop {
    display: block;
  }
  
  .departments-table-mobile {
    display: none;
  }
  
  /* Show job statuses table on desktop, hide card layout */
  .job-statuses-table-desktop {
    display: block;
  }
  
  .job-statuses-table-mobile {
    display: none;
  }

  /* Show candidates grid on desktop, hide mobile layout */
  .candidates-table-desktop {
    display: block;
  }
  
  .candidates-table-mobile {
    display: none;
  }
}

/* Standard Button Styles */
.btn-primary {
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  border-color: #3884fc !important;
  box-shadow: 0 4px 12px rgba(56, 132, 252, 0.15) !important;
  transform: translateY(-1px);
}

/* Desktop only - show vertical toggle */

@media (min-width: 1025px) {
  .sidebar-vertical-toggle {
    display: flex !important;
  }
  
}

/* Settings section collapsible styles */
.settings-collapsed #settings-menu {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.settings-expanded #settings-menu {
  max-height: 500px; /* Adjust based on content */
  opacity: 1;
}

.settings-collapsed #settings-chevron {
  transform: rotate(-90deg);
}

.settings-expanded #settings-chevron {
  transform: rotate(0deg);
}

#settings-toggle {
  cursor: pointer;
}

#settings-toggle:focus {
  outline: none;
}

/* Tighter vertical padding for settings menu items */
#settings-menu .nav-link {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

/* Tab styling for applicant detail page */
.tab-button {
  position: relative;
  transition: all 0.2s ease;
  padding: 0.75rem 1rem !important;
  margin-bottom: 0 !important;
}

.tab-button.border-blue-500 {
  background-color: #f3f4f6 !important;
  color: #111827 !important;
  border-radius: 0.375rem 0.375rem 0 0;
  border-bottom: 2px solid #3b82f6 !important;
  font-weight: 600;
}

.tab-button.border-blue-500:hover {
  background-color: #e5e7eb !important;
  color: #111827 !important;
}

/* Applicant detail page - ensure profile box fills viewport */
.applicant-detail-container {
  min-height: calc(100vh - 180px); /* viewport height - header - back button - spacing */
}

@media (max-width: 1024px) {
  .applicant-detail-container {
    min-height: calc(100vh - 240px); /* viewport height - header - bottom bar - back button - spacing */
  }
}
