/*
 * MAIN APPLICATION STYLES
 * 
 * This file contains the core styles used by both the employee dashboard (dashboard.html)
 * and the admin dashboard (admin_dashboard.html).
 * 
 * Note: There is another style.css file in the css/ directory that is NOT directly 
 * referenced in any HTML file and may contain additional or redundant styles.
 */

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f7f6;
}

/* Login Styles */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f0f0f0;
}

.login-form {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 300px;
}

.login-form h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
  outline: none;
}

.login-form button {
  width: 100%;
  padding: 10px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-form button:hover {
  background-color: #555;
}

.error-message {
  color: red;
  margin-top: 10px;
  text-align: center;
}

.info-message {
  color: #3498db;
  margin-top: 10px;
  text-align: center;
}

/* Dashboard Styles */
.dashboard-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Enhanced Dashboard Cards */
.dashboard-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px;
}

.dashboard-card {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.1),
              -5px -5px 15px rgba(255,255,255,0.8);
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 20px rgba(0,0,0,0.15),
              -8px -8px 20px rgba(255,255,255,0.9);
}

.dashboard-card i {
  font-size: 3em;
  margin-bottom: 15px;
  background: linear-gradient(45deg, #3498db, #2980b9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dashboard-card h3 {
  color: #2c3e50;
  font-size: 1.3em;
  margin-bottom: 10px;
}

/* Sidebar Styles */
.sidebar {
  background: linear-gradient(180deg, #2c3e50, #34495e);
  color: white;
  width: 280px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 7px;
  text-align: center;
  border-bottom: 1px solid #555;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li a {
  padding: 15px 25px;
  color: #ecf0f1;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.sidebar-nav li a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.sidebar-nav li a i {
  margin-right: 15px;
  font-size: 1.2em;
}

/* Main Content Styles */
.main-content {
  flex: 1;
  margin-left: 280px;
  overflow-x: auto;
  overflow-y: auto;
  height: 100vh;
}

/* Main header styling with clock controls */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px;
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-bottom: 1px solid #e0e0e0;
}

.main-header h2 {
  color: #2c3e50;
  margin: 0;
  font-size: 1.8em;
  font-weight: 600;
}

.header-clockin {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-clockin button {
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
}

#headerLiveTimer {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
}

/* Clock In/Out Styling */
.clock-label {
  font-style: italic;
}

.clock-time {
  font-weight: bold;
}

.clock-in-time {
  color: #4CAF50; /* Green */
}

.clock-out-time {
  color: #f44336; /* Red */
}

.header-time-display {
  display: flex;
  flex-direction: column;
  margin-left: 15px;
  font-size: 0.9em;
  line-height: 1.4;
}

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .header-clockin {
    margin-top: 15px;
    width: 100%;
  }
  
  .header-time-display {
    margin-left: 0;
    margin-top: 10px;
  }
}

#content-area {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.content-section {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

.content-section h3 {
  margin-top: 0;
}

.main-footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px;
}

/* Enhanced Attendance Card */
.attendance-card {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 15px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.1),
              -5px -5px 15px rgba(255,255,255,0.8);
}

.attendance-card button {
  background: linear-gradient(45deg, #4CAF50, #45a049);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.attendance-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

#liveTimer {
  font-size: 2.5em;
  font-weight: bold;
  color: #2c3e50;
  text-align: center;
  margin: 20px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Backend Management Styles */
.backend-management-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.backend-management-section {
  width: 80%;
  margin-bottom: 20px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.backend-management-section h3 {
  text-align: center;
  margin-bottom: 15px;
}

.backend-management-form {
  display: flex;
  flex-direction: column;
}

.backend-management-form label {
  margin-bottom: 5px;
}

.backend-management-form input,
.backend-management-form textarea {
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.backend-management-form button {
  padding: 10px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.backend-management-form button:hover {
  background-color: #555;
}

.backend-management-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.backend-management-table th,
.backend-management-table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: left;
}

.backend-management-table th {
  background-color: #f0f0f0;
}

/* New Styles for Timer and Logs */
#attendanceLogs {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
  height: 100px;
  overflow-y: auto;
}

#attendanceLogs p {
  margin: 5px 0;
  font-size: 0.9em;
}

/* Improved UI for the All Employee page */
.employee-table-container {
  position: relative;
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(100vh - 400px);
}

.employee-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin: 20px 0;
  position: relative;
}

.employee-table th,
.attendance-table th {
  background: linear-gradient(to right, #2a5298, #2c3e50) !important;
  color: white !important;
  padding: 10px;
  text-align: left;
  font-weight: 500;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 2;
}

.employee-table th:last-child,
.attendance-table th:last-child {
  border-right: none;
}

.employee-table th:first-child,
.attendance-table th:first-child {
  background: linear-gradient(to right, #1a2530, #2a5298) !important;
}

.employee-table th:last-child,
.attendance-table th:last-child {
  background: linear-gradient(to right, #2c3e50, #3d566e) !important;
}

.employee-table td,
.attendance-table td {
  background: white;
  padding: 10px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  max-width: 250px;
  word-wrap: break-word;
  overflow: hidden;
}

/* Add specific widths for each column type */
.employee-table td:nth-child(1) {
  min-width: 60px; /* S.No (Serial Number) */
  text-align: center;
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
}

.employee-table td:nth-child(2) {
  min-width: 60px; /* Employee Number - same as S.No */
  position: sticky;
  left: 0;
  z-index: 1;
}

.employee-table td:nth-child(3) {
  min-width: 200px; /* Full Name & DOJ - increased size */
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  position: sticky;
  left: 60px;
  z-index: 1;
  box-shadow: 2px 0 5px -2px rgba(0,0,0,0.1);
}

.employee-table td:nth-child(3), 
.employee-table td:nth-child(4) {
  min-width: 120px; /* Designation, Department */
}

.employee-table td:nth-child(5) {
  min-width: 180px; /* Email */
  white-space: normal;
  word-break: break-word;
}

.employee-table td:nth-child(6),
.employee-table td:nth-child(7) {
  min-width: 80px; /* Is Active, Payroll */
  text-align: center;
}

.employee-table td:nth-child(8) {
  min-width: 150px; /* Actions */
}

.employee-table tr:hover td,
.attendance-table tr:hover td {
  background: #f8f9fa;
  transform: scale(1.01);
  transition: all 0.3s ease;
}

/* Hover effects for sticky columns */
.employee-table tbody tr:hover td:nth-child(2),
.employee-table tbody tr:hover td:nth-child(3) {
  background: #e9ecef;
}

/* Scrollbar styling for employee table */
.employee-table-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.employee-table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.employee-table-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.employee-table-container::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Styles for toggle switch in employee list */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4CAF50;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Button styles for action buttons with small icons */
.employee-btn {
  padding: 4px 6px;
  margin-right: 4px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75em;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.employee-btn i {
  font-size: 0.8em;
}

.employee-btn.change {
  background-color: #2980b9;
  color: white;
}

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

.employee-btn.documents {
  background-color: #8e44ad;
  color: white;
}

.employee-btn.edit {
  background-color: rgb(40, 167, 69);
  color: white;
}

.employee-btn.view {
  background-color: rgb(13, 110, 253);
  color: rgb(236, 236, 236);
}

.employee-btn:hover {
  opacity: 0.8;
}

/* Horizontal icon actions container */
.actions-container {
  display: flex;
  align-items: center;
}

/* Leave Management UI Styles */
.leave-management-container {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-top: 10px;
}

.leave-nav {
  background: #f5f7fa;
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 28px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  border: 1px solid #e9ecef;
}

.leave-nav a {
  padding: 14px 22px;
  border-radius: 8px;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.leave-nav a:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(59, 130, 246, 0.08);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 0;
}

.leave-nav a:hover:before {
  transform: scaleX(1);
}

.leave-nav a:hover {
  color: #3b82f6;
}

.leave-nav a.active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  position: relative;
  overflow: hidden;
}

.leave-nav a.active:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0.1), rgba(255,255,255,0));
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
}

/* View Monthly Logs button */
#viewMonthlyLogsBtn {
  background-color: #17a2b8;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

#viewMonthlyLogsBtn:hover {
  background-color: #138496;
  cursor: pointer;
}

/* Leave balance cards */
.leave-balance-section {
  margin-bottom: 28px;
}

.leave-balance-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.balance-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  min-width: 180px;
  flex: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.balance-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: #cbd5e1;
}

.balance-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #3b82f6, #60a5fa);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.balance-card h5 {
  font-size: 16px;
  color: #4b5563;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.balance-card span {
  font-size: 28px;
  font-weight: 700;
  color: #1e3a8a;
  display: block;
}

/* Leave applications table */
.leave-applications-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.leave-applications-table th {
  background: linear-gradient(to right, #2563eb, #3b82f6);
  color: white;
  text-align: left;
  font-weight: 500;
  padding: 16px;
  font-size: 14px;
  letter-spacing: 0.5px;
  position: relative;
}

.leave-applications-table td {
  padding: 16px;
  background: white;
  border-top: 1px solid #f1f5f9;
  color: #475569;
  font-size: 14px;
  vertical-align: middle;
  transition: background-color 0.2s;
}

.leave-applications-table tr:hover td {
  background-color: #f8fafc;
}

.leave-applications-table tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.leave-applications-table tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.table-responsive {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .leave-nav {
    flex-direction: column;
    padding: 8px;
  }
  
  .leave-nav a {
    width: 100%;
    justify-content: center;
  }
  
  .leave-balance-cards {
    flex-direction: column;
  }
  
  .balance-card {
    width: 100%;
  }
}

/* Enhanced Holiday Calendar */
.holiday-calendar {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 20px;
  padding: 30px;
  margin: 25px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.holiday-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 15px;
  width: 100%;
}

.holiday-item {
  background: #ffffff;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-left: 5px solid #4CAF50;
  width: 100%;
  margin-bottom: 10px;
}

.holiday-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.holiday-icon {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
}

.holiday-details {
  flex-grow: 1;
}

.holiday-details h4 {
  color: #2c3e50;
  font-size: 1.2em;
  margin: 0 0 8px 0;
}

.holiday-details p {
  color: #7f8c8d;
  margin: 0;
  font-size: 0.9em;
}

.holiday-date {
  background: #f8f9fa;
  padding: 8px 15px;
  border-radius: 20px;
  color: #34495e;
  font-weight: 500;
  font-size: 0.9em;
  display: inline-block;
  margin-top: 10px;
}

.holiday-type {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85em;
  font-weight: 500;
  margin-left: 10px;
}

.holiday-type.public {
  background-color: #e3f2fd;
  color: #1976d2;
}

.holiday-type.optional {
  background-color: #fff3e0;
  color: #f57c00;
}

.holiday-type.restricted {
  background-color: #ffebee;
  color: #c62828;
}

.holiday-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.holiday-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.holiday-btn.edit {
  background-color: #f0f0f0;
  color: #2c3e50;
}

.holiday-btn.delete {
  background-color: #ffebee;
  color: #c62828;
}

.holiday-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .holiday-list {
    grid-template-columns: 1fr;
  }
  
  .holiday-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .holiday-actions {
    justify-content: center;
  }
}

/* Enhanced Holiday Calendar */
.holiday-calendar {
  background: linear-gradient(135deg, #8ce0bd, #6aaacd);
  border-radius: 15px;
  padding: 25px;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.holiday-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.holiday-item {
  background: white;
  border-radius: 12px;
  padding: 0px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.holiday-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.holiday-icon {
  color: #00796b;
  font-size: 1.5em;
  margin-left: 6px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.holiday-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 0 10px;
}

.holiday-details span {
  font-weight: 600;
  color: #004d40;
}

.holiday-details small {
  color: #00695c;
  font-size: 0.85em;
}

.holiday-type {
  background: #4CAF50;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
}

.employee-btn.delete.holiday-delete {
  background: transparent;
  border: none;
  color: #e64a19;
  font-size: 1.2em;
  cursor: pointer;
  transition: color 0.3s;
}

.employee-btn.delete.holiday-delete:hover {
  color: #d84315;
}

.add-holiday-btn {
  background-color: #00796b;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 1em;
  transition: background-color 0.3s;
}

.add-holiday-btn:hover {
  background-color: #00695c;
}

/* Monthly Logs Overlay */
#monthlyLogsOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

#monthlyLogsOverlay .modal {
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Regularization Request Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1500; /* Higher than monthly logs overlay */
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: fadeIn 0.3s ease-out;
  margin: 0 auto;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Styles for the holiday form */
.holiday-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.holiday-form label {
  font-weight: bold;
}

.holiday-form input[type="text"],
.holiday-form input[type="date"],
.holiday-form select {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

.holiday-form button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.holiday-form button:hover {
  background-color: #367c39;
}

/* Enhanced Buttons */
.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #45a049;
}

.btn-success {
  background: linear-gradient(45deg, #4CAF50, #45a049);
  color: white;
}

.btn-danger {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .dashboard-cards-container {
    grid-template-columns: 1fr;
  }
}

/* Loading States */
.loading {
  position: relative;
  opacity: 0.7;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Status Badges */
.status-badge {
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
  text-align: center;
}

.status-present {
  background-color: #d4edda;
  color: #155724;
}

.status-absent {
  background-color: #ffcccb;
  color: #d32f2f;
  border: 1px solid #ef9a9a;
}

.status-anomalous {
  background-color: #e9d5ff;
  color: #7e22ce;
  border: 1px solid #d8b4fe;
}

.status-leave {
  background-color: #3498db;
  color: #fff;
}

.status-holiday {
  background-color: #d1ecf1;
  color: #0c5460;
}

.status-weekoff {
  background-color: #e2e3e5;
  color: #383d41;
}

.status-halfday {
  background-color: #cce5ff;
  color: #004085;
}

.status-half-leave {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* Enhanced Monthly Logs Modal Styles */
#monthlyLogsOverlay .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: linear-gradient(to right, #2c3e50, #3498db);
  color: white;
  border-bottom: 1px solid #eee;
}

#monthlyLogsOverlay .modal-header h3 {
  margin: 0;
  font-size: 1.5em;
  font-weight: 600;
  color: white;
}

#closeModalBtn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

#closeModalBtn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

#monthlyLogsOverlay .modal-body {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(90vh - 70px);
}

.month-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  padding: 8px;
  background-color: #f5f7fa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#prevMonthBtn, #nextMonthBtn {
  background-color: #3498db;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#prevMonthBtn:hover, #nextMonthBtn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#monthSelector {
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  color: #333;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#monthSelector:hover {
  border-color: #3498db;
}

#monthSelector:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#monthlyAttendanceTable {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
}

#monthlyAttendanceTable thead th {
  background: linear-gradient(to right, #2c3e50, #3498db);
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.5px;
}

#monthlyAttendanceTable tbody tr {
  border-bottom: 1px solid #eee;
  transition: all 0.2s;
}

#monthlyAttendanceTable tbody tr:hover {
  background-color: #f5f7fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#monthlyAttendanceTable td {
  padding: 15px;
  color: #333;
  vertical-align: middle;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.status-present, .status-approved {
  background-color: #E6F7EF;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.status-present-half {
  background-color: #E6F7EF;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.status-absent, .status-rejected {
  background-color: #ffcccb;
  color: #d32f2f;
  border: 1px solid #ef9a9a;
}

.status-anomalous {
  background-color: #e9d5ff;
  color: #7e22ce;
  border: 1px solid #d8b4fe;
}

.status-late, .status-pending {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.status-leave {
  background-color: #EFF6FF;
  color: #3B82F6;
  border: 1px solid #BFDBFE;
}

.status-holiday {
  background-color: #F0FDFA;
  color: #0D9488;
  border: 1px solid #99F6E4;
}

.status-weekoff {
  background-color: #F3F4F6;
  color: #4B5563;
  border: 1px solid #D1D5DB;
}

.status-upcoming {
  background-color: #f8f9fa;
  color: #6c757d;
}

.status-pending {
  background-color: rgba(230, 126, 34, 0.2);
  color: #d35400;
  border: 1px solid rgba(230, 126, 34, 0.3);
}

.status-approved {
  background-color: rgba(46, 204, 113, 0.2);
  color: #27ae60;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-rejected {
  background-color: rgba(231, 76, 60, 0.2);
  color: #c0392b;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Regularization Request Button */
.get-approval-btn {
  padding: 8px 16px;
  background: linear-gradient(to right, #3498db, #2980b9);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.get-approval-btn:hover {
  background: linear-gradient(to right, #2980b9, #1c6ea4);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.get-approval-btn:before {
  content: "\f044";
  font-family: "Font Awesome 5 Free";
  margin-right: 8px;
  font-size: 0.9em;
}

/* Enhanced Total Row Styling */
.total-row {
  background: linear-gradient(to right, rgba(52, 152, 219, 0.05), rgba(52, 152, 219, 0.1));
  border-bottom: 2px solid #3498db !important;
  font-weight: 600;
  position: relative;
}

.total-row:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(to right, #3498db, #2c3e50);
}

.total-row td {
  padding: 12px 15px;
}

.total-row td.text-right {
  color: #2c3e50;
  font-size: 0.95em;
  letter-spacing: 0.5px;
}

.total-row td.text-center {
  color: #3498db;
  font-size: 1.05em;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Loading and no data states */
.no-records {
  padding: 30px;
  text-align: center;
  color: #7f8c8d;
  font-style: italic;
}

#showPartialDataBtn {
  padding: 8px 16px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
}

/* Employee list toggle switches */
.employee-table .toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.employee-table .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.employee-table .toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 20px;
}

.employee-table .toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.employee-table .toggle-switch input:checked + .slider {
  background-color: #2ecc71;
}

.employee-table .toggle-switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* Salary Management Action Buttons - Matching payroll page */
.salary-actions {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  align-items: center;
}

.salary-actions button {
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-salary-btn {
  background-color: #28a745 !important;
}

.edit-salary-btn:hover {
  background-color: rgb(40, 167, 70) !important;
  opacity: 0.8 !important;
}

.delete-salary-btn {
  background-color: #dc3545 !important;
}

.delete-salary-btn:hover {
  background-color: rgb(255, 74, 93) !important;
  opacity: 0.8 !important;
}

.view-salary-btn {
  background-color: #0d6efd !important;
}

.view-salary-btn:hover {
  background-color: rgba(13, 110, 253, 0.1) !important;
  opacity: 0.8 !important;
}

.salary-actions button i {
  font-size: 12px;
}

/* Delete button icon color to match payroll page */
.delete-salary-btn i {
  color: #dadada !important;
}

/* Hover effect only when not disabled - matching payroll page */
.salary-actions button:not(:disabled):hover {
  opacity: 0.8;
}

/* Disabled state - matching payroll page */
.salary-actions button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Action column positioning - ensure buttons are centered below header */
.col-actions {
  text-align: center;
  vertical-align: middle;
}

/* Direct color application for table headers */
.employee-table th {
  background-color: #2c3e50 !important;
  color: white !important;
}

.employee-table th:first-child {
  background-color: #1a2530 !important;
}

.employee-table th:last-child {
  background-color: #3d566e !important;
}

/* Cache-busting comment - make sure browsers reload this CSS */

/* Salary Structure Styling */
.salary-structure-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  padding: 25px;
  margin-bottom: 30px;
}

.salary-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  align-items: center;
}

.salary-filters select,
.salary-filters input {
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  min-width: 180px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.salary-filters select:focus,
.salary-filters input:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
  outline: none;
}

.salary-filters button {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.salary-filters button:hover {
  background: linear-gradient(45deg, #2980b9, #1a5276);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.salary-filters button i {
  font-size: 14px;
}

/* Salary list container - similar to employee list container */
.salary-list-container {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  height: calc(100vh - 200px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Attendance list container - similar to employee and salary list containers */
.attendance-list-container {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  height: calc(100vh - 200px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Attendance anomalies list container */
.attendance-anomalies-list-container {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  height: calc(100vh - 200px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.salary-table-container {
  position: relative;
  overflow-x: auto;
  overflow-y: auto;
  flex: 1;
  max-height: calc(100vh - 250px);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.salary-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  white-space: nowrap;
}

.salary-table th {
  background: linear-gradient(to right, #2c3e50, #34495e);
  color: white;
  padding: 10px;
  text-align: left;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 10;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.salary-table th:first-child {
  border-top-left-radius: 8px;
  background: linear-gradient(to right, #1a2530, #2c3e50);
}

.salary-table th:last-child {
  border-top-right-radius: 8px;
  border-right: none;
  background: linear-gradient(to right, #34495e, #3d566e);
}

.salary-table td {
  padding: 10px;
  background: white;
  border-bottom: 1px solid #f2f2f2;
  transition: all 0.2s ease;
}

.salary-table tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.salary-table tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

.salary-table tr:hover td {
  background: #f8f9fa;
}

/* Scrollbar styling for salary table */
.salary-table-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.salary-table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.salary-table-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.salary-table-container::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Scrollbar styling for attendance tables */
.attendance-table-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.attendance-table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.attendance-table-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.attendance-table-container::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Salary Component Cards - Employee View */
.salary-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.salary-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.salary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.salary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, #3498db, #2c3e50);
}

.salary-card.earnings::before {
  background: linear-gradient(to bottom, #2ecc71, #27ae60);
}

.salary-card.deductions::before {
  background: linear-gradient(to bottom, #e74c3c, #c0392b);
}

.salary-card.net::before {
  background: linear-gradient(to bottom, #9b59b6, #8e44ad);
}

.salary-card h3 {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.salary-card h3 i {
  font-size: 18px;
  color: #3498db;
}

.salary-card.earnings h3 i {
  color: #2ecc71;
}

.salary-card.deductions h3 i {
  color: #e74c3c;
}

.salary-card.net h3 i {
  color: #9b59b6;
}

.salary-amount {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.salary-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.salary-details li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #f0f0f0;
  font-size: 14px;
  color: #555;
}

.salary-details li:last-child {
  border-bottom: none;
}

.salary-details .item-name {
  color: #7f8c8d;
}

.salary-details .item-value {
  font-weight: 600;
  color: #34495e;
}

/* Enhanced Salary History Section */
.salary-history-container {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.salary-history-container::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(52,152,219,0.05) 0%, rgba(52,152,219,0) 70%);
  z-index: 0;
}

.salary-history-container h3 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.salary-history-container h3 i {
  color: #3498db;
  font-size: 22px;
  background: linear-gradient(45deg, #3498db, #2980b9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.salary-history-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

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

.history-filter-controls select {
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.history-filter-controls select:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.history-view-options {
  display: flex;
  gap: 10px;
  align-items: center;
}

.history-view-btn {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  background-color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #7f8c8d;
}

.history-view-btn.active {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(52,152,219,0.2);
}

.history-view-btn:hover:not(.active) {
  background-color: #f8f9fa;
  color: #3498db;
}

.salary-graph {
  height: 350px;
  width: 100%;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  position: relative;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.03);
  margin-bottom: 20px;
  overflow: hidden;
}

.salary-graph::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #3498db, #2ecc71, #f1c40f, #e74c3c);
  opacity: 0.7;
  z-index: 2;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.chart-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.chart-grid-horizontal {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-color: rgba(189,195,199,0.2);
}

.chart-grid-vertical {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(189,195,199,0.2);
}

.chart-labels {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.chart-label {
  font-size: 12px;
  color: #7f8c8d;
}

.chart-bar {
  position: absolute;
  bottom: 40px;
  width: 30px;
  background: linear-gradient(to top, #3498db, #2980b9);
  border-radius: 6px 6px 0 0;
  z-index: 3;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chart-bar:hover {
  transform: translateY(-5px);
  filter: brightness(1.1);
}

.chart-bar::after {
  content: attr(data-value);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: #2c3e50;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.chart-bar:hover::after {
  opacity: 1;
}

.chart-line {
  position: absolute;
  top: 40px;
  left: 40px;
  right: 40px;
  bottom: 40px;
  z-index: 2;
  pointer-events: none;
}

.graph-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-style: italic;
  color: #95a5a6;
  background-color: rgba(255,255,255,0.8);
  padding: 15px 25px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  z-index: 4;
}

.salary-history-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #7f8c8d;
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.legend-gross {
  background: linear-gradient(45deg, #3498db, #2980b9);
}

.legend-net {
  background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.legend-bonus {
  background: linear-gradient(45deg, #f1c40f, #f39c12);
}

.salary-history-table {
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

/* Enhanced Table Headers for All Tables */
.salary-table th,
.employee-table th,
.attendance-table th,
#monthlyAttendanceTable th,
.document-table th,
.leave-table th {
  background: linear-gradient(to right, #1e3c72, #2a5298) !important;
  color: white !important;
  padding: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 12px;
  border: none;
  box-shadow: 0 4px 10px rgba(30,60,114,0.1);
  position: relative;
}

.salary-table th:first-child,
.employee-table th:first-child,
.attendance-table th:first-child,
#monthlyAttendanceTable th:first-child,
.document-table th:first-child,
.leave-table th:first-child {
  background: linear-gradient(to right, #0f2027, #1e3c72) !important;
  border-top-left-radius: 10px;
}

.salary-table th:last-child,
.employee-table th:last-child,
.attendance-table th:last-child,
#monthlyAttendanceTable th:last-child,
.document-table th:last-child,
.leave-table th:last-child {
  background: linear-gradient(to right, #2a5298, #2c3e50) !important;
  border-top-right-radius: 10px;
}

.salary-table th::after,
.employee-table th::after,
.attendance-table th::after,
#monthlyAttendanceTable th::after,
.document-table th::after,
.leave-table th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

/* Employee Profile Section Styling */
.employee-profile-container {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  margin-bottom: 30px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.profile-header {
  background: linear-gradient(135deg, #4a6bdf, #3f51b5);
  padding: 40px 30px;
  color: white;
  position: relative;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 30px;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.05)" width="50" height="50" x="0" y="0"/><rect fill="rgba(255,255,255,0.05)" width="50" height="50" x="50" y="50"/></svg>');
  background-size: 20px;
  opacity: 0.4;
}

.profile-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.3);
  margin-right: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.photo-upload-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  padding: 8px 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.profile-photo:hover .photo-upload-overlay {
  opacity: 1;
}

.upload-btn {
  color: white;
  cursor: pointer;
}

.upload-btn i {
  font-size: 18px;
}

.profile-info {
  z-index: 1;
}

.profile-info h4 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.profile-info p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 5px;
}

.profile-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  padding: 30px;
}

.profile-section {
  background: #f9fafc;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.profile-section:hover {
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.profile-section h5 {
  color: #3f51b5;
  font-size: 17px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(63, 81, 181, 0.2);
  font-weight: 600;
  position: relative;
}

.profile-section h5::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #3f51b5;
}

.profile-field {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
}

.profile-field:last-child {
  margin-bottom: 0;
}

.profile-field label {
  color: #666;
  font-weight: 500;
  min-width: 150px;
  font-size: 14px;
}

.profile-field span {
  color: #333;
  font-weight: 500;
  font-size: 15px;
}

.profile-cards {
  padding: 0 30px 30px;
}

.profile-card-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.profile-card-toggle button {
  border: none;
  background: #f1f3f9;
  color: #666;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-card-toggle button:hover {
  background: #e8ebf7;
}

.profile-card-toggle button.active {
  background: #3f51b5;
  color: white;
}

.card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.download-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #4a6bdf, #3f51b5);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#regularizationRequestForm button[type="submit"]:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Profile Tabs */
.profile-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 10px;
}

.profile-tab {
  padding: 15px 25px;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 500;
  color: #777;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.profile-tab:hover {
  color: #3f51b5;
}

.profile-tab.active {
  color: #3f51b5;
}

.profile-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #3f51b5;
  border-radius: 3px 3px 0 0;
}

.profile-tab-content {
  display: block;
}

.profile-container {
  padding: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* Company Profile Styles */
.company-profile-container {
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all 0.3s ease;
}

.company-profile-section {
  background: #f9fafc;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  position: relative;
  border-left: 4px solid #3f51b5;
}

.company-profile-section:hover {
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.company-profile-section:last-child {
  margin-bottom: 0;
}

.company-profile-section h5 {
  color: #3f51b5;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-profile-section h5 i {
  color: #3f51b5;
  font-size: 18px;
}

.company-logo-container {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin: 0 auto 25px;
  border: 5px solid #f0f0f0;
  background-color: #f9f9f9;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.company-logo-container:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.company-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.company-info-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.company-info-item:hover {
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.company-info-label {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.company-info-label i {
  color: #3f51b5;
}

.company-info-value {
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

#company-description {
  color: #333;
  line-height: 1.6;
  font-size: 15px;
}

/* Policies List Styling */
.policies-list {
  margin-top: 15px;
}

.policy-item {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  border-left: 3px solid #3f51b5;
}

.policy-item:hover {
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.policy-item h6 {
  color: #3f51b5;
  font-size: 17px;
  margin-bottom: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-item h6 i {
  color: #3f51b5;
}

.policy-item p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 14px;
}

.policy-download {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  background: #3f51b5;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(63, 81, 181, 0.25);
}

.policy-download:hover {
  background: #303f9f;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(63, 81, 181, 0.3);
}

/* Added styles for policy actions and view button */
.policy-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.policy-view-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  background: #fff;
  color: #3f51b5;
  border: 1px solid #3f51b5;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  gap: 8px;
  transition: all 0.3s ease;
}

.policy-view-btn:hover {
  background: #f0f2fd;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(63, 81, 181, 0.15);
}

.no-policies {
  color: #777;
  font-style: italic;
  text-align: center;
  padding: 30px;
  background: #f5f7fa;
  border-radius: 10px;
  border: 1px dashed #ddd;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .company-profile-container {
    padding: 20px;
  }
  
  .company-profile-section {
    padding: 20px;
  }
  
  .company-logo-container {
    width: 140px;
    height: 140px;
  }
  
  .company-info-grid {
    grid-template-columns: 1fr;
  }
  
  .policy-item {
    padding: 15px;
  }
}/* ID Card and Business Card Styles */
.id-card {
  width: 320px;
  height: 500px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(63, 81, 181, 0.15);
  margin-bottom: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.id-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(63, 81, 181, 0.25);
}

.id-card-header {
  background: linear-gradient(135deg, #4a6bdf, #3f51b5);
  color: white;
  padding: 20px;
  text-align: center;
}

.id-card-header img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
  background: white;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.id-card-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.id-card-body {
  padding: 25px;
  text-align: center;
}

.id-card-body img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #f5f7fa;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.id-card-details h5 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

.id-card-details p {
  margin: 8px 0;
  color: #555;
  font-size: 14px;
}

.id-card-details p:not(:last-child) {
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(0,0,0,0.05);
}

.id-card-footer {
  background: #f5f7fa;
  padding: 15px;
  text-align: center;
  font-size: 12px;
  color: #555;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Business Card Styles */
.business-card {
  width: 350px;
  height: 200px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(63, 81, 181, 0.15);
  margin-bottom: 20px;
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.business-card:hover {
  transform: rotateY(180deg);
}

.business-card-front, .business-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.business-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #4a6bdf, #3f51b5);
  color: white;
  display: flex;
  flex-direction: column;
}

.business-card-header {
  background: linear-gradient(135deg, #4a6bdf, #3f51b5);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
}

.business-card-header img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 15px;
  background: white;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.business-card-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.business-card-body {
  padding: 20px;
}

.business-card-body h5 {
  margin: 0 0 5px;
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

.business-card-body p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.business-card-contact {
  padding: 20px;
  height: 100%;
}

.employee-contact-section, 
.company-contact-section {
  margin-bottom: 15px;
}

.employee-contact-section h6, 
.company-contact-section h6 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.business-card-contact p {
  margin: 8px 0;
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
}

.business-card-contact i {
  width: 20px;
  margin-right: 10px;
  opacity: 0.9;
}

.contact-divider {
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 15px 0;
  position: relative;
}

.contact-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: #3f51b5;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  z-index: 1;
}

.contact-divider::after {
  content: '\f0e0';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.9);
  z-index: 2;
  font-size: 12px;
}

/* Employee and Company Logo Placeholders */
#employee-photo, #employee-photo-id, #employee-photo-bc {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTYgMjU2Ij48cmVjdCB3aWR0aD0iMjU2IiBoZWlnaHQ9IjI1NiIgZmlsbD0iI2U2ZTZlNiIvPjxjaXJjbGUgY3g9IjEyOCIgY3k9IjEwMCIgcj0iNTAiIGZpbGw9IiNhYWEiLz48cGF0aCBkPSJNMjEwIDE5OGMwLTQ0LjEtMzYuOS04MC04Mi04MHMtODIgMzUuOS04MiA4MGMwIDUgMCAxOCAwIDE4aDEwMCAxMDBzMC0xMyAwLTE4eiIgZmlsbD0iI2FhYSIvPjwvc3ZnPg==');
  background-size: cover;
}

#company-logo-id, #company-logo-bc {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTYgMjU2Ij48cmVjdCB3aWR0aD0iMjU2IiBoZWlnaHQ9IjI1NiIgZmlsbD0iI2U2ZTZlNiIvPjxyZWN0IHg9IjQwIiB5PSI4MCIgd2lkdGg9IjE3NiIgaGVpZ2h0PSIxMzYiIGZpbGw9IiNhYWEiLz48cmVjdCB4PSI3MCIgeT0iNDAiIHdpZHRoPSIxMTYiIGhlaWdodD0iMTc2IiBmaWxsPSIjYWFhIi8+PHJlY3QgeD0iOTAiIHk9IjEyMCIgd2lkdGg9IjMwIiBoZWlnaHQ9IjMwIiBmaWxsPSIjZTZlNmU2Ii8+PHJlY3QgeD0iMTQwIiB5PSIxMjAiIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgZmlsbD0iI2U2ZTZlNiIvPjxyZWN0IHg9IjkwIiB5PSIxNzAiIHdpZHRoPSI4MCIgaGVpZ2h0PSI0MCIgZmlsbD0iI2U2ZTZlNiIvPjwvc3ZnPg==');
  background-size: contain;
}

/* Responsive Adjustments for Cards */
@media (max-width: 768px) {
  .id-card, .business-card {
    width: 90%;
    max-width: 320px;
  }
  
  .profile-cards {
    padding: 0 15px 20px;
  }
  
  .id-card-header, .business-card-header {
    padding: 15px;
  }
  
  .id-card-body, .business-card-body, .business-card-contact {
    padding: 15px;
  }
  
  .id-card-body img {
    width: 100px;
    height: 100px;
  }
} 

/* Attendance table styling improvements */
.attendance-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.attendance-table th {
  background-color: #2c3e50;
  color: white;
  font-weight: 600;
  text-align: left;
  padding: 15px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.attendance-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eaeaea;
  vertical-align: middle;
}

.attendance-table tr:hover td {
  background-color: #f8f9fa;
}

.attendance-table tr:last-child td {
  border-bottom: none;
}

/* Attendance filters section - improved date range */
.attendance-filters {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: all 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
  outline: none;
}

/* Date range specific styles */
.date-inputs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.date-field {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.date-field:last-child {
  margin-bottom: 0;
}

.date-field label {
  width: 60px;
  margin-bottom: 0;
  margin-right: 10px;
  text-align: right;
  font-weight: 500;
  font-size: 14px;
}

.date-field input {
  flex: 1;
}

/* Button styles */
.btn-apply-filters,
.btn-reset-filters {
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-apply-filters {
  background-color: #3498db;
  color: white;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.25);
}

.btn-apply-filters:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

.btn-reset-filters {
  background-color: #e9ecef;
  color: #495057;
}

.btn-reset-filters:hover {
  background-color: #dee2e6;
  transform: translateY(-2px);
}

/* Make buttons more responsive */
.filter-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 768px) {
  .filter-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-apply-filters,
  .btn-reset-filters {
    width: 100%;
  }
}

/* Leave Balance Update History Styles */
.modal-title {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
}

.no-history {
  color: #7f8c8d;
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  font-style: italic;
}

.history-container {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.history-table {
  font-size: 14px;
}

.history-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.change-item {
  display: block;
  margin-bottom: 5px;
  padding: 5px 8px;
  background-color: #f5f5f5;
  border-radius: 4px;
  border-left: 3px solid #3b82f6;
}

.change-label {
  font-weight: 600;
  color: #475569;
  margin-right: 5px;
}

.change-value {
  color: #0f172a;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Employee list search and filter styles */
.search-filter-container {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.search-bar {
  display: flex;
  margin-bottom: 15px;
}

.search-bar input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px 0 0 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.search-bar input:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
  outline: none;
}

.search-btn {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: all 0.3s;
}

.search-btn:hover {
  background: linear-gradient(45deg, #2980b9, #1a5276);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}

.filter-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: all 0.2s;
}

.filter-group select:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
  outline: none;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.btn-reset-filters {
  background-color: #e9ecef;
  color: #495057;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-reset-filters:hover {
  background-color: #dee2e6;
  transform: translateY(-2px);
}

/* Media queries for responsive filters */
@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-actions {
    width: 100%;
    margin-top: 10px;
  }
  
  .btn-reset-filters {
    width: 100%;
  }
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 12px;
}
