/* Main CSS file for BioLife Ledger - Invoice & Ledger Management System */

/* Professional Login Page Styles */
.professional-login-page {
  min-height: 100vh;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.professional-login-container {
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
}

.professional-login-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.professional-login-header {
  background: white;
  color: #1a202c;
  padding: 30px 25px 25px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid #e5e7eb;
}

.professional-logo {
  width: 60px;
  height: 60px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 1px solid #e2e8f0;
}

.professional-logo i {
  font-size: 24px;
  color: #6b7280;
}

.professional-login-header h1 {
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.professional-login-header p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
}

.professional-login-form {
  padding: 30px 25px;
}

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

.professional-form-group label {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-weight: 500;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.professional-form-group label i {
  color: #6b7280;
  width: 14px;
}

.professional-form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  box-sizing: border-box;
  background: white;
  font-weight: 400;
}

.professional-form-group input:focus {
  outline: none;
  border-color: #9ca3af;
  box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.1);
}

.professional-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
}

.professional-checkbox-container {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #6b7280;
  font-weight: 400;
}

.professional-checkbox-container input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #6b7280;
}

.professional-forgot-password {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.professional-forgot-password:hover {
  color: #374151;
}

.professional-login-btn {
  width: 100%;
  background: #374151;
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.professional-login-btn:hover {
  background: #4b5563;
}

.professional-login-btn:active {
  background: #1f2937;
}

.professional-login-footer {
  background: #f9fafb;
  padding: 16px 25px;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

.professional-login-footer p {
  margin: 0;
  color: #6b7280;
  font-size: 11px;
  font-weight: 400;
}

.professional-error-message {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #fecaca;
  font-size: 13px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
}

.professional-error-message i {
  font-size: 14px;
}

/* Responsive Design for Professional Login */
@media (max-width: 480px) {
  .professional-login-container {
    max-width: 100%;
    padding: 0 10px;
  }
  
  .professional-login-card {
    border-radius: 10px;
  }
  
  .professional-login-header {
    padding: 25px 20px 20px;
  }
  
  .professional-login-form {
    padding: 25px 20px;
  }
  
  .professional-logo {
    width: 50px;
    height: 50px;
  }
  
  .professional-logo i {
    font-size: 20px;
  }
  
  .professional-login-header h1 {
    font-size: 20px;
  }
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
}

header {
  background: #2c3e50;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 20px;
}

/* Navigation styles */
.nav-container {
  display: flex;
  align-items: center;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.nav-menu li {
  margin: 0;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.header-actions {
  display: flex;
  align-items: center;
}

.btn-logout {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.user-info {
  color: #fff;
  font-size: 14px;
  margin-right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}

.user-info i {
  font-size: 12px;
}

.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
}

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

.card {
  background: #25335c;
  color: #fff;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Procedure cards without icons */
.card.green h2 {
  text-align: center;
  display: block;
}

.card-icon {
  font-size: 18px;
  opacity: 0.9;
  color: #ffffff;
  filter: brightness(1.1);
  width: 20px;
  text-align: center;
}

.card .value {
  font-size: 24px;
  font-weight: bold;
  margin-top: 5px;
}

.card.green {
  background: #0b8f1c;
}

.card.blue {
  background: #25335c;
}

.chart {
  background: #25335c;
  color: #fff;
  border-radius: 8px;
  padding: 4px;
  margin-top: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.chart h2 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #e0e0e0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px;
}

.chart-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: 2px dashed #dee2e6;
  transition: all 0.3s ease;
}

.chart-placeholder:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-color: #adb5bd;
  color: #495057;
}

/* Additional utility classes for future use */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-10 {
  margin-bottom: 10px;
}

/* Utility classes for common inline styles */
.flex-end {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.mb-20 {
  margin-bottom: 20px;
}

.text-center-padding {
  text-align: center;
  padding: 40px;
  color: #6c757d;
}

.large-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.section-padding {
  padding: 20px;
}

.mt-15 {
  margin-top: 15px;
}

.mt-20 {
  margin-top: 20px;
}

.full-width {
  width: 100%;
}

.mb-10 {
  margin-bottom: 10px;
}

.inline-block {
  display: inline-block;
}

.width-200 {
  width: 200px;
}

.chart-height-400 {
  height: 400px;
  margin: 20px;
}

.chart-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.chart-text {
  color: #6c757d;
  font-size: 14px;
}

.spinner-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  color: #28a745;
}

.date-range-text {
  color: #6c757d;
  font-size: 14px;
}

/* Login page styles */
.login-page {
  background: #f5f7fa;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  background: #2c3e50;
  color: #fff;
  padding: 20px 30px 20px;
  text-align: center;
}

.login-header .logo {
  margin-bottom: 12px;
  opacity: 0.9;
  text-align: center;
}

.login-header .logo img {
  max-width: 80px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.login-header h1 {
  margin: 0 0 6px 0;
  font-size: 24px;
  font-weight: 600;
}

.login-header p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

.login-form {
  padding: 20px 30px;
}

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

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
  font-size: 14px;
  text-align: center;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group label i {
  color: #2c3e50;
  width: 16px;
}

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

.form-group input:focus {
  outline: none;
  border-color: #2c3e50;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #666;
}

.checkbox-container input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.forgot-password {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #34495e;
}

.login-btn {
  width: 100%;
  background: #2c3e50;
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-btn:hover {
  background: #34495e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.login-btn:active {
  transform: translateY(0);
}

.login-footer {
  background: #f8f9fa;
  padding: 15px 30px;
  text-align: center;
  border-top: 1px solid #e9ecef;
}

.login-footer p {
  margin: 0;
  color: #6c757d;
  font-size: 12px;
}

/* Responsive design improvements */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
  }
  
  .card {
    padding: 16px;
  }
  
  .card .value {
    font-size: 20px;
  }
  
  .card-icon {
    font-size: 16px;
  }
  
  /* Mobile navigation */
  header {
    position: relative;
    flex-direction: row;
    gap: 0;
    padding: 12px 16px;
    justify-content: space-between;
    align-items: center;
  }
  
  .mobile-menu-toggle {
    display: block;
    order: 3;
  }
  
  .nav-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2c3e50;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .nav-container.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 16px;
    width: 100%;
  }
  
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-menu li:last-child {
    border-bottom: none;
  }
  
  .nav-link {
    padding: 12px 16px;
    font-size: 16px;
    display: block;
    width: 100%;
    text-align: left;
  }
  
  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .header-actions {
    order: 2;
  }
  
  /* Mobile chart adjustments */
  .chart {
    padding: 12px;
  }
  
  .chart h2 {
    font-size: 12px;
    margin-bottom: 8px;
  }
  
  .chart-placeholder {
    height: 120px;
    font-size: 12px;
  }
  
  /* Mobile login adjustments */
  .login-page {
    padding: 16px;
  }
  
  .login-container {
    max-width: 100%;
  }
  
  .login-card {
    border-radius: 8px;
  }
  
  .login-header {
    padding: 20px 20px 15px;
  }
  
  .login-header .logo img {
    max-width: 60px;
  }
  
  .login-header h1 {
    font-size: 20px;
  }
  
  .login-form {
    padding: 15px 20px;
  }
  
  .form-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  /* Mobile admin adjustments */
  .admin-header {
    padding: 16px;
  }
  
  .admin-header h1 {
    font-size: 24px;
  }
  
  .section-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .section-header h2 {
    font-size: 18px;
  }
  
  .btn-primary {
    width: 100%;
    justify-content: center;
  }
  
  .admin-table {
    font-size: 12px;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 12px 8px;
  }
  
  .modal {
    padding: 10px;
  }
  
  .modal-content {
    width: 100%;
    margin: 10px auto;
    max-height: calc(100vh - 20px);
  }
  
  .modal-form {
    padding: 16px;
    max-height: calc(100vh - 150px);
  }
  
    .form-actions {
    flex-direction: column;
    padding: 16px;
  }
  
  .form-actions button {
    width: 100%;
    margin-bottom: 8px;
  }
  
  .form-actions button:last-child {
    margin-bottom: 0;
  }

/* Alert Styles */
.alert {
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert i {
  font-size: 16px;
}

/* Badge Styles */
.badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 8px;
}

.badge-primary {
  background: #007bff;
  color: #fff;
}

.badge-danger {
  background: #dc3545;
  color: #fff;
}

.badge-info {
  background: #17a2b8;
  color: #fff;
}

/* Button Styles */
.btn-danger {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-1px);
}

/* Modal Body Styles */
.modal-body {
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
}

.modal-body p {
  margin: 0 0 12px 0;
  color: #333;
  font-size: 14px;
}

.text-warning {
  color: #856404;
  font-weight: 500;
}

/* Select Styles - More specific selectors */
select,
.form-control,
.form-select,
.form-control.form-select,
.modal-form select,
.modal-form .form-control,
.modal-form .form-select,
.modal-form .form-control.form-select,
#addUserModal select,
#addUserModal .form-control,
#addUserModal .form-select,
#addUserModal .form-control.form-select,
#editUserModal select,
#editUserModal .form-control,
#editUserModal .form-select,
#editUserModal .form-control.form-select,
#deleteUserModal select,
#deleteUserModal .form-control,
#deleteUserModal .form-select,
#deleteUserModal .form-control.form-select {
  display: block !important;
  width: 100% !important;
  padding: 0.375rem 0.75rem !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #212529 !important;
  background-color: #fff !important;
  background-clip: padding-box !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.375rem !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 12px !important;
  padding-right: 2.5rem !important;
}

select:focus,
.form-control:focus,
.form-select:focus,
.form-control.form-select:focus,
.modal-form select:focus,
.modal-form .form-control:focus,
.modal-form .form-select:focus,
.modal-form .form-control.form-select:focus,
#addUserModal select:focus,
#addUserModal .form-control:focus,
#addUserModal .form-select:focus,
#addUserModal .form-control.form-select:focus,
#editUserModal select:focus,
#editUserModal .form-control:focus,
#editUserModal .form-select:focus,
#editUserModal .form-control.form-select:focus,
#deleteUserModal select:focus,
#deleteUserModal .form-control:focus,
#deleteUserModal .form-select:focus,
#deleteUserModal .form-control.form-select:focus {
  color: #212529 !important;
  background-color: #fff !important;
  border-color: #86b7fe !important;
  outline: 0 !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

select:hover,
.form-control:hover,
.form-select:hover,
.form-control.form-select:hover,
.modal-form select:hover,
.modal-form .form-control:hover,
.modal-form .form-select:hover,
.modal-form .form-control.form-select:hover,
#addUserModal select:hover,
#addUserModal .form-control:hover,
#addUserModal .form-select:hover,
#addUserModal .form-control.form-select:hover,
#editUserModal select:hover,
#editUserModal .form-control:hover,
#editUserModal .form-select:hover,
#editUserModal .form-control.form-select:hover,
#deleteUserModal select:hover,
#deleteUserModal .form-control:hover,
#deleteUserModal .form-select:hover,
#deleteUserModal .form-control.form-select:hover {
  border-color: #86b7fe !important;
}

/* Additional specificity for modal selects */
.modal .modal-form select,
.modal-content .modal-form select {
  background-color: #fff !important;
  border: 2px solid #e1e5e9 !important;
  color: #333 !important;
  font-weight: normal !important;
}

/* Override any browser defaults */
select option {
  background-color: #fff !important;
  color: #333 !important;
  padding: 8px 12px !important;
}

/* Ensure dropdown arrow is visible */
select::-ms-expand {
  display: none !important;
}

/* Hospital name styles */
.hospital-name {
  font-weight: 500;
  color: #333;
}

.text-muted {
  color: #6c757d;
  font-style: italic;
}
}

/* Admin Dashboard Styles */
.admin-header {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  text-align: center;
}

.admin-header h1 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 28px;
  font-weight: 600;
}

.admin-header p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

.admin-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  overflow: hidden;
}

.section-header {
  background: #f8f9fa;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header h2 {
  margin: 0;
  color: #333;
  font-size: 20px;
  font-weight: 600;
}

.section-header h2 i {
  margin-right: 8px;
  color: #2c3e50;
}

.header-actions {
  display: flex;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
}

/* Standardized Button Styles - All buttons should use these classes */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-small,
.btn-edit,
.btn-view,
.btn-delete,
.btn-print,
.btn-logout,
.action-btn,
.login-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 20px !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  min-height: 40px !important;
  min-width: 100px !important;
  box-sizing: border-box !important;
}

/* Primary button style */
.btn-primary {
  background: #2c3e50 !important;
  color: #fff !important;
}

.btn-primary:hover {
  background: #34495e !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* Secondary button style */
.btn-secondary {
  background: #6c757d !important;
  color: #fff !important;
}

.btn-secondary:hover {
  background: #5a6268 !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* Small buttons (like action buttons) */
.btn-small,
.action-btn {
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 6px !important;
  font-size: 12px !important;
}

/* Login button specific */
.login-btn {
  width: 100% !important;
  min-width: auto !important;
  padding: 14px 20px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

/* Logout button specific */
.btn-logout {
  min-width: auto !important;
  padding: 8px 16px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: none !important;
}

.table-container {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  background: #f8f9fa;
  color: #333;
  font-weight: 600;
  text-align: left;
  padding: 6px 4px !important;
  border-bottom: 2px solid #dee2e6;
  line-height: 1.2;
}

.admin-table td {
  padding: 6px 4px !important;
  border-bottom: 1px solid #e9ecef;
  color: #333;
  line-height: 1.2;
}

.admin-table tbody tr:hover {
  background: #f8f9fa;
}

.admin-table tbody tr {
  height: auto;
  margin: 0;

}

.admin-table tbody tr td {
  vertical-align: middle;
}

.status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

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

.status.pending {
  background: #fff3cd;
  color: #856404;
}

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

.btn-small {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 4px;
}

.btn-edit {
  color: #007bff;
}

.btn-edit:hover {
  background: #e3f2fd;
}

.btn-view {
  color: #28a745;
}

.btn-view:hover {
  background: #e8f5e8;
}

.btn-delete {
  color: #dc3545;
}

.btn-delete:hover {
  background: #fde8e8;
}



/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Modal Form Styling */
.modal-form {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

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

.modal-form label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 500;
  font-size: 14px;
}

/* Enhanced Input Styling for Modals */
.modal-form input,
.modal-form textarea,
.modal-form select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: white;
  font-family: inherit;
}

.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
  outline: none;
  border-color: #2c3e50;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
  transform: translateY(-1px);
}

.modal-form input:hover,
.modal-form textarea:hover,
.modal-form select:hover {
  border-color: #9ca3af;
}

/* Enhanced Select/Dropdown Styling */
.modal-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.modal-form select:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%232c3e50' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* Enhanced Button Styling for Modals */
.modal-form .btn-primary,
.modal-form .btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
}

.modal-form .btn-primary {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  box-shadow: 0 2px 4px rgba(44, 62, 80, 0.2);
}

.modal-form .btn-primary:hover {
  background: linear-gradient(135deg, #34495e, #2c3e50);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.modal-form .btn-secondary {
  background: #f8f9fa;
  color: #6c757d;
  border: 2px solid #e9ecef;
}

.modal-form .btn-secondary:hover {
  background: #e9ecef;
  color: #495057;
  border-color: #dee2e6;
  transform: translateY(-1px);
}

/* Form Actions Styling */
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding: 20px 24px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  flex-shrink: 0;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
  min-width: 120px;
}

/* Invoice Items Styling */
.invoice-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
  padding: 12px 16px;
  background: white;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.invoice-item:hover {
  border-color: #2c3e50;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.invoice-item input {
  margin: 0;
  border: 2px solid #e1e5e9;
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: white;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.invoice-item input:focus {
  border-color: #2c3e50;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.invoice-item input:hover {
  border-color: #9ca3af;
}

.invoice-item .btn-remove {
  background: #dc3545;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.invoice-item .btn-remove:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.invoice-item .btn-remove i {
  margin-right: 6px;
  font-size: 12px;
}

.invoice-item .btn-remove-icon {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  margin: 0 auto;
}

.invoice-item .btn-remove-icon:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.invoice-item .btn-remove-icon i {
  margin: 0;
  font-size: 14px;
}

/* Status Display and Toggle Button */
.status-display {
  margin: 20px 0;
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.status-draft {
  background: #fef3c7;
  color: #92400e;
  border: 2px solid #f59e0b;
}

.status-badge.status-booked {
  background: #d1fae5;
  color: #065f46;
  border: 2px solid #10b981;
}

.btn-success {
  background: #10b981;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-warning {
  background: #f59e0b;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-warning:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Disabled Action Button */
.action-btn.disabled {
  background: #9ca3af !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

.action-btn.disabled:hover {
  background: #9ca3af !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Invoice View Styles */
.invoice-header-new {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.company-name-center {
  color: #2c3e50;
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: 600;
  text-decoration: underline;
}

.company-address-center {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}

.invoice-details-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.invoice-details-section h3 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.invoice-details-section p {
  margin: 5px 0;
  color: #495057;
  font-size: 14px;
}

/* Invoice Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  .invoice-print, .invoice-print * {
    visibility: visible;
  }
  .invoice-print {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    box-shadow: none !important;
    border: none !important;
    margin: 0px !important;
    padding: 20px 40px !important;
  }
  .no-print {
    display: none !important;
  }
  .invoice-print .invoice-meta {
    margin-left: -9px !important;
    margin-right: -9px !important;
  }
  .invoice-print .invoice-items-table {
    margin-left: 0px !important;
    margin-right: 0px !important;
  }
}

.invoice-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 20px 40px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.company-info h1 {
  color: #2c3e50;
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 700;
}

.company-info p {
  margin: 5px 0;
  color: #6c757d;
  font-size: 14px;
}

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

.invoice-title h2 {
  color: #2c3e50;
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: 600;
}

.invoice-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
  margin-left: 0;
  margin-right: 0;
}

.bill-to, .invoice-details {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.bill-to h3, .invoice-details h3 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bill-to p, .invoice-details p {
  margin: 5px 0;
  color: #495057;
  font-size: 14px;
}

.invoice-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  margin-left: 0;
  margin-right: 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.invoice-items-table thead {
  background: #2c3e50;
  color: white;
}

.invoice-items-table th {
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.invoice-items-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #e9ecef;
  font-size: 14px;
}

.invoice-items-table tbody tr:hover {
  background: #f8f9fa;
}

.invoice-items-table .text-right {
  text-align: right;
}

.invoice-items-table .text-center {
  text-align: center;
}

.invoice-totals-section {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 40px;
}

.invoice-totals {
  width: 300px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.invoice-totals-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}

.invoice-totals-row.total {
  font-weight: 700;
  font-size: 18px;
  padding-top: 15px;
  border-top: 2px solid #2c3e50;
  margin-top: 15px;
  color: #2c3e50;
}

.invoice-notes {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  margin-bottom: 30px;
}

.invoice-notes h3 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
}

.invoice-notes p {
  margin: 0;
  color: #495057;
  font-size: 14px;
  line-height: 1.6;
}

.invoice-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  color: #6c757d;
  font-size: 12px;
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.action-buttons .btn {
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.action-buttons .btn-primary {
  background: #2c3e50;
  color: white;
}

.action-buttons .btn-primary:hover {
  background: #34495e;
  transform: translateY(-2px);
}

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

.action-buttons .btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-draft { background: #fff3cd; color: #856404; }
.status-sent { background: #d1ecf1; color: #0c5460; }
.status-paid { background: #d4edda; color: #155724; }
.status-overdue { background: #f8d7da; color: #721c24; }
.status-cancelled { background: #e2e3e5; color: #383d41; }

/* Inline Form */
.inline-form {
  display: inline;
}

/* Add Item Button Styling */
.add-item-btn {
  background: #2c3e50;
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 10px;
}

.add-item-btn:hover {
  background: #34495e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.add-item-btn i {
  font-size: 16px;
}

/* Enhanced Invoice Form Styling */
.invoice-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.invoice-form-grid .form-group {
  margin-bottom: 0;
}

.invoice-form-grid .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
}

.invoice-form-grid .form-group select,
.invoice-form-grid .form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: white;
  font-family: inherit;
}

.invoice-form-grid .form-group select:focus,
.invoice-form-grid .form-group input:focus {
  outline: none;
  border-color: #2c3e50;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
  transform: translateY(-1px);
}

.invoice-form-grid .form-group select:hover,
.invoice-form-grid .form-group input:hover {
  border-color: #9ca3af;
}

.invoice-form-grid .form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.invoice-form-grid .form-group select:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%232c3e50' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.invoice-items-section {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.invoice-items-section > label {
  display: block;
  margin-bottom: 15px;
  color: #374151;
  font-weight: 600;
  font-size: 16px;
}

.invoice-items-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 15px;
  padding: 12px 16px;
  background: #2c3e50;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-items: center;
}

.invoice-items-header > div {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.invoice-items-header > div:first-child {
  text-align: left;
  justify-content: flex-start;
}

.invoice-items-header > div:last-child {
  text-align: center;
  justify-content: center;
}

.invoice-totals {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.invoice-totals-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.invoice-totals-row.total {
  font-weight: 600;
  font-size: 16px;
  padding-top: 8px;
  border-top: 2px solid #dee2e6;
  margin-top: 8px;
}

.invoice-totals-label {
  color: #6c757d;
}

.invoice-totals-value {
  color: #2c3e50;
  font-weight: 500;
}

/* Enhanced Textarea Styling */
.invoice-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: white;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
}

.invoice-form textarea:focus {
  outline: none;
  border-color: #2c3e50;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
  transform: translateY(-1px);
}

.invoice-form textarea:hover {
  border-color: #9ca3af;
}

/* Form Group Styling for Invoice Page */
.invoice-form .form-group {
  margin-bottom: 25px;
}

.invoice-form .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
}

/* Notes Section Styling */
.notes-section {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.notes-section label {
  display: block;
  margin-bottom: 15px;
  color: #374151;
  font-weight: 600;
  font-size: 16px;
}

/* New Invoice Layout Styles */
.invoice-header-new {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

/* Print-specific styles for invoice */
@media print {
  .invoice-container {
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 10px !important;
    max-width: none !important;
  }
  
  .invoice-header-new {
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
  }
  
  .invoice-meta {
    margin-bottom: 20px !important;
    padding: 10px !important;
  }
  
  .invoice-details-section {
    margin-bottom: 20px !important;
    padding: 10px !important;
  }
  
  .invoice-items-table {
    margin-bottom: 20px !important;
  }
  
  .invoice-totals-section {
    margin-bottom: 20px !important;
  }
  
  .invoice-notes {
    margin-bottom: 20px !important;
    padding: 10px !important;
  }
  
  .invoice-footer {
    padding-top: 10px !important;
    background: white !important;
  }
  
  /* Remove any background after the footer */
  .invoice-footer::after {
    display: none !important;
  }
  
  /* Ensure no gray background appears after footer */
  body {
    background: white !important;
  }
}

.company-name-center {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 10px 0;
  text-decoration: underline;
}

.company-address-center {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
  line-height: 1.4;
}

.invoice-details-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.invoice-details-section h3 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.invoice-details-section p {
  margin: 5px 0;
  color: #495057;
  font-size: 14px;
}

/* Responsive Invoice Form */
@media (max-width: 768px) {
  .invoice-form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }
  
  .invoice-items-header {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
  }
  
  .invoice-items-header > div {
    text-align: left !important;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .invoice-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .invoice-item .btn-remove {
    min-width: auto;
    width: 100%;
  }
  
  .invoice-details-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Enhanced Modal Header */
.modal-header {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: #fff;
  padding: 20px 24px;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header h3 i {
  font-size: 16px;
  opacity: 0.9;
}

.close {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* Enhanced Modal Content */
.modal-content {
  background-color: #fff;
  margin: 20px auto;
  padding: 0;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 40px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s ease-out;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Large Modal for Invoice Creation */
.modal-content.large {
  max-width: 900px;
  max-height: calc(100vh - 20px);
}

.modal-content.extra-large {
  max-width: 1200px;
  max-height: calc(100vh - 20px);
}

/* Form Inline Styling */
.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
}

.form-inline .form-group {
  flex: 1;
  min-width: 150px;
  margin-bottom: 0;
}

.form-inline .form-group label {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}

.form-inline .form-group input,
.form-inline .form-group select {
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.form-inline .form-group input:focus,
.form-inline .form-group select:focus {
  border-color: #2c3e50;
  box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal {
    padding: 10px;
  }
  
  .modal-content {
    max-width: 100%;
    margin: 10px auto;
  }
  
  .modal-form {
    padding: 16px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .form-actions .btn-primary,
  .form-actions .btn-secondary {
    width: 100%;
    min-width: auto;
  }
  
  .invoice-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .form-inline {
    flex-direction: column;
    align-items: stretch;
  }
  
  .form-inline .form-group {
    min-width: auto;
  }
}

.modal-content {
  background-color: #fff;
  margin: 20px auto;
  padding: 0;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 40px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

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

.modal-header {
  background: #2c3e50;
  color: #fff;
  padding: 20px 24px;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.modal-header h3 i {
  margin-right: 8px;
}

.close {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover {
  opacity: 0.7;
}

.modal-form {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

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

.modal-form label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.modal-form input:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: #2c3e50;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding: 20px 24px;
  border-top: 1px solid #e9ecef;
  background: #fff;
  flex-shrink: 0;
}

/* Admin Menu Override Styles - Ensure they take precedence over Bootstrap */
header .nav-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;
}

/* Ensure badge styles work with Bootstrap */
.badge {
  display: inline-block !important;
  padding: 0.35em 0.65em !important;
  font-size: 0.75em !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  vertical-align: baseline !important;
  border-radius: 0.375rem !important;
}

.badge-primary {
  color: #fff !important;
  background-color: #0d6efd !important;
}

.badge-danger {
  color: #fff !important;
  background-color: #dc3545 !important;
}

.badge-info {
  color: #fff !important;
  background-color: #0dcaf0 !important;
}

.badge-success {
  color: #fff !important;
  background-color: #198754 !important;
}

.badge-warning {
  color: #000 !important;
  background-color: #ffc107 !important;
}

header .nav-menu {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 20px !important;
}

header .nav-menu li {
  margin: 0 !important;
  padding: 0 !important;
}

header .nav-link {
  color: #fff !important;
  text-decoration: none !important;
  padding: 8px 16px !important;
  border-radius: 4px !important;
  transition: background-color 0.3s ease !important;
  display: block !important;
  font-size: 14px !important;
  font-weight: normal !important;
}

header .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  text-decoration: none !important;
}

header .nav-link.active {
  background-color: #4CAF50 !important;
  color: #fff !important;
}

header .header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  margin-left: auto !important;
}

header .btn-logout {
  background: transparent !important;
  color: #fff !important;
  padding: 8px 12px !important;
  border: none !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  font-size: 16px !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

header .btn-logout:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  text-decoration: none !important;
  transform: scale(1.05) !important;
}

header .user-info {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #fff !important;
  font-size: 14px !important;
  margin-right: 16px !important;
  opacity: 0.9 !important;
}

header .user-info i {
  color: #4CAF50 !important;
  font-size: 12px !important;
}

/* Mobile menu toggle styles */
header .mobile-menu-toggle {
  display: none !important;
}

header .hamburger {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 5px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

header .hamburger span {
  width: 25px !important;
  height: 3px !important;
  background-color: #fff !important;
  transition: 0.3s !important;
  border-radius: 2px !important;
}

header .hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px) !important;
}

header .hamburger.active span:nth-child(2) {
  opacity: 0 !important;
}

header .hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px) !important;
}

/* Responsive admin menu */
@media (max-width: 768px) {
  header .mobile-menu-toggle {
    display: block !important;
  }
  
  header .nav-container {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #25335c !important;
    flex-direction: column !important;
    padding: 20px !important;
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
  }
  
  header .nav-container.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  header .nav-menu {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  header .nav-menu li {
    width: 100% !important;
  }
  
  header .nav-link {
    padding: 12px 16px !important;
    border-radius: 6px !important;
    text-align: center !important;
  }
  
  header .header-actions {
    margin-top: 20px !important;
    margin-left: 0 !important;
    justify-content: center !important;
  }
}

/* Components management styles */
.components-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}

.components-header h4 {
  margin: 0;
  color: #333;
}

.form-text {
  font-size: 12px;
  color: #6c757d;
  margin-top: 4px;
}



/* Components modal scrolling */
#componentsModal .modal-content {
  max-height: 80vh;
  overflow-y: auto;
}

#componentsModal .modal-body {
  max-height: calc(80vh - 120px);
  overflow-y: auto;
}

#componentsList {
  max-height: 400px;
  overflow-y: auto;
}

#componentsList .table-container {
  margin: 0;
}

#componentsList .admin-table {
  font-size: 14px;
}

#componentsList .admin-table th {
  padding: 10px 8px;
  font-size: 13px;
}

#componentsList .admin-table td {
  padding: 8px;
  vertical-align: middle;
}







.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.action-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.action-btn:hover {
  background: #f8f9fa;
  transform: scale(1.05);
}

.action-btn.view {
  color: #28a745;
}

.action-btn.add {
  color: #007bff;
}

.action-btn.medication {
  color: #6c757d;
}

.action-btn.edit {
  color: #17a2b8;
}

.action-btn.print {
  color: #6c757d;
}

/* Dashboard Styles - Moved from dashBoard.php */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8fafc;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.dashboard-header {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.dashboard-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
  font-weight: 400;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.stat-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.stat-icon {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-icon.revenue { background: linear-gradient(135deg, #4ade80, #22c55e); }
.stat-icon.invoices { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.stat-icon.clients { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-icon.pending { background: linear-gradient(135deg, #ef4444, #dc2626); }

.stat-value {
  font-size: 2rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 8px 0;
  line-height: 1;
}

.stat-change {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.stat-change.positive { color: #059669; }
.stat-change.negative { color: #dc2626; }
.stat-change.neutral { color: #6b7280; }

.dashboard-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.chart-container {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-placeholder {
  height: 250px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-placeholder:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background: white;
}

.chart-placeholder i {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #94a3b8;
  z-index: 1;
}

.chart-placeholder p {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 6px 0;
  z-index: 1;
}

.chart-placeholder small {
  font-size: 0.8rem;
  opacity: 0.7;
  z-index: 1;
}

.recent-activity {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.activity-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item:hover {
  background: rgba(102, 126, 234, 0.05);
  border-radius: 6px;
  margin: 0 -10px;
  padding: 12px 10px;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 14px;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-icon.invoice { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.activity-icon.payment { background: linear-gradient(135deg, #4ade80, #22c55e); }
.activity-icon.client { background: linear-gradient(135deg, #f59e0b, #d97706); }
.activity-icon.expense { background: linear-gradient(135deg, #ef4444, #dc2626); }

.activity-content {
  flex: 1;
}

.activity-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a202c;
  margin: 0 0 3px 0;
}

.activity-time {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.action-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 16px;
  color: white;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
  position: relative;
  z-index: 1;
}

.action-icon.invoice { background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3); }
.action-icon.transaction { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3); }
.action-icon.clients { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3); }
.action-icon.reports { background: linear-gradient(135deg, #8b5cf6, #7c3aed); box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3); }

.action-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 6px 0;
  position: relative;
  z-index: 1;
}

.action-desc {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .dashboard-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-container {
    padding: 15px;
  }
  
  .dashboard-header {
    padding: 25px;
  }
  
  .dashboard-title {
    font-size: 2rem;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stat-card {
    padding: 25px;
  }
  
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }
}


