/* body {
  background: #ffffff;
  font-family: "Segoe UI", sans-serif;
  padding: 2rem;
} */

.card-record {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

.header-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.header-section h3 {
  margin: 0;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.info-box {
  background: #f8fafc;
  padding: 1rem;
  border-left: 4px solid #0d6efd;
  border-radius: 10px;
}

.info-label {
  font-size: 0.85rem;
  color: #6c757d;
}

.info-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #212529;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0d6efd;
  margin-top: 2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.list-style {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  list-style: none;
  margin-bottom: 1rem;
}

.list-style li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.list-style li:last-child {
  border-bottom: none;
}

.badge-status {
  background-color: #198754;
  color: #fff;
  font-weight: 500;
  padding: 0.4em 0.9em;
  border-radius: 20px;
  font-size: 0.9rem;
}

@media print {
  body {
    background: white;
  }
  .card-record {
    box-shadow: none;
    border: none;
  }
}

/* data tables */

table td, table th {
  vertical-align: middle;
}
.patient-avatar {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}
.badge-general {
  background-color: #fff3cd;
  color: #856404;
  font-weight: 500;
}
.badge-consulting {
  background-color: #e7f1ff;
  color: #0d6efd;
  font-weight: 500;
}
.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* notification */
.notification-card {
  border-left: 5px solid #007bff;
  background: #ffffff;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.risk-card {
  border-left-color: #dc3545;
  background-color: #fff5f5;
}

.timestamp {
  font-size: 0.875rem;
  color: #6c757d;
}

.tab-content {
  margin-top: 1rem;
}


/* #symptomForm */

/* =========================================
   Symptom Reporting Page Styles
   ========================================= */

.symptom-form-container {
    margin: 0 auto;
}

.form-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.form-header {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

.form-section {
    background-color: #f8f9fc;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section-title {
    color: #4e73df;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pain-level-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e3e6f0;
    outline: none;
}

.pain-level-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4e73df;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pain-level-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.pain-level-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.pain-level-label {
    font-size: 0.8rem;
    color: #6c757d;
}

.severity-option {
    border: 2px solid #e3e6f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.severity-option:hover {
    border-color: #4e73df;
    background-color: #f8f9fc;
}

.severity-option.selected {
    border-color: #4e73df;
    background-color: rgba(78, 115, 223, 0.1);
}

.severity-option input[type="radio"] {
    display: none;
}

.notes-textarea {
    border: 2px solid #e3e6f0;
    border-radius: 8px;
    padding: 1rem;
    width: 100%;
    min-height: 120px;
    resize: vertical;
    transition: all 0.2s ease;
}

.notes-textarea:focus {
    border-color: #4e73df;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.submit-btn {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.2);
}

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.severity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1rem;
}

.severity-icon.mild {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.severity-icon.moderate {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.severity-icon.severe {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}
/* Hide sidebar on mobile by default */
@media (max-width: 768px) {
  .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;
      width: 250px;
      transform: translateX(-100%);
      transition: transform 0.3s ease-in-out;
      z-index: 1040; /* above content but below topbar */
  }

  .sidebar.active {
      transform: translateX(0);
  }

  /* Overlay behind sidebar */
  .sidebar-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1039;
      opacity: 0;
      transition: opacity 0.3s ease;
  }

  .sidebar-overlay.active {
      display: block;
      opacity: 1;
  }

  /* Ensure main content stays visible below topbar */
  .content-wrapper {
      position: relative;
      z-index: 1;
  }
}






