/* Global styles for MRO Connect */
:root {
  --primary-color: #2c3f50;
  --secondary-color: #3498db;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --text-color: #333;
  --light-bg: #f5f7fa;
  --dark-bg: #2c3e50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background-color: var(--light-bg);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.content {
  padding: 20px;
  flex: 1;
}

/* Header styles */
header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 1rem;
  z-index: 101;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}





.user-profile {
  position: relative;
  cursor: pointer;
}

.user-icon {
  font-size: 1.5rem;
  background-color: #2c3f50;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 4px;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.user-profile:hover .dropdown-content {
  display: block;
}

/* Main content */
main {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-title {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: #2c3e50;
  font-weight: 600;
}

/* Library page styles */
.library-page body {
  background: #f7fafd;
}

.library-dashboard-layout {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  min-height: 350px;
}

.library-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 170px;
  margin-top: 1.5rem;
}

.library-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  padding: 0.5rem 1.1rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #232b38;
  cursor: pointer;
  transition: all 0.18s;
  min-width: 140px;
  border: none;
  text-align: left;
}

.library-nav-btn.active, 
.library-nav-btn:hover {
  background: #f3f4f6;
  box-shadow: 0 2px 8px rgba(44,63,80,0.10);
  color: #2c3f50;
}

.library-nav-btn i {
  font-size: 1.3rem;
  color: #2c3f50;
}

.library-module-content {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  padding: 2rem 2.5rem;
  min-width: 320px;
  margin-top: 1.5rem;
}

.library-tools-section {
  margin-bottom: 2rem;
}

.library-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-container {
  flex-grow: 1;
  position: relative;
  min-width: 300px;
}

.search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
}

.search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
}

.upload-btn {
  background-color: #2c3f50;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s;
}

.upload-btn:hover {
  background-color: #1a2632;
}

.library-section {
  margin-bottom: 2rem;
}

.library-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.library-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #232b38;
  margin: 0;
}

.library-section-title i {
  color: #2c3f50;
}

.library-section-actions {
  display: flex;
  gap: 0.5rem;
}

.view-toggle-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  color: #2c3f50;
  transition: all 0.2s;
}

.view-toggle-btn.active,
.view-toggle-btn:hover {
  background: #2c3f50;
  color: white;
  border-color: #2c3f50;
}

/* Documents Grid */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.document-card {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

.document-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #2c3f50;
}

.document-icon {
  font-size: 2.5rem;
  color: #2c3f50;
  margin-bottom: 1rem;
  text-align: center;
}

.document-info {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.document-name {
  font-weight: 600;
  color: #2c3f50;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.document-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.document-type {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

.document-date {
  font-size: 0.85rem;
  color: #9ca3af;
}

.document-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(44, 63, 80, 0.1);
  color: #2c3f50;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  width: fit-content;
}

.document-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.action-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  color: #2c3f50;
  background: #f3f4f6;
}

.action-btn.delete:hover {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}

/* Documents List (Table) */
.documents-list {
  overflow-x: auto;
}

.documents-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

.documents-table th,
.documents-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
}

.documents-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #2c3f50;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.documents-table td {
  color: #4b5563;
}

.document-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: #2c3f50;
}

.document-title i {
  font-size: 1.2rem;
  color: #2c3f50;
}

.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(44, 63, 80, 0.1);
  color: #2c3f50;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.table-actions .action-btn {
  padding: 0.25rem;
  font-size: 1rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: #d1d5db;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.empty-state-message {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #6b7280;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 0.5rem;
}

.pagination-btn {
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background-color: white;
  cursor: pointer;
  color: #374151;
  transition: all 0.2s;
}

.pagination-btn.active {
  background-color: #2c3f50;
  color: white;
  border-color: #2c3f50;
}

.pagination-btn:hover:not(.active) {
  background-color: #f3f4f6;
  border-color: #2c3f50;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 63, 80, 0.7);
  backdrop-filter: blur(2px);
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

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

.modal-content {
  position: relative;
  background: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  width: 90%;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, #2c3f50 0%, #34495e 100%);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: white;
  font-weight: 600;
}

.close-modal {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  border: none;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

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

.modal-body {
  padding: 2rem;
}

.modal-footer {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-left: -2rem;
  margin-right: -2rem;
  margin-bottom: -2rem;
}

/* Form styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #2c3f50;
  box-shadow: 0 0 0 2px rgba(44, 63, 80, 0.1);
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-group small {
  display: block;
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Button styles */
.btn-primary, .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2c3f50 0%, #34495e 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #34495e 0%, #2c3f50 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
}

.btn-secondary:hover {
  background: #e9ecef;
  color: #373a3c;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 1.5rem;
  margin-top: auto;
}

.company-name {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.company-tagline {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.company-address {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.copyright {
  font-size: 0.8rem;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: none;
  z-index: 99;
}

.overlay.active {
  display: block;
}

/* Responsive design */
@media (max-width: 900px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .library-dashboard-layout {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .library-module-content {
    padding: 1.2rem 0.7rem;
    margin-top: 1.2rem;
  }
  
  .library-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
    min-width: 0;
  }
  
  .library-nav-btn {
    min-width: 120px;
    font-size: 0.98rem;
    padding: 0.5rem 0.7rem;
  }
}

@media (max-width: 768px) {
  .library-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-container {
    min-width: auto;
  }
  
  .documents-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .header-right {
    gap: 0.5rem;
  }
  
  .create-btn, .notebook-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }
  
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
}

@media (max-width: 480px) {
  .documents-grid {
    grid-template-columns: 1fr;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .upload-btn span {
    display: none;
  }
  
  .upload-btn {
    padding: 0.6rem;
  }
  
  .modal-content {
    width: 95%;
    margin: 15% auto;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Notebook modal specific styles */
#mechanicNotes {
  width: 100%;
  height: 200px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
  font-family: 'Arial', sans-serif;
}

/* Enhanced Modal Styles */
.modal-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

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

/* Tab Navigation */
.tab-navigation {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 2rem;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  color: #2c3f50;
  background: #f8f9fa;
}

.tab-btn.active {
  color: #2c3f50;
  border-bottom-color: #2c3f50;
  background: #f8f9fa;
}

.tab-btn i {
  font-size: 1rem;
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

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

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

/* Enhanced File Upload */
.file-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #f9fafb;
  position: relative;
}

.file-upload-area:hover {
  border-color: #2c3f50;
  background: #f3f4f6;
}

.file-upload-area.dragover {
  border-color: #2c3f50;
  background: #eff6ff;
  transform: scale(1.02);
}

.file-upload-content i {
  font-size: 3rem;
  color: #2c3f50;
  margin-bottom: 1rem;
}

.file-upload-content p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #374151;
}

.file-browse {
  color: #2c3f50;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.file-upload-content small {
  color: #6b7280;
  font-size: 0.875rem;
}

/* File Upload Progress */
.file-upload-progress {
  margin-top: 1rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #2c3f50 0%, #34495e 100%);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.875rem;
  color: #2c3f50;
  font-weight: 600;
}

/* File Upload Success */
.file-upload-success {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 6px;
  margin-top: 1rem;
}

.file-upload-success i {
  color: #059669;
  font-size: 1.5rem;
}

.file-name {
  flex: 1;
  font-weight: 500;
  color: #374151;
}

.file-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: background 0.2s;
}

.file-remove:hover {
  background: #fef2f2;
}

/* Input Groups */
.input-group {
  display: flex;
  gap: 0;
}

.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.btn-generate {
  background: #2c3f50;
  color: white;
  border: 1px solid #2c3f50;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.btn-generate:hover {
  background: #1a2632;
  border-color: #1a2632;
}

/* Checkbox Styling */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s;
  background: white;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #2c3f50;
  border-color: #2c3f50;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Modal Footer Enhanced */
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  margin: 0 -2rem -2rem -2rem;
}

.modal-navigation {
  display: flex;
  gap: 1rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
}

.btn-nav {
  background: #f3f4f6;
  color: #2c3f50;
  border: 1px solid #d1d5db;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav:hover {
  background: #e5e7eb;
  color: #1a2632;
}

.btn-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Priority Level Styling */
#priorityLevel {
  color: #374151;
}

#priorityLevel option[value="critical"] {
  background: #fef2f2;
  color: #dc2626;
}

#priorityLevel option[value="emergency"] {
  background: #450a0a;
  color: #fca5a5;
}

#priorityLevel option[value="important"] {
  background: #fef3c7;
  color: #d97706;
}

/* Form Enhancements */
.form-group small {
  display: block;
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-style: italic;
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
    margin: 2% auto;
  }
  
  .tab-navigation {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .modal-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .modal-navigation,
  .modal-actions {
    justify-content: center;
  }
  
  .file-upload-area {
    padding: 1.5rem 1rem;
  }
}

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  vertical-align: middle;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  transition: 0.3s;
  border-radius: 26px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(44,63,80,0.08);
}
.toggle-switch input:checked + .slider {
  background-color: #2c3f50;
}
.toggle-switch input:checked + .slider:before {
  transform: translateX(20px);
}
.toggle-switch input:focus + .slider {
  box-shadow: 0 0 1px #2c3f50;
}

/* Status badge styling (shared across modules) */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.status-approved {
    background-color: #e3f7e3;
    color: #2e7d32;
}
.status-pending {
    background-color: #fff8e1;
    color: #f57c00;
}
.status-expired {
    background-color: #ffebee;
    color: #c62828;
}
.status-active {
    background-color: #e3f7e3;
    color: #2e7d32;
}
.status-inactive {
    background-color: #f3f4f6;
    color: #6b7280;
}
.status-prospect {
    background-color: #e3e8f7;
    color: #2c3f50;
}