:root {
  --primary-color: #18b56a;
  --primary-color-light: #e6f7ee;
  --sidebar-width: 240px;
  --sidebar-width-collapsed: 80px;
  --header-height: 70px;
  --blue-progress: #3772ff;
  --red-progress: #ff3737;
  --yellow-progress: #ffb800;
  --green-progress: #18b56a;
  --transition-speed: 0.3s;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Main content area */
.main-content {
  margin-left: var(--sidebar-width);
  padding: 20px;
  min-height: 100vh;
  transition: margin-left var(--transition-speed) ease;
}

.main-content.expanded {
  margin-left: var(--sidebar-width-collapsed);
}

/* Mobile adjustments for main content */
@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    padding-top: 70px;
  }
  
 
}



/* Date navigation */
.date-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.current-date {
  font-size: 28px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.2s;
}

.date-arrow:hover {
  background-color: #f5f5f5;
}

.date-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  border-radius: 8px;
  background-color: #fff;
  border: 1px solid #ddd;
 
}

.update-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 8px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
.update-btn i {
    
    
   padding: 3px;
    
  }

.update-btn:hover {
  background-color: #149a5b;
}

/* Stats boxes */
.stats-container {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); */
}
.stat-box1 {
 
  border-radius: 10px;
  padding: 20px;
  flex: 1;
  min-width: 300px;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); */
}

.stat-title1 {
  color: #555;
  font-size: 14px;
  /* margin-bottom: 15px; */
}

.progressbarText {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}


.stat-box {
  /* background-color: white; */
  border-radius: 10px;
  padding: 15px;
  flex: 2;
  width: 300px;
 
}



.stats-container.stat-box3 {
  background-color: white;
  border-radius: 10px;
  padding: 15px;
  flex: 1;
  width: 200px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.stat-title3 {
  color: #555;
  margin-top: 0px;
  font-size: 14px;
  padding-top: 16px;
}

.stat-value3 {
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 0px;
  padding-top: 1px;
}

.stat-title {
  color: #555;
  font-size: 14px;
  margin-top: 2px;
}


.progress {
height: 8px;
border-radius: 4px;
flex: 1;
margin-bottom: 0;
background-color: #e9ecef;
}

.progress-bar.bg-success {
background-color: #3e8989 !important;
}

.stat-value {
font-size: 24px;
font-weight: bold;
white-space: nowrap;
}

.multi-progress {
  height: 8px;
  /* margin-bottom: 10px; */
  border-radius: 4px;
  display: flex;
  overflow: hidden;
  margin-top: 12px;
}

.progress-segment {
  height: 100%;
}

.blue-segment {
  background-color: var(--blue-progress);
}

.red-segment {
  background-color: var(--red-progress);
}

.yellow-segment {
  background-color: var(--yellow-progress);
}

.green-segment {
  background-color: var(--green-progress);
}


/* Month selector */
.month-selector {
  margin-bottom: 15px;
}

/* Select all button */
.select-all-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--primary-color);
  border-radius: 15px;
  padding: 4px 10px;
  margin-bottom: 15px;
  width: fit-content;
  color: var(--primary-color);
  font-size: 12px;
  cursor: pointer;
}

.select-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

/* Calendar section */
.calendar-section {
  background-color: white;
  border-radius: 10px;
  padding: 0;
 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.employee-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;

 
}


.employee-table td {
  padding: 12px;
  text-align: left;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.05) ;
}
.employee-table th{
  
  text-align: left;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.05) ;
}

.employee-table th {
  font-weight: 500;
  color: #666;
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 1;
  border-bottom: 1px solid #f0f0f0;
}

.employee-table td {
  border-bottom: 1px solid #f0f0f0;
}

.day-number {
  font-size: 18px;
  font-weight: bold;
  display: block;
  text-align: center;
}

.day-name {
  font-size: 12px;
  color: #999;
  text-align: center;
  display: block;
}

/* Force day 13 styling */
th div[style*="background-color: #3772ff"] {
  background-color: #3772ff !important;
  color: white !important;
  border-radius: 5px !important;
  padding: 5px 0 !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 !important;
}

th div[style*="background-color: #3772ff"] span {
  color: white !important;
}

.employee-name-col {
  width: 220px;
  position: sticky;
  left: 0;
  background-color: white;
  z-index: 2;
  border-right: 1px solid #f0f0f0 !important;
 box-shadow: 5px 0 10px -5px rgba(0, 0, 0, 0.3);
 
}




/* For dark mode compatibility */
body.dark-mode .employee-name-col {
  background-color: #1e1e1e;
  border-right-color: #333 !important;
  box-shadow: 5px 0 10px -5px rgba(0.3, 0.3, 0.3, 0.3);
 
}


.employee-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.employee-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.employee-details {
  display: flex;
  flex-direction: column;
}

.employee-id {
  font-size: 12px;
  color: #999;
}

.team-header {
  background-color: #f8faf9 !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 15px !important;
}

.dept-header {
  background-color: #f8f9fc !important;
  color: #5872e7 !important;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 15px !important;
}


/* Pagination */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 12px;
  background-color: white;
  border-top: 1px solid #f0f0f0;
}

.entries-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.entries-dropdown {
  position: relative;
  width: 60px;
  border: 1px solid #ddd;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
}

.entries-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-top: 5px;
  display: none;
  z-index: 100;
}

.entries-dropdown-menu.show {
  display: block;
}

.entry-option {
  padding: 5px 10px;
  text-align: center;
  cursor: pointer;
}

.entry-option:hover {
  background-color: #f5f5f5;
}

.entries-text {
  font-size: 14px;
  color: #666;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-text {
  font-size: 14px;
  color: #666;
}

.page-number-container {
  display: flex;
  align-items: center;
}

.page-number {
  width: 60px;
  text-align: center;
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.page-arrow {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  color: #666;
}

@media (max-width: 992px) {
  
  .date-navigation {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .date-controls {
    margin-top: 15px;
    width: 100%;
  }
}












/* Mobile Responsiveness Fixes for Admin Dashboard */

/* Fix for main content area on mobile */
@media (max-width: 768px) {
  /* Ensure main content starts below mobile header */
  .main-content {
    margin-left: 0 !important;
    padding-top: 70px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Proper spacing for date navigation on mobile */
  .date-navigation {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin-bottom: 15px !important;
    width: 100% !important;
  }
  
  .current-date {
    font-size: 20px !important; /* Slightly smaller font for date */
    width: auto !important;
    margin-bottom: 0 !important;
  }
  
  .date-arrow {
    width: 30px !important;
    height: 30px !important;
  }
  
  .date-controls {
    margin-top: 10px !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }
  
  /* Stats container layout fixes */
  .stats-container {
    flex-direction: column !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
  }
  
  .stat-box, .stat-box1, .stat-box3 {
    width: 100% !important;
    min-width: unset !important;
    margin-bottom: 15px !important;
    padding: 15px !important;
  }
  
  .stat-title3 {
    padding-top: 5px !important;
    margin-top: 0 !important;
  }
  
  .stat-title1 {
    margin-bottom: 10px;
  }
  
  .progressbarText {
    gap: 10px;
  }
  
  .progress {
    height: 6px;
  }
  
  .stat-value {
    font-size: 35px;
  }
  



/* Month selector styles - Make visible on mobile */
.month-selector {
  width: 100% !important;
  margin: 15px 0 !important;
  display: block !important;
}

.month-selector .dropdown .btn {
  font-size: 14px !important;
  padding: 5px 10px !important;
  width: auto !important;
  display: flex !important;
  align-items: center !important;
}

/* Make dropdowns available in mobile view */
.month-dropdown {
  display: block !important; /* Override any display:none */
}

.dropdown-toggle {
  display: flex !important;
  font-size: 13px !important;
  padding: 6px 10px !important;
  align-items: center !important;
}

  /* Calendar section improvements */
  .calendar-section {
    width: 100% !important;
    overflow-x: auto !important;
    border-radius: 10px !important;
    margin-top: 15px !important;
  }
  
  .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
  }
  
  /* Table cell sizing for mobile */
  .employee-table th,
  .employee-table td {
    padding: 10px 8px !important;
    font-size: 13px !important;
  }
  
  .employee-name-col {
    width: 150px !important; /* Narrower employee name column */
    min-width: 150px !important;
    border-right: 1px solid #f0f0f0 !important;
  }
  
  .schedule-cell {
    min-width: 60px !important;
    padding: 3px !important;
  }
  
  /* Smaller fonts and images for employee info */
  .employee-name div {
    font-size: 13px !important;
  }
  
  .employee-id {
    font-size: 11px !important;
  }
  
  .employee-avatar {
    width: 26px !important;
    height: 26px !important;
  }
  
  /* Pagination adjustments */
  .pagination-container {
    flex-wrap: wrap !important;
    gap: 15px !important;
    padding: 10px !important;
  }
  
  .entries-selector, .pagination-controls {
    width: 100% !important;
    justify-content: space-between !important;
  }
  
  .entries-text {
    font-size: 12px !important;
  }
  
  .entries-dropdown {
    width: 50px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
  }
  
  .page-text {
    font-size: 12px !important;
  }
  
  .page-number {
    width: 40px !important;
    font-size: 12px !important;
  }
  
  .page-arrow {
    width: 26px !important;
    height: 26px !important;
  }
  
  /* Mobile header fixes */
  .mobile-header {
    display: flex !important;
    height: 56px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1050 !important;
    background-color: #000 !important;
  }
  
  /* Sidebar specific mobile fixes */
  .sidebar {
    transform: translateX(-100%) !important;
    z-index: 1050 !important;
  }
  
  .sidebar.mobile-open {
    transform: translateX(0) !important;
    width: 240px !important;
  }
  
  /* Hide desktop header and unnecessary buttons on mobile */
  .top-header {
    display: none !important;
  }
  
  /* Make sure dropdowns show correctly on mobile */
  .dropdown-menu {
    position: absolute !important;
    min-width: 120px !important;
  }
  
  /* Explicitly show/hide relevant elements */
  .mobile-sidebar-toggle {
    display: block !important;
  }
  
  .sidebar-toggle {
    display: none !important;
  }
  
  /* Improved status indicator visibility */
  .notification-badge {
    width: 8px !important;
    height: 8px !important;
  }
  
 
  .update-btn {

    display: none;
  }
  
  /* Smaller icons in mobile buttons */
  .dropdown-toggle i {
    font-size: 14px;
  }
  
}

/* Additional small phone fixes */
@media (max-width: 375px) {
  .current-date {
    font-size: 18px !important;
  }
  
  .date-arrow {
    width: 28px !important;
    height: 28px !important;
  }
  
  .pagination-container {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  .pagination-controls {
    margin-top: 10px !important;
  }
}


/* Dark Mode */


/* Dark mode styles */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

/* Sidebar dark mode */
body.dark-mode .sidebar {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

body.dark-mode .sidebar-toggle {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

body.dark-mode .sidebar .nav-link:not(.active) {
  color: #e0e0e0 !important;
}

body.dark-mode .sidebar .nav-link.active {
  background-color: var(--primary-color) !important;
  color: white !important;
}

body.dark-mode .sidebar .nav-link:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Mobile header dark mode */
body.dark-mode .mobile-header {
  background-color: #1e1e1e;
}

/* Main content dark mode */
body.dark-mode .main-content {
  background-color: #121212;
}

/* Input fields */
body.dark-mode .search-input {
  background-color: #2d2d2d;
  border-color: #3d3d3d;
  color: #e0e0e0;
}

body.dark-mode .search-icon {
  color: #888;
}

/* Buttons and controls */
body.dark-mode .icon-btn {
  color: #e0e0e0;
}

body.dark-mode .date-arrow {
  background-color: #2d2d2d;
  border-color: #3d3d3d;
  color: #e0e0e0;
}

body.dark-mode .dropdown-toggle {
  background-color: #2d2d2d;
  border-color: #3d3d3d;
  color: #e0e0e0;
}

body.dark-mode .btn-light {
  background-color: #2d2d2d;
  border-color: #3d3d3d;
  color: #e0e0e0;
}

/* Cards and containers */
body.dark-mode .stat-box {
  background-color: #1e1e1e;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.dark-mode .stat-title {
  color: #aaa;
}

body.dark-mode .calendar-section {
  background-color: #1e1e1e;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Table elements */
body.dark-mode .employee-table th {
  background-color: #1e1e1e;
  color: #e0e0e0;
  border-bottom-color: #333;
}

body.dark-mode .employee-table td {
  border-bottom-color: #333;
}

body.dark-mode .employee-name-col {
  background-color: #1e1e1e;
  border-right: 1px solid #f0f0f0 !important;
}

body.dark-mode .team-header {
  background-color: #233229 !important;
}

body.dark-mode .dept-header {
  background-color: #222940 !important;
}

body.dark-mode .pagination-container {
  background-color: #1e1e1e;
  border-top-color: #333;
}

body.dark-mode .page-number {
  background-color: #2d2d2d;
  border-color: #3d3d3d;
  color: #e0e0e0;
}

body.dark-mode .page-arrow {
  background-color: #2d2d2d;
  border-color: #3d3d3d;
  color: #e0e0e0;
}

body.dark-mode .entries-dropdown {
  background-color: #2d2d2d;
  border-color: #3d3d3d;
  color: #e0e0e0;
}

body.dark-mode .entries-dropdown-menu {
  background-color: #2d2d2d;
  border-color: #3d3d3d;
}

body.dark-mode .entry-option:hover {
  background-color: #3d3d3d;
}

/* Text colors */
body.dark-mode .page-title {
  color: #e0e0e0;
}

body.dark-mode .breadcrumb-item a {
  color: var(--primary-color);
}

body.dark-mode .breadcrumb-item.active {
  color: #aaa;
}

body.dark-mode .entries-text, 
body.dark-mode .page-text {
  color: #aaa;
}

body.dark-mode .employee-id {
  color: #888;
}

/* Fix for dropdown menus */
body.dark-mode .dropdown-menu {
  background-color: #2d2d2d;
  border-color: #3d3d3d;
}

body.dark-mode .dropdown-item {
  color: #e0e0e0;
}

body.dark-mode .dropdown-item:hover {
  background-color: #3d3d3d;
}

/* Profile dropdown */
body.dark-mode .profile-dropdown {
  background-color: #2d2d2d;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .profile-dropdown ul li a {
  color: #e0e0e0;
}

body.dark-mode .profile-dropdown ul li a:hover {
  background-color: #3d3d3d;
}



/* Filter dropdown section */

/* Filter Dropdown Styling */
.dropdown button{
  border-radius: 50px;
}

.filter-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 16px;
  width: 280px;
  max-width: 100%;
  position: absolute;
  right: 143px;
  top: 159px;
  z-index: 1000;
  display: none;
}

.filter-section.show {
  display: block;
}

.filter-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.filter-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.clear-filters-btn {
  color: #3772ff;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.filter-group {
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 16px;
}

.filter-group:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.filter-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 4px 0;
}

.filter-group-title {
  font-size: 14px;
  color: #666;
}

.filter-group-chevron {
  color: #999;
  transition: transform 0.2s;
}

.filter-group.expanded .filter-group-chevron {
  transform: rotate(180deg);
}

.filter-group-content {
  margin-top: 8px;
  display: none;
}

.filter-group.expanded .filter-group-content {
  display: block;
}

.filter-search {
  position: relative;
  margin-bottom: 12px;
}

.filter-search input {
  width: 100%;
  padding: 8px 12px;
  padding-right: 36px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.filter-search .search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.filter-option {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.filter-option:last-child {
  margin-bottom: 0;
}

.filter-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  margin-right: 8px;
  cursor: pointer;
}

.filter-checkbox-label {
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.show-more-btn {
  color: #3772ff;
  background: none;
  border: none;
  font-size: 14px;
  margin-top: 8px;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

/* Custom checkbox styling */
.filter-option input[type="checkbox"] {
  /* Hide the default checkbox */
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.filter-checkbox-custom {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  margin-right: 8px;
}

.filter-option input[type="checkbox"]:checked ~ .filter-checkbox-custom {
  background-color: #3772ff;
  border-color: #3772ff;
}

.filter-option input[type="checkbox"]:checked ~ .filter-checkbox-custom:after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


/* Active Filters */
.active-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-tag {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 13px;
  gap: 5px;
}

.filter-tag.fullday {
  background-color: #e6f7ee;
  color: var(--primary-color);
}

.filter-tag.vacation {
  background-color: #ffefef;
  color: #d9534f;
}

.filter-tag.remote {
  background-color: #fff8e6;
  color: #f0ad4e;
}

.filter-tag.morning {
  background-color: #e8f5ff;
  color: #0275d8;
}

.filter-tag.evening {
  background-color: #f5f5f5;
  color: #5a5a5a;
}

.filter-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.fullday .dot {
  background-color: var(--primary-color);
}

.vacation .dot {
  background-color: #d9534f;
}

.remote .dot {
  background-color: #f0ad4e;
}

.morning .dot {
  background-color: #0275d8;
}

.evening .dot {
  background-color: #5a5a5a;
}

.filter-tag .close-btn {
  cursor: pointer;
  font-size: 12px;
  margin-left: 5px;
}

@media(max-width:768px){
  Filter tags layout 
  .active-filters {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    margin-bottom: 15px;
  }
  
  /* Filter tag styling */
   .filter-tag {
    padding: 4px 10px;
    font-size: 12px;
  }

  .dropdown{
    display: none;
  }

  .stat-title3{
    padding-top: 0px;
  }

}




/* Quick View Filter popup like Morning , evening , remote and etc */



/* Quick View Popup Styles */
.quick-view-popup {
  position: fixed;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 350px;
  max-width: 90vw;
  z-index: 1500;
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.quick-view-popup.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.quick-view-header {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #f1f1f1;
}

.quick-view-title {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.quick-view-title-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 10px;
}

.quick-view-title-text {
  font-weight: 600;
  font-size: 16px;
}

.quick-view-time {
  display: block;
  font-size: 14px;
  font-weight: normal;
  color: #666;
  margin-top: 3px;
}

.quick-view-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quick-view-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.quick-view-action-btn:hover {
  color: #333;
}

.quick-view-body {
  padding: 15px 20px;
}

.quick-view-date-range {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.quick-view-date-range-icon {
  margin-right: 10px;
  color: #666;
  font-size: 18px;
}

.quick-view-date-range-text {
  font-size: 14px;
  color: #333;
}

.quick-view-employee {
  display: flex;
  align-items: center;
}

.quick-view-employee-icon {
  margin-right: 10px;
  color: #666;
  font-size: 18px;
}

.quick-view-employee-name {
  font-size: 14px;
  color: #333;
}

/* Style variants for different filter types */
.quick-view-popup.full-day .quick-view-title-dot {
  background-color: var(--green-progress);
}

.quick-view-popup.vacation .quick-view-title-dot {
  background-color: var(--red-progress);
}

.quick-view-popup.remote .quick-view-title-dot {
  background-color: var(--yellow-progress);
}

.quick-view-popup.morning .quick-view-title-dot {
  background-color: var(--blue-progress);
}

.quick-view-popup.evening .quick-view-title-dot {
  background-color: #5a5a5a;
}

/* Dark mode support */
body.dark-mode .quick-view-popup {
  background-color: #1e1e1e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .quick-view-header {
  border-bottom-color: #333;
}

body.dark-mode .quick-view-title-text {
  color: #e0e0e0;
}

body.dark-mode .quick-view-time,
body.dark-mode .quick-view-date-range-text,
body.dark-mode .quick-view-employee-name {
  color: #aaa;
}

body.dark-mode .quick-view-action-btn {
  color: #aaa;
}

body.dark-mode .quick-view-action-btn:hover {
  color: #e0e0e0;
}

body.dark-mode .quick-view-date-range-icon,
body.dark-mode .quick-view-employee-icon {
  color: #888;
}

/* Edit and Delete Modals Styles */
.edit-schedule-modal, .delete-schedule-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.edit-schedule-modal.active, .delete-schedule-modal.active {
  opacity: 1;
  visibility: visible;
}

.edit-modal-content, .delete-modal-content {
  background-color: white;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.edit-modal-header, .delete-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.edit-modal-header h3, .delete-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.edit-modal-close, .delete-modal-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #666;
}

.edit-modal-body, .delete-modal-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
}

.form-group select, .form-group input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.edit-modal-footer, .delete-modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  text-align: right;
}

.btn-cancel, .btn-save, .btn-delete {
  padding: 8px 15px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  margin-left: 10px;
}

.btn-cancel {
  background-color: #f2f2f2;
  color: #333;
}

.btn-save {
  background-color: var(--primary-color);
  color: white;
}

.btn-delete {
  background-color: #ff3737;
  color: white;
}

.delete-schedule-details {
  font-weight: 500;
  color: #555;
  margin-top: 10px;
}

/* Dark mode support */
body.dark-mode .edit-modal-content, 
body.dark-mode .delete-modal-content {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

body.dark-mode .edit-modal-header, 
body.dark-mode .delete-modal-header,
body.dark-mode .edit-modal-footer, 
body.dark-mode .delete-modal-footer {
  border-color: #333;
}

body.dark-mode .form-group label {
  color: #ddd;
}

body.dark-mode .form-group select, 
body.dark-mode .form-group input {
  background-color: #2d2d2d;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-mode .btn-cancel {
  background-color: #333;
  color: #ddd;
}

body.dark-mode .delete-schedule-details {
  color: #bbb;
}


/* Quick View filter popup end */




/* Dark mode support */
body.dark-mode .filter-section {
  background-color: #1e1e1e;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode .filter-section-title {
  color: #e0e0e0;
}

body.dark-mode .filter-group {
  border-bottom-color: #333;
}

body.dark-mode .filter-group-title {
  color: #aaa;
}

body.dark-mode .filter-search input {
  background-color: #2d2d2d;
  border-color: #3d3d3d;
  color: #e0e0e0;
}

body.dark-mode .filter-checkbox-label {
  color: #e0e0e0;
}

body.dark-mode .filter-checkbox-custom {
  background-color: #2d2d2d;
  border-color: #3d3d3d;
}


     




.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background-color: #fff;
  border-top: 1px solid #EAEAEA;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}


.entries-per-page {
  display: flex;
  align-items: center;
}

.entries-number {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  padding: 6px 10px;
  margin-right: 8px;
  min-width: 24px;
  position: relative;
  cursor: pointer;
}

.entries-number::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #757575;
  margin-left: 8px;
}

.entries-label {
  color: #666;
  font-size: 14px;
  font-weight: 400;
}


.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pagination-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F5F5F5;
  border: none;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.pagination-arrow:hover {
  background-color: #EEEEEE;
}

.pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.page-indicator {
  display: flex;
  align-items: center;
}

.page-label {
  color: #666;
  font-size: 14px;
  font-weight: 400;
  margin-right: 8px;
}

.page-number-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
}

.current-page {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-right: 8px;
}

.dropdown-arrow {
  width: 10px;
  height: 6px;
}


body.dark-mode .pagination-container {
  background-color: #1E1E1E;
  border-top-color: #333;
}

body.dark-mode .entries-number,
body.dark-mode .page-number-wrapper {
  background-color: #2D2D2D;
  border-color: #3D3D3D;
  color: #E0E0E0;
}

body.dark-mode .entries-label,
body.dark-mode .page-label,
body.dark-mode .pagination-number {
  color: #B0B0B0;
}

body.dark-mode .pagination-arrow {
  background-color: #2D2D2D;
}

body.dark-mode .pagination-arrow:hover {
  background-color: #3D3D3D;
}

body.dark-mode .pagination-arrow svg path,
body.dark-mode .dropdown-arrow path {
  stroke: #B0B0B0;
}


@media (max-width: 768px) {
  .pagination-container {
      padding: 16px;
  }
  
  .pagination-arrow {
      width: 28px;
      height: 28px;
  }
  
  .entries-number, 
  .page-number-wrapper {
      padding: 4px 8px;
  }
  
  .entries-label,
  .page-label,
  .current-page,
  .pagination-number,
  .entries-number {
      font-size: 13px;
  }
}

@media (max-width: 576px) {
  .pagination-container {
      flex-wrap: wrap;
      gap: 16px;
  }
  
  .entries-per-page {
      order: 1;
      width: 48%;
  }
  
  .page-indicator {
      order: 2;
      width: 48%;
      justify-content: flex-end;
  }
  
  .pagination-controls {
      order: 3;
      width: 100%;
      justify-content: center;
  }
}

@media (max-width: 375px) {
  .pagination-container {
      padding: 12px;
      gap: 12px;
  }
  
  .entries-per-page,
  .page-indicator {
      width: 100%;
      justify-content: flex-start;
  }
  
  .page-indicator {
      justify-content: flex-start;
  }
} 
    







/* Fixed Responsive Schedule Items CSS */

/* Make the schedule cells properly size for both desktop and mobile */
.schedule-cell {
  padding: 5px !important;
  height: 65px;
  min-width: 80px;
  position: relative;
  vertical-align: top;
  border: 1px solid #e5e7eb;
}

/* Base styling for schedule items */
.schedule-item {
  position: absolute;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  height: auto;
  border: 1px solid;
  z-index: 10;
  margin: 3px 0;
  left: 0;
  top: 0;
}



  
  /* Make calendar scrollable horizontally but prevent page overflow */
  .calendar-wrapper {
    max-width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
  }



/* Schedule item type-specific styling */
.schedule-item.full-day {
  background-color: #e6f7ee;
  color: var(--primary-color);
  width: 220px;
}

.schedule-item.vacation {
  background-color: #ffefef;
  color: #d9534f;
  width: 150px;
}

.schedule-item.remote {
  background-color: #fff8e6;
  color: #f0ad4e;
  width: 150px;
}

.schedule-item.morning {
  background-color: #e8f5ff;
  color: #0275d8;
  width: 150px;
}

.schedule-item.evening {
  background-color: #f5f5f5;
  color: #5a5a5a;
  width: 150px;
}

/* Spacing fixes for adjacent items */
.schedule-cell:has(.schedule-item) + .schedule-cell:has(.schedule-item) .schedule-item {
  margin-left: 5px;
}

/* Adjust positioning for cells with multiple items */
.schedule-cell .schedule-item:nth-child(2) {
  top: 30px !important;
}

.schedule-cell .schedule-item:nth-child(3) {
  top: 60px !important;
}

/* Critical fix for mobile view - prevent horizontal scrolling */
@media (max-width: 768px) {
  /* Constrain schedule items to not overflow on mobile */
  .schedule-item {
    width: auto !important;
    max-width: 100%;
    position: relative;
    left: auto !important;
    top: auto !important;
    margin-bottom: 4px;
  }
  
  /* Make calendar scrollable horizontally but prevent page overflow */
  .calendar-wrapper {
    max-width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
  }
  
  .calendar-section {
    max-width: 100%;
  }
  
  .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Ensure calendar cells are properly sized on mobile */
  .schedule-cell {
    min-width: 60px !important;
    padding: 3px !important;
  }
  
  .employee-name-col {
    position: sticky;
    left: 0;
    z-index: 15;
  }
}

/* Make sure parent containers don't overflow on desktop view */
.calendar-wrapper {
  width: 100%;

}

/* Make sure calendar can still be horizontally scrolled on desktop */
@media (min-width: 769px) {
  .schedule-item {
    /* Ensure items appear on top of cell boundaries */
    z-index: 10;
  }
  
  /* Prevent page overflow on desktop */
  .calendar-section {
    overflow: visible !important;
  }
  
  .calendar-wrapper {
    overflow-x: auto;
  }
  
  /* Allow table to be scrolled horizontally */
  .table-responsive {
    overflow-x: auto !important;
  }
}

/* OPTIONAL: Add visual indicator to show which schedule items are not clickable */
/* Add this CSS to your admin-dashboard.css file if you want visual feedback */

/* Style for schedule items in last 3 days (make them appear less interactive) */
.schedule-cell:nth-last-child(-n+3) .schedule-item {
  opacity: 0.7;
  cursor: default !important;
  position: relative;
}

.schedule-cell:nth-last-child(-n+3) .schedule-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(128, 128, 128, 0.1);
  border-radius: inherit;
  pointer-events: none;
}

/* Remove hover effects from last 3 days */
.schedule-cell:nth-last-child(-n+3) .schedule-item:hover {
  transform: none !important;
  box-shadow: none !important;
}


/* ADD this CSS to your admin-dashboard.css file to ensure popup respects boundaries */

/* Quick View Popup positioning fix */
.quick-view-popup {
  /* Existing styles... */
  position: fixed;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  padding: 15px;
  z-index: 10000;
  width: 320px;
  max-width: 90vw;
  border: 1px solid #e0e0e0;
  
  /* NEW: Ensure popup doesn't interfere with sticky elements */
  pointer-events: auto;
}

/* Ensure popup is properly clipped when overlapping with employee column */
.calendar-section {
  position: relative;
  overflow: hidden; /* This helps contain popup positioning */
}

/* Make sure the table wrapper handles scroll properly */
.table-responsive {
  position: relative;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Ensure employee name column stays on top */
.employee-name-col {
  position: sticky;
  left: 0;
  background-color: white;
  z-index: 15; /* Higher than popup z-index in this area */
  border-right: 1px solid #f0f0f0 !important;
  box-shadow: 5px 0 10px -5px rgba(0, 0, 0, 0.3);
}

/* Dark mode support */
body.dark-mode .employee-name-col {
  background-color: #1e1e1e;
  border-right-color: #333 !important;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
  .quick-view-popup {
    width: 280px; /* Smaller on mobile */
    max-width: 85vw;
  }
  
  .employee-name-col {
    width: 150px !important;
    min-width: 150px !important;
    z-index: 20; /* Even higher z-index on mobile */
  }
}













/* ADD this CSS to your shift-dashboard.css file to fix the gauge properly: */

.gauge-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 180px !important;
    margin-bottom: 2rem !important;
    position: relative !important;
    width: 100% !important;
}

.gauge {
    width: 100% !important;
    max-width: 240px !important;
    height: auto !important;
    display: block !important;
}

.gauge-value {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -60%) !important;
    font-weight: 700 !important;
    font-size: 2.25rem !important;
    color: #111827 !important;
    z-index: 10 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.gauge-label {
    position: absolute !important;
    top: 68% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    opacity: 0.8 !important;
    z-index: 10 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* Ensure the progress container has proper background */
.progress-container {
    background-color: white !important;
    border-radius: 10px !important;
    padding: 20px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    height: 100% !important;
    min-height: 330px !important;
}

/* Stats container styling to match Figma */
.stats-container {
    display: flex !important;
    justify-content: space-between !important;
    text-align: center !important;
    padding: 0 0.5rem !important;
    margin-top: 2rem !important;
}

.stat-item {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.stat-value {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.2 !important;
}

.stat-label {
    font-size: 0.8rem !important;
    color: #6b7280 !important;
    line-height: 1.3 !important;
}

/* Color classes for stats */
.stat-green {
    color: #10b981 !important;
}

.stat-yellow {
    color: #ffb800 !important;
}

.stat-orange {
    color: #f97316 !important;
}

/* Dark mode support */
body.dark-mode .gauge-value {
    color: #e0e0e0 !important;
}

body.dark-mode .gauge-label {
    color: #a0a0a0 !important;
}

body.dark-mode .progress-container {
    background-color: #1e1e1e !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .stat-label {
    color: #aaa !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .gauge-container {
        height: 150px !important;
        margin-bottom: 1.5rem !important;
    }
    
    .gauge {
        max-width: 200px !important;
    }
    
    .gauge-value {
        font-size: 2rem !important;
    }
    
    .gauge-label {
        font-size: 0.8rem !important;
    }
    
    .stat-value {
        font-size: 1.25rem !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
    }
}




























