body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f2f2f3;
    color: #333;
    text-align: center;
  }
  
  .container {
    max-width: 400px;
    margin: 80px auto;
  }
  
  .card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
  }
  
  .title {
    font-weight: bold;
    font-size: 30px;
    margin-bottom: 25px;
  }
  
  h2 {
    margin-bottom: 30px;
    font-size: 15px;
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  label {
    text-align: left;
    font-size: 0.85em;
    color: #666;
  }
  
  input[type="email"],
  input[type="password"],
  input[type="text"] {
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #eef2ff;
    width: 100%;
    box-sizing: border-box;
  }
  
  .password-wrapper {
    position: relative;
  }
  
  .password-wrapper img {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
  }
  
  .password-wrapper img:hover {
    opacity: 1;
  }
  
  .forgot {
    text-align: left;
    font-size: 0.85em;
    color: #888;
    text-decoration: none;
  }
  
  button {
    background-color: #7b6c6d;
    color: white;
    padding: 12px;
    font-size: 1em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  
  .staff-note {
    margin-top: 20px;
    color: #555;
    font-size: 0.9em;
  }
  
  
  footer {
    margin-top: 50px;
    font-size: 0.8em;
    color: #777;
  }
  
  footer a {
    color: #777;
    text-decoration: none;
  }
  
  footer a:hover {
    text-decoration: underline;
  }
  .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
  }
  
  .eye-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #444;
    opacity: 0.8;
  }
  
  .eye-icon:hover {
    opacity: 1;
  }
  
header {
    width: 100%;
    border-top: 4px solid #b83232; 
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #ddd;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
}

.left-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 28px;
    color: #333;
}

.central-header input {
    padding: 10px;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
}

.central-header input::placeholder {
    color: #ccc;
}

.right-header {
    display: flex;
    align-items: center;
    gap: 18px;
}


.avatar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
  position: relative;
}

.avatar-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.avatar-fallback {
  background-color: #999;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  width: 100%;
  height: 100%;
  display: none; /* Hidden by default; shown only if image fails */
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.avatar-link:hover .avatar-fallback {
  background-color: #777;
  cursor: pointer;
}
.layout {
  display: flex;
  min-height: calc(150vh - 70px); /* fill screen but allow growing */
  align-items: stretch;
}


.sidebar {
  width: 220px;
  background-color: #f9f9f9;
  padding: 20px;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}

.sidebar a {
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}

.sidebar a:hover {
  background-color: #f0f0f0;
  color: #b83232;
}

.main-content {
  flex: 1;
  padding: 40px;
  min-height: calc(150vh - 110px); /* subtract header height */
  background-color: #fafafa;
}

#calendar {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
}
/* Align Clients title and Add button side-by-side */
.client-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

/* Section title */
.client-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Add button styled green and positioned right */
.add-client-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-client-btn:hover {
  background-color: #218838;
}

/* Optional: body spacing and cleanup */
.client-section {
  padding: 30px 40px;
}

/* Align Staff title and Add button side-by-side */
.staff-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

/* Section title */
.staff-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Add button styled green and positioned right */
.add-staff-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-staff-btn:hover {
  background-color: #218838;
}

/* Optional: body spacing and cleanup */
.staff-section {
  padding: 30px 40px;
}


.layout {
  display: flex;
  height: calc(100vh - 70px); /* Adjust based on your header height */
}

.sidebar {
  width: 220px;
  background-color: #f9f9f9;
  padding: 20px;
  border-right: 1px solid #ddd;
  min-height: 100%;
}

.main-content {
  flex: 1;
  padding: 40px;
  background-color: #fdfdfd;
}

/* Three Dots Icon Button */
.dots-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #333; /* Make it visible */
  cursor: pointer;
  padding: 5px;
}

.dots-btn:hover {
  color: #000;
  background-color: #f0f0f0;
  border-radius: 4px;
}

/* Dropdown Menu */
.action-menu {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 28px;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border-radius: 6px;
  z-index: 2;
  min-width: 120px;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #f0f0f0;
}

/* Optional: Make table look better */
.client-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
}

.client-table th,
.client-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.client-table th {
  background-color: #f3f3f3;
  font-weight: 600;
  color: #222;
}

.client-table tr:hover {
  background-color: #f9f9f9;
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
}

.staff-table th,
.staff-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.staff-table th {
  background-color: #f3f3f3;
  font-weight: 600;
  color: #222;
}

.staff-table tr:hover {
  background-color: #f9f9f9;
}
.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.left-column, .right-column {
  display: flex;
  flex-direction: column;
}

.bottom-section {
  grid-column: 1 / -1;
  margin-top: 20px;
}

.bottom-section h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}

.form-group {
  margin-bottom: 12px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

fieldset {
  margin: 15px 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

legend {
  font-weight: 600;
  font-size: 15px;
}

button[type="submit"] {
  grid-column: 1 / -1;
  background-color: #28a745;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

button[type="submit"]:hover {
  background-color: #218838;
}
/* analytics.css */

.analytics-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
}

.analytics-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  position: relative;
}

.analytics-controls button {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  background-color: #343a40;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.analytics-controls button:hover {
  background-color: #212529;
  transform: translateY(-1px);
}

.date-popup {
  position: absolute;
  top: 50px;
  left: 0;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 14px;
  z-index: 100;
  min-width: 240px;
}

.date-popup label {
  font-size: 14px;
  color: #333;
}

.date-popup input[type="date"] {
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
}

.date-popup button {
  background-color: #198754;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.date-popup button:hover {
  background-color: #157347;
}

.analytics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.card {
  background-color: #ffffff;
  padding: 22px 26px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.card-title {
  font-size: 15px;
  color: #555;
  margin-bottom: 8px;
}

.card-value {
  font-size: 32px;
  font-weight: 700;
  color: #212529;
}

.trend {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-top: 10px;
  gap: 6px;
}

.trend.up {
  color: #198754;
}

.trend.down {
  color: #dc3545;
}

.trend.flat {
  color: #6c757d;
}

.trend .icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  background-color: #d1e7dd;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
}

.trend.down .icon {
  background-color: #f8d7da;
  color: #dc3545;
}

.analytics-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.chart-box {
  background-color: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  height: 420px;
  transition: box-shadow 0.3s ease;
}

.chart-box:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .analytics-charts {
    grid-template-columns: 1fr;
  }
}

.payroll-title {
  font-size: 36px;
  font-weight: 800;
  color: #2a2a2a;
  margin: 40px 0 20px 0;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.filter-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-controls select,
.filter-controls input[type="date"] {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filter-controls button {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.filter-controls button:hover {
  background-color: #0056b3;
}

.export-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}

.export-buttons button {
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.export-buttons button.download-excel {
  background: #17a2b8;
}

.export-buttons button:hover {
  opacity: 0.9;
}

/* Existing styles preserved below */
.payroll-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 auto 50px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.payroll-table thead {
  background: rgba(0, 123, 255, 0.1);
  color: #003366;
}

.payroll-table th {
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.payroll-table td {
  padding: 18px 24px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
}

.payroll-table tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

.payroll-table tr td[colspan="8"] {
  background: #eaf4ff;
  font-weight: 600;
  color: #0056b3;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.8px;
}

.payroll-table tr.totals {
  background: #f3faff;
  font-weight: bold;
  color: #084298;
  border-top: 2px solid #d0e9ff;
}

.payroll-table tr.grand-total {
  background: linear-gradient(to right, #d4edda, #c3e6cb);
  color: #1c4532;
  font-weight: 700;
  font-size: 16px;
  border-top: 3px solid #28a745;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
/* Expandable box container */
.expandable-box {
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1rem;
  background-color: white;
  transition: all 0.3s ease;
}

.expandable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
}

.expandable-header:hover {
  background-color: #f9f9f9;
}

.expandable-header .arrow {
  transition: transform 0.3s ease;
  margin-right: 10px;
}

.expandable-header.open .arrow {
  transform: rotate(90deg);
}

.expandable-body {
  display: none;
  padding: 16px 24px;
  animation: fadeIn 0.3s ease-in-out;
}

.expandable-box.open .expandable-body {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.section {
  flex: 1;
  min-width: 300px;
}

.section h4 {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
}

.section table {
  width: 100%;
  border-collapse: collapse;
}

.section th,
.section td {
  text-align: left;
  padding: 8px;
  font-size: 14px;
}

.section th {
  color: #555;
}

.section td {
  color: #333;
}

.assign-button,
.dropdown-toggle {
  background-color: #f2f2f2;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.assign-button:hover,
.dropdown-toggle:hover {
  background-color: #e2e2e2;
}

.dropdown-toggle::after {
  content: "▼";
  margin-left: 5px;
  font-size: 10px;
}
.editable {
  position: relative;
  padding-left: 24px;
}

.delete-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  color: red;
  cursor: pointer;
}

.editable:hover .delete-icon {
  display: inline;
}

.pay-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pay-input {
  width: 80px;
}

.unit-label {
  color: #333;
}
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: none;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
}
.search-item {
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
}
.search-item a {
  margin-left: 8px;
  color: #007bff;
  text-decoration: none;
}
.search-item a:hover {
  text-decoration: underline;
}
.search-item:hover {
  background-color: #f0f0f0;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.pagination-controls select,
.pagination-controls button {
  padding: 6px 10px;
}
.detail-section {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto 20px;
  text-align: left;
}
.detail-section .buttons {
  margin-top: 15px;
}
.detail-section .btn {
  background: #7b6c6d;
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  margin-right: 8px;
  display: inline-block;
}
.detail-section .btn.danger {
  background: #dc3545;
}

/* Cells that link to client details */
.clickable-cell {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
/* Dashboard Sessions */
.session-section {
  margin-bottom: 40px;
  text-align: left;
}
.session-section h2 {
  font-size: 22px;
  margin-bottom: 15px;
}
.session-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.session-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.session-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.session-time {
  font-weight: bold;
  color: #007bff;
  margin-right: 10px;
}
.session-client {
  font-weight: 500;
}
