
/* Container */
.dashboardview-header-container {
  background-color: white;
  border-bottom: 1px solid #e5e7eb; /* Tailwind gray-200 */
  padding: 1.5rem 2rem; /* px-8 py-6 */
}

/* Flex container */
.dashboardview-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dashboardview-welcome-text h1 {
    font-family: 'Inter', sans-serif; /* Add this line */
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  letter-spacing: 0.01em;

}

.dashboardview-welcome-text p {
  color: #4b5563; /* gray-600 */
  margin-top: 0.25rem; /* mt-1 */
  margin-bottom: 0;
}

/* Right side container */
.dashboardview-header-right {
  display: flex;
  align-items: center;
  gap: 1rem; /* space-x-4 */
}

/* Date text container */
.dashboardview-date-info {
  text-align: right;
}


.dashboardview-date-info p:first-child {
  font-size: 0.875rem; /* text-sm */
  color: #6b7280; /* gray-500 */
  margin: 0;
}

.dashboardview-date-info p:last-child {
  font-weight: 600; /* font-semibold */
  color: #1f2937; /* gray-800 */
  margin: 0;
}
.dashboardview-date-info p {
  line-height: 1.2; /* or a smaller value */
}

/* User avatar circle */
.dashboardview-user-avatar {
  width: 2.5rem; /* w-10 */
  height: 2.5rem; /* h-10 */
  border-radius: 9999px; /* rounded-full */
  background: linear-gradient(135deg, #3b82f6, #10b981); /* from-brand-blue to-brand-green */
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboardview-user-avatar span {
  color: white;
  font-weight: 600; /* font-semibold */
  font-size: 0.875rem; /* text-sm */
  user-select: none;
}



/* Main container to lay out the cards */
.dashdashdashcards-container {
    display: grid;
    /* Creates a responsive grid that fits as many cards as possible */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem; /* Space between cards */
    margin: 20px;
}

/* --- General Card Styles --- */
/* MODIFIED: Added .dashcandidatesstatus-container to the rule */
.dashdashcandidates-review-card,
.dashcandidatesschedule-container,
.dashcandidatesstatus-container {
    background-color: #ffffff;
    padding: 1.5rem; /* 24px */
    border-radius: 0.75rem; /* 12px */
    border: 1px solid #e5e7eb; /* gray-200 */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); /* shadow-md */
    transition: box-shadow 0.2s ease-in-out;
}

/* MODIFIED: Added hover state for the new card */
.dashdashcandidates-review-card:hover,
.dashcandidatesschedule-container:hover,
.dashcandidatesstatus-container:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /* shadow-lg */
}


/* --- Content Layout --- */
/* MODIFIED: Added .dashcandidatesstatus-icon to the rule */
.dashcandidatescard,
.dashcandidatesschedule-icon,
.dashcandidatesstatus-icon {
    display: flex;
    align-items: center;
}

/* --- Icon Styles --- */
/* MODIFIED: Added .dashstatuscard-icon to the rule */
.dashcandidatecard-icon,
.dashschedulecard-icon,
.dashstatuscard-icon {
    padding: 0.75rem; /* 12px */
    border-radius: 9999px; /* full circle */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Specific background colors for each icon circle */
.dashcandidatecard-icon {
    background-color: var(--brand-light-blue);
}
.dashschedulecard-icon,
.dashstatuscard-icon { /* MODIFIED: Grouped with .dashschedulecard-icon */
    background-color: var(--brand-light-green);
}

/* --- Text Styles --- */
/* MODIFIED: Added .dashstatustext to the rule */
.dashcandidatestext,
.dashstatustext {
    margin-left: 1rem; /* 16px */
}

/* MODIFIED: Added .dashscheduletext-title to the rule */
.dashcandidatescard-title,
.text-xl,
.dashscheduletext-title {
    font-size: 1.25rem; /* 20px */
    font-weight: 600; /* semibold */
    color: #1f2937; /* gray-800 */
}

/* MODIFIED: Added .dashscheduletext-description to the rule */
.dashcandidatescard-desc,
.text-gray-500,
.dashscheduletext-description {
    color: #6b7280; /* gray-500 */
    margin-top: 0.25rem; /* 4px */
}

/* --- Button Area --- */
.dashcandidatescardbtn,
.dashschedule-card {
    margin-top: 1.5rem; /* 24px */
    display: flex;
    justify-content: flex-end;
}

/* --- Button Styles --- */
.dashcandidatescard-btn,
.dashschedule-btnleft,
.dashschedule-btnright {
    padding: 0.5rem 1.25rem; /* py-2 px-5 */
    border: none;
    border-radius: 0.5rem; /* rounded-lg */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Primary "Blue" Button */
.dashcandidatescard-btn {
    background-color: #38B6FF;
    color: #ffff;
}
.dashcandidatescard-btn:hover {
    transform: scale(1.05);
	 background-color: #A6C224;
}

/* Secondary "Gray" Button */
.dashschedule-btnleft {
    background-color: #e5e7eb; /* gray-200 */
    color: #374151; /* gray-700 */
    margin-right: 0.75rem; /* 12px */
}
.dashschedule-btnleft:hover {
    background-color: #d1d5db; /* gray-300 */
}

/* Primary "Green" Button */
.dashschedule-btnright {
    background-color: #38B6FF;
    color: #ffff;
}
.dashschedule-btnright:hover {
    transform: scale(1.05);
	background-color: #A6C224;
}
.icon-container {
  width: 40px;
  height: 40px;
  background-color: #BAE6FD;
  border-radius: 50%;
  align-items: flex-start;
}
.iconouter{
	height:140px;
}
.dashscheduletext{
	margin:15px;
}


/* --- Card Container --- */
.status-card-container {
    font-family: 'Inter', sans-serif; /* Assuming Inter font is loaded */
    background-color: #ffffff;
    padding: 1.5rem; /* 24px */
    border-radius: 0.75rem; /* 12px */
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    max-width: 350px; /* Set a max width for the card */
}

/* --- Title --- */
.status-card-title {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0; /* Remove default margin and add bottom margin */
}

/* --- Chart --- */
.status-chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.status-chart {
    transform: rotate(-90deg); /* Start the circle at the top */
}

.chart-background {
    fill: none;
    stroke: #f3f4f6; /* light gray */
    stroke-width: 3.8;
}

.chart-segment {
    fill: none;
    stroke-width: 3.8;
    stroke-linecap: round; /* Makes the segment ends rounded */
}

/* --- Legend --- */
.status-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Space between legend items */
}

.legend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem; /* 14px */
    color: #374151;
}

.legend-label {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between dot and text */
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-value {
    font-weight: 500;
    color: #1f2937;
}

/* --- Colors for Chart and Dots --- */
.chart-segment.green, .legend-dot.green {
    /* Corresponds to your --brand-green */
    stroke: #34D399;
    background-color: #34D399;
}
.chart-segment.blue, .legend-dot.blue {
    /* Corresponds to your --brand-blue */
    stroke: #60A5FA;
    background-color: #60A5FA;
}
.legend-dot.gray {
    background-color: #d1d5db; /* A medium gray */
}
/* --- Base Styles --- */
.upcoming-shifts-card {
  /* It's best to set the font on a parent element like the body, 
     but including it here for this component to be self-contained. */
  font-family: 'Inter', sans-serif; 
  color: #374151; /* Default text color (gray-700) */
}

/* --- Card Container --- */
.upcoming-shifts-card {
  margin-top: 2rem;
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem; /* Softer, larger radius */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Softer shadow */
  border: none;
  margin:20px;
}

/* --- Card Title --- */
.card-title {
  font-size: 1.125rem;
  font-weight: 500; /* Lighter font weight (medium) */
  color: #1f2937; /* gray-800 */
  margin-bottom: 1.5rem; /* More space below the title */
}

/* --- Table Styles --- */
.table-container {
  overflow-x: auto; /* Allows horizontal scrolling on small screens */
}

.shifts-table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  border: none;
}

.shifts-table thead {
  font-size: 0.75rem; /* 12px */
  color: #9ca3af; /* gray-400 */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.shifts-table th {
  padding: 0.5rem;
  font-weight: 500;
}

.shifts-table tbody tr {
  border-top: 1px solid #f3f4f6; /* Lighter dividing line (gray-100) */
}

.shifts-table td {
  padding: 1rem 0.5rem; /* More vertical padding */
  font-size: 0.875rem; /* 14px */
}

/* --- Special Cell Styles --- */
.cell-nowrap {
  white-space: nowrap;
}
.cell-work-order {
  font-weight: 500;
  color: #1f2937;
}
.cell-unfilled {
  color: #9ca3af;
  font-style: italic;
}

/* --- Status Badges --- */
body.page-template-employer-dashboard #upcoming-shifts-body .status-badge {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem; /* Rounded rectangle */
 
}

.status-scheduled {
  background-color: #eff6ff; /* blue-50 */
  color: #3b82f6; /* blue-500 */
}

.status-pending {
  background-color: #fefce8; /* yellow-50 */
  color: #a16207; /* yellow-700 */
}

/*
========================================
=====   DARK MODE STYLES (Part 2)  =====
=====      Header, Cards, Table    =====
========================================
*/

/* --- 1. Dashboard Header --- */
body.dark-mode .dashboardview-header-container {
  background-color: #1f2937; /* gray-800 */
  border-bottom: 1px solid #374151; /* gray-700 */
}

body.dark-mode .dashboardview-welcome-text h1 {
  color: #f3f4f6; /* gray-100 */
}

body.dark-mode .dashboardview-welcome-text p {
  color: #d1d5db; /* gray-300 */
}

body.dark-mode .dashboardview-date-info p:first-child {
  color: #9ca3af; /* gray-400 */
}

body.dark-mode .dashboardview-date-info p:last-child {
  color: #f3f4f6; /* gray-100 */
}

/* --- 2. General Card Styles --- */
/* This handles all your card backgrounds/borders at once! */
body.dark-mode .dashdashcandidates-review-card,
body.dark-mode .dashcandidatesschedule-container,
body.dark-mode .dashcandidatesstatus-container,
body.dark-mode .upcoming-shifts-card {
  background-color: #1f2937; /* gray-800 */
  border: 1px solid #374151; /* gray-700 */
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.4); /* Darker shadow */
  color: #d1d5db; /* Default light text for cards */
}

/* --- 3. Card Content & Text --- */
body.dark-mode .dashcandidatescard-title,
body.dark-mode .text-xl,
body.dark-mode .dashscheduletext-title,
body.dark-mode .status-card-title,
body.dark-mode .card-title,
body.dark-mode .cell-work-order {
  /* This targets all card titles */
  color: #f3f4f6; /* gray-100 */
}

body.dark-mode .dashcandidatescard-desc,
body.dark-mode .text-gray-500,
body.dark-mode .dashscheduletext-description {
  /* This targets all card descriptions */
  color: #d1d5db; /* gray-300 */
}

/* --- 4. Card Buttons & Icons --- */
body.dark-mode .dashschedule-btnleft {
  background-color: #374151; /* gray-700 */
  color: #f3f4f6; /* gray-100 */
}
body.dark-mode .dashschedule-btnleft:hover {
  background-color: #4b5563; /* gray-600 */
}

body.dark-mode .icon-container {
  background-color: #0c4a6e; /* A dark version of blue */
}

/* --- 5. Status Chart Card --- */
body.dark-mode .chart-background {
  stroke: #374151; /* gray-700 */
}

body.dark-mode .legend-item {
  color: #d1d5db; /* gray-300 */
}

body.dark-mode .legend-value {
  color: #f3f4f6; /* gray-100 */
}

body.dark-mode .legend-dot.gray {
  background-color: #6b7280; /* gray-500 */
}

/* --- 6. Upcoming Shifts Table --- */
body.dark-mode .shifts-table thead {
  color: #9ca3af; /* gray-400 */
}

body.dark-mode .shifts-table tbody tr {
  border-top: 1px solid #374151; /* gray-700 */
}

body.dark-mode .cell-unfilled {
  color: #6b7280; /* gray-500 */
}

/* --- 7. Status Badges --- */
body.dark-mode .status-scheduled {
  background-color: #1e40af; /* blue-800 */
  color: #bfdbfe; /* blue-200 */
}

body.dark-mode .status-pending {
  background-color: #78350f; /* yellow-900 */
  color: #fef08a; /* yellow-200 */
}

body.dark-mode .status-card-container {
  background-color: #1f2937; /* gray-800 */
  border: 1px solid #374151; /* gray-700 */
  color: #d1d5db; /* Default light text for this card */
}

/*
========================================
=====     DARK MODE OVERRIDES      =====
=====    (PRO TUNING V2 - FINAL)   =====
========================================
*/

/* --- 1. Dark Main Layout & Sidebar --- */
body.dark-mode .employer-dashboard {
  background-color: #111827; /* gray-900 */
}

body.dark-mode .sidebar {
  background-color: #1f2937; /* gray-800 */
  border-right: 1px solid #374151; /* gray-700 */
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.4);
}

body.dark-mode .sidebar-header {
  border-bottom: 1px solid #374151; /* gray-700 */
}

body.dark-mode .sidebar-header h1 {
  color: #f3f4f6; /* gray-100 */
}

body.dark-mode .sidebar-header p {
  color: #9ca3af; /* gray-400 */
}

/* --- 2. Dark Navigation --- */
body.dark-mode .nav-item {
  color: #d1d5db; /* gray-300 */
}

body.dark-mode .nav-item:hover,
body.dark-mode .nav-item:focus-visible {
  background-color: #374151; /* gray-700 */
  color: #f9fafb; /* gray-50 */
}

body.dark-mode .nav-item.active {
  color: #38b6ff; /* Keep brand-blue */
  background-color: #111827; /* gray-900 */
  border-right-color: #38b6ff;
}

body.dark-mode .nav-item.active:hover,
body.dark-mode .nav-item.active:focus-visible {
  background-color: #111827;
  color: #38b6ff;
  border-right-color: #38b6ff;
}

body.dark-mode .logout-container {
  border-top: 1px solid #374151; /* gray-700 */
}

body.dark-mode .nav-item.logout {
  color: #f87171; /* red-400 (lighter) */
}

body.dark-mode .nav-item.logout:hover,
body.dark-mode .nav-item.logout:focus-visible {
  color: #fca5a5; /* red-300 */
  background-color: #7f1d1d; /* red-900 */
}

/* --- 3. Dark Main Content Header --- */
body.dark-mode .main-content-dashboard {
   color: #f3f4f6; /* Default light text */
}

body.dark-mode .dashboardview-header-container {
  background-color: #1f2937; /* gray-800 */
  border-bottom: 1px solid #374151; /* gray-700 */
}

body.dark-mode .dashboardview-date-info p:first-child {
  color: #9ca3af; /* gray-400 */
}

body.dark-mode .dashboardview-date-info p:last-child {
  color: #f3f4f6; /* gray-100 */
}

/* --- 4. Dark Cards (Systematic V2) --- */
body.dark-mode .dashdashcandidates-review-card,
body.dark-mode .dashcandidatesschedule-container,
body.dark-mode .dashcandidatesstatus-container,
body.dark-mode .status-card-container,
body.dark-mode .upcoming-shifts-card {
  background-color: #374151; /* gray-800 */
  border: 1px solid #374151; /* gray-700 */
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.4);
  color: #d1d5db;
  padding: 1.25rem; /* V2 systematic TIGHTER padding */
}

/* --- 5. Dark Text (Systematic V2 - No "BOOM!") --- */
body.dark-mode .dashboardview-welcome-text h1 {
  font-size: 1.25rem; /* V2 systematic SMALLER H1 */
  color: #e5e7eb; /* Softer gray-200 */
}

body.dark-mode .dashcandidatescard-title,
body.dark-mode .text-xl,
body.dark-mode .dashscheduletext-title,
body.dark-mode .status-card-title,
body.dark-mode .card-title,
body.dark-mode .cell-work-order {
  font-size: 1.125rem; /* V2 systematic card title */
  color: #e5e7eb; /* Softer gray-200 */
}

body.dark-mode .dashboardview-welcome-text p,
body.dark-mode .dashcandidatescard-desc,
body.dark-mode .text-gray-500,
body.dark-mode .dashscheduletext-description,
body.dark-mode .legend-item {
  font-size: 0.875rem; /* V2 systematic body text */
  color: #9ca3af; /* Softer gray-400 */
}

/* --- 6. Dark Mode Pro Fixes (Colors) --- */

/* Fix 6a: Professional Button Hover (Blue) */
body.dark-mode .dashcandidatescard-btn:hover,
body.dark-mode .dashschedule-btnright:hover {
  background-color: #2596d9; /* A deeper, cleaner blue */
  transform: scale(1.05); /* Keep the nice scale */
}

body.dark-mode .dashschedule-btnleft {
  background-color: #374151; /* gray-700 */
  color: #f3f4f6; /* gray-100 */
}
body.dark-mode .dashschedule-btnleft:hover {
  background-color: #4b5563; /* gray-600 */
}

/* Fix 6b: Professional Chart Green (Emerald) */
body.dark-mode .chart-segment.green, 
body.dark-mode .legend-dot.green {
  stroke: #10b981; /* Was neon, now deep emerald */
  background-color: #10b981;
}

body.dark-mode .chart-background {
  stroke: #374151; /* gray-700 */
}

body.dark-mode .legend-value {
  color: #f3f4f6; /* gray-100 */
}

body.dark-mode .legend-dot.gray {
  background-color: #6b7280; /* gray-500 */
}

body.dark-mode .icon-container {
  background-color: #0c4a6e; /* A dark version of blue */
}

/* --- 7. Dark Table & Badges --- */

/* Fix 7a: Softer Table Lines */
body.dark-mode .shifts-table tbody tr {
  border-top: 1px solid #2a374a; /* Much softer line */
}

body.dark-mode .shifts-table thead {
  color: #9ca3af; /* gray-400 */
}

body.dark-mode .cell-unfilled {
  color: #6b7280; /* gray-500 */
}

body.dark-mode .status-scheduled {
  background-color: #1e40af; /* blue-800 */
  color: #bfdbfe; /* blue-200 */
}

body.dark-mode .status-pending {
  background-color: #78350f; /* yellow-900 */
  color: #fef08a; /* yellow-200 */
}

/* --- 8. Example Widget (Keep for future) --- */
body.dark-mode .your-widget-class {
  background-color: #1f2937;
  color: #f3f4f6;
border: 1px solid #374151;}



.shifts-table th,
.shifts-table td {
  /* Set the color to our gray (overriding green) */
  border-color: #f3f4f6; 
  
  /* Remove the annoying column lines */
  border-left: none;
  border-right: none;
  
  /* Set ONLY the top border */
  border-top: 1px solid #f3f4f6;
  border-bottom: none;
}

/* This turns OFF our old, weaker rule */
.shifts-table tbody tr {
  border-top: none;
}


/* --- Dark Mode Table Fix --- */
body.dark-mode .shifts-table th,
body.dark-mode .shifts-table td {
  /* Set the color to our dark gray (overriding green) */
  border-color: #374151; 
  
  /* Remove the annoying column lines */
  border-left: none;
  border-right: none;
  
  /* Set ONLY the top border */
  border-top: 1px solid #374151;
  border-bottom: none;
}

/* This turns OFF our old, weaker rule */
body.dark-mode .shifts-table tbody tr {
  border-top: none;
}