:root {
  --brand-orange: #de8519;
  --brand-orange-hover: #6f4a01;
  --bg-page: #f5f5f5;
  --bg-panel: #f0f0f0;
  --bg-card: #ffffff;
  --bg-table-header: #f8f8f8;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-input: #2c3e50;
  --border-light: #dddddd;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --gray-strong: #575757;
  --success: #4CAF50;
  --success-tile: #76d579;
  --error: #f44336;
  --error-hover-1: #d32f2f;
  --error-hover-2: #da190b;
  --disabled-bg: #d3d3d3;
  --disabled-text: #a9a9a9;
  --active: #00C853;
  --in-progress: #FF9100;
  --completed: #2962FF;
  --inactive: #BDBDBD;
  --resigned: red;
  --approve-btn: #4CAF50;
  --utility-btn: #95a3acfd;
  --calendar-no-log: #e0e0e0;
  --dark-bg: #121212;
  --dark-surface: #2c2c2c;
  --dark-input: #3c3c3c;
  --dark-border: #555555;
  --dark-control: #444444;
  --dark-control-hover: #666666;
  --dark-sidebar: #333333;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Navigation Styles */
nav {
  background-color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px var(--shadow-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger div {
  width: 100%;
  height: 3px;
  background-color: var(--brand-orange);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger:hover div {
  background-color: var(--brand-orange-hover);
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Login Page Styles */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background-color: var(--brand-orange); */
  padding: 20px;
}

.login-card {
  display: flex;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  min-height: 500px;
}

.login-card-left {
  flex: 1;
  background-color: rgb(47, 47, 47);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.login-card-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.login-card-left img {
  max-width: 90%;
  height: auto;
  /* filter: brightness(0) invert(1); */
  z-index: 1;
  position: relative;
}

.login-card-right {
  flex: 1;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-margin-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-weight: 300;
}

.left-margin-content h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--brand-orange);
  font-weight: 400;
}

/* .form-group {
  margin-bottom: 25px;
} */

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand-orange);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(222, 133, 25, 0.1);
}

.form-actions {
  margin-top: 30px;
}

.form-actions button {
  /* width: 100%; */
  padding: 15px;
  background-color: var(--brand-orange);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(222, 133, 25, 0.3);
}

.form-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(222, 133, 25, 0.4);
}

.nav-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--brand-orange);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background-color: var(--brand-orange-hover);
  color: #fff;
  transform: translateY(-2px);
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Alert Styles */
.alert {
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 10px;
  font-weight: 500;
  animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Main Content Styles */
main {
  max-width: 1800px;
  margin: 0 auto;
  padding: 30px 20px;
}

.dashboard-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow-light);
  margin-bottom: 20px;
  height: 100%;
  /* Take full height of container */
  display: flex;
  flex-direction: column;
}

.admin-section .dashboard-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Push content to top and buttons to bottom */
  min-height: 280px;
  /* Consistent card height */
  padding: 25px;
}

.admin-section .dashboard-card h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--brand-orange);
  font-size: 1.4rem;
}

.admin-section .dashboard-card p {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
  /* Allow description to take available space */
}

.admin-actions {
  margin-top: auto;
  /* Push buttons to bottom */
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

/* Form Toggle Styles */
.form-toggle-section {
  margin: 30px 0;
  text-align: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin: 0 15px;
}

.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: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked+.slider {
  background-color: var(--brand-orange);
}

input:focus+.slider {
  box-shadow: 0 0 1px var(--brand-orange);
}

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

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Invoice Form Styles */
.invoice-form {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px var(--shadow-light);
  margin: 20px 0;
}

.invoice-form h3 {
  color: var(--brand-orange);
  margin-bottom: 25px;
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 12px 15px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(222, 133, 25, 0.1);
}

.form-field select {
  cursor: pointer;
}

.form-field select option {
  padding: 10px;
}

.form-field textarea {
  min-height: 100px;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}

.checkbox-field input[type="checkbox"] {
  width: auto;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.form-submit button {
  padding: 15px 40px;
  background-color: var(--brand-orange);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(222, 133, 25, 0.3);
}

.form-submit button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(222, 133, 25, 0.4);
}

/* Modal base styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
  overflow: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal.show {
  display: block;
}

.modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 0;
  border-radius: 15px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-large {
  max-width: 900px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 2px solid #f0f0f0;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  flex-shrink: 0;
}

.modal-header h3 {
  margin: 0;
  color: var(--brand-orange);
  font-size: 1.5rem;
}

.close {
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  padding: 0 10px;
  line-height: 1;
  background: none;
  border: none;
}

.close:hover,
.close:focus {
  color: var(--brand-orange);
  transform: rotate(90deg);
  outline: none;
}

.modal-body {
  padding: 0;
  overflow-y: auto;
  max-height: calc(90vh - 100px);
  flex: 1;
}

/* Invoice Details Container */
.invoice-details-container {
  padding: 30px;
}

.details-section {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.details-section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--brand-orange);
}

.section-title {
  color: var(--brand-orange);
  font-size: 1.1rem;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.detail-row:hover {
  background-color: #e9ecef;
  transform: translateX(5px);
}

.detail-row.highlight {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-left: 4px solid var(--brand-orange);
}

.detail-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex: 0 0 auto;
  margin-right: 10px;
}

.detail-value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  flex: 1;
  word-break: break-word;
}

.amount-highlight {
  color: var(--brand-orange);
  font-size: 1.2rem;
  font-weight: 700;
}

.note-content {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--brand-orange);
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 200px;
  overflow-y: auto;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  min-height: 200px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--brand-orange);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-spinner p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* Error Message */
.error-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--error);
  font-size: 1.1rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Status Badge Styles */
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
}

/* Smooth scrollbar for modal */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--brand-orange);
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--brand-orange-hover);
}

/* Responsive Design for Modals */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 5% auto;
    max-height: 95vh;
  }

  .action-card {
    min-height: 180px;
    padding: 20px;
  }

  .invoice-details-container {
    padding: 15px;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .modal-header {
    padding: 20px;
    flex-wrap: wrap;
  }

  .modal-header h3 {
    font-size: 1.2rem;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .detail-value {
    text-align: left;
    width: 100%;
  }

  .close {
    font-size: 24px;
    padding: 5px;
  }
}

@media (max-width: 480px) {
  .modal-header {
    padding: 15px;
  }

  .action-card {
    min-height: 160px;
    padding: 15px;
  }

  .invoice-details-container {
    padding: 10px;
  }

  .details-section {
    padding: 15px;
    margin-bottom: 15px;
  }

  .section-title {
    font-size: 1rem;
  }

  .detail-row {
    padding: 10px;
  }
}

/* Form-specific modal styles */
.modal-body select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  background-color: white;
  cursor: pointer;
}

.modal-body select:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(222, 133, 25, 0.1);
}

.modal-body select option {
  padding: 10px;
}

/* Additional Modal Button Styles */
.modal-body .btn {
  margin: 5px;
}

.modal-body .form-submit {
  text-align: center;
  padding: 20px 0 10px 0;
  border-top: 1px solid #e9ecef;
  margin-top: 20px;
}

/* Ensure modals work with existing styles */
.modal .btn-action {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-card {
    flex-direction: column;
    margin: 10px;
  }

  .login-card-left {
    min-height: 200px;
  }

  .login-card-right {
    padding: 40px 30px;
  }

  .left-margin-content h1 {
    font-size: 2rem;
  }

  .left-margin-content h2 {
    font-size: 1.5rem;
  }

  nav {
    padding: 1rem;
  }

  .mobile-only {
    display: block !important;
  }
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
}


.content-section {
  margin-top: 20px;
}

.admin-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.admin-section {
  min-height: 200px;
}

.admin-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.page-header>div {
  display: flex;
  gap: 10px;
}

.user-form {
  max-width: 900px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

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

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(222, 133, 25, 0.1);
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.table-container {
  overflow-x: auto;
  margin-top: 20px;
}

.user-table,
.approve-table,
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-table th,
.user-table td,
.approve-table th,
.approve-table td,
.invoice-table th,
.invoice-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.user-table th,
.approve-table th,
.invoice-table th {
  background-color: var(--bg-table-header);
  font-weight: 600;
  color: var(--text-primary);
}

.user-table tr:hover,
.approve-table tr:hover,
.invoice-table tr:hover {
  background-color: #f8f9fa;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

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

.status-inactive {
  background-color: #f8d7da;
  color: #721c24;
}

.status-DRAFT {
  background-color: #fff3cd;
  color: #856404;
}

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

.role-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.role-admin {
  background-color: #e7f3ff;
  color: #0066cc;
}

.role-approver {
  background-color: #fff3e0;
  color: #e65100;
}

.role-uploader {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.role-finance {
  background-color: #e8f5e8;
  color: #2e7d32;
}

.actions {
  display: flex;
  gap: 8px;
}

.btn-action {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-edit {
  background-color: #28a745;
  color: white;
}

.btn-edit:hover {
  background-color: #218838;
}

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

.btn-delete:hover {
  background-color: #c82333;
}

.btn-update {
  background-color: #28a745;
  color: white;
}

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.action-card .btn {
  margin-top: auto;
  /* Push button to bottom */
  align-self: flex-start;
  /* Prevent button from stretching full width unless needed */
}

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

.btn-primary:hover {
  background-color: var(--brand-orange-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
  transform: translateY(-2px);
}

.info-box {
  background-color: #e7f3ff;
  border-left: 4px solid var(--brand-orange);
  padding: 15px;
  margin-bottom: 30px;
  border-radius: 4px;
}

.amount {
  font-weight: 600;
  color: var(--brand-orange);
  font-size: 1.1rem;
}

.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.limit-input {
  width: 120px;
  padding: 8px;
  border: 2px solid #e1e5e9;
  border-radius: 4px;
  font-size: 0.9rem;
}

.limit-input:focus {
  outline: none;
  border-color: var(--brand-orange);
}

.invoice-tabs {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  border-bottom: 2px solid #e1e5e9;
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: var(--brand-orange);
  border-bottom-color: var(--brand-orange);
}

.tab-btn:hover {
  color: var(--brand-orange);
}

.tab-content {
  margin-top: 20px;
}

.tab-content h3 {
  color: var(--brand-orange);
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .admin-sections {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}


.action-card {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--shadow-light);
  border-left: 4px solid var(--brand-orange);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Push content to top and buttons to bottom */
  min-height: 200px;
  /* Consistent minimum height */
}

.sidebar {
  position: fixed;
  left: -300px;
  top: 0;
  width: 300px;
  height: 100vh;
  background-color: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar.active {
  left: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid #f0f0f0;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.sidebar-header h3 {
  margin: 0;
  color: var(--brand-orange);
}

.close-btn {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 4px;
}

.close-btn:hover {
  color: var(--brand-orange);
  background-color: #f0f0f0;
}

.sidebar-content {
  padding: 10px 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.sidebar-item:hover {
  background-color: #f8f9fa;
  border-left-color: var(--brand-orange);
  transform: translateX(5px);
}

.sidebar-item .icon {
  font-size: 20px;
  margin-right: 15px;
  width: 30px;
  text-align: center;
}

.sidebar-item.logout {
  color: #dc3545;
  margin-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.sidebar-item.logout:hover {
  background-color: #fee;
  border-left-color: #dc3545;
}

/* Mobile responsive navigation */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    padding: 0.8rem;
  }

  .nav-center {
    order: -1;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .nav-center a {
    font-size: 18px !important;
  }

  .nav-left img {
    height: 40px;
    transform: scale(1.2);
    margin-left: 10px;
  }

  .sidebar {
    width: 280px;
  }
}

@media (max-width: 480px) {
  .nav-center a {
    font-size: 16px !important;
  }

  .nav-left img {
    height: 35px;
    transform: scale(1.1);
    margin-left: 5px;
  }

  .sidebar {
    width: 260px;
  }

  .sidebar-item {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .sidebar-item .icon {
    font-size: 18px;
    margin-right: 12px;
    width: 25px;
  }
}