/* Reset and basic styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: url(../images/background.png) no-repeat center center/cover;
}

/* ========================================
   LOGIN/REGISTER/RESET PAGES
   ======================================== */

/* Main container */
.login-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

/* Logo and header */
.logo {
    width: 60px;
    height: 60px;
    background-color: #e0e0e0;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 30px;
}

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

label {
    display: block;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Consolidated input styling */
input[type="email"],
input[type="password"],
input[type="date"],
input[type="tel"],
input[type="text"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #3498db;
}

select {
    cursor: pointer;
    background-color: white;
}

/* Checkbox styling */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2c3e50;
}

.terms-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terms-container input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.terms-container label {
    margin-bottom: 0;
    font-size: 13px;
    color: #7f8c8d;
}

/* Name fields row - register page */
.name-row {
    display: flex;
    gap: 10px;
}

.name-row .form-group {
    flex: 1;
}

/* Link styling */
a {
    transition: color 0.3s;
}

.forgot-password {
    text-align: right;
    margin-top: 8px;
    margin-bottom: 20px;
}

.forgot-password a {
    color: #7f8c8d;
    font-size: 13px;
    text-decoration: none;
}

.forgot-password a:hover {
    color: #3498db;
    text-decoration: underline;
}

.signin-link {
    text-align: center;
    margin-top: 15px;
}

.signin-link-text {
    color: #7f8c8d;
    font-size: 14px;
}

.signin-link a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

.back-link {
    text-align: center;
    margin-top: 15px;
}

.back-link a {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-link a:hover,
.signin-link a:hover,
.help-section a:hover {
    text-decoration: underline;
}

/* Help section */
.help-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.help-text {
    color: #7f8c8d;
    font-size: 13px;
}

.help-section a {
    color: #3498db;
    text-decoration: none;
    font-size: 13px;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 12px;
}

.btn-login {
    background-color: #2c3e50;
    color: white;
}

.btn-login:hover {
    background-color: #1a252f;
}

.btn-register {
    background-color: white;
    color: #2c3e50;
    border: 1px solid #ddd;
}

.btn-register:hover {
    background-color: #f8f9fa;
}

/* Messages */
.error-message,
.success-message {
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    display: none;
}

.error-message {
    background-color: #fee;
    color: #c33;
}

.success-message {
    background-color: #efe;
    color: #3c3;
}

/* Footer */
.footer {
    text-align: center;
    color: #95a5a6;
    font-size: 12px;
    margin-top: 30px;
}

/* ========================================
   DASHBOARD STYLES - DOCTOR PORTAL
   ======================================== */

.dashboard-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f7fa;
    background-image: none;
    padding: 0;
    align-items: stretch;
}

/* Dashboard Header */
.dashboard-header {
    background-color: white;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-left a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-left a:hover .brand-name {
    color: #3498db;
}

.logo-small {
    width: 40px;
    height: 40px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: 10%;
    transition: background-color 0.2s ease;
}

.icon-btn:hover {
    background-color: rgba(168, 219, 219, 0.18);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    display: none;
}

.header-text {
    color: #7f8c8d;
    font-size: 14px;
    cursor: pointer;
}

.header-text:hover {
    color: #2c3e50;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: default;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.user-role {
    font-size: 12px;
    color: #7f8c8d;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    flex: 1;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 200px;
    background-color: white;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: #5a6c7d;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.nav-item:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.nav-item.active {
    background-color: #e8f4f8;
    color: #2c3e50;
    border-left: 3px solid #3498db;
    font-weight: 600;
}

.sidebar-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 30px;
}

.welcome-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}
/* === DASHBOARD LAYOUT === */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Left = wider for news */
  gap: 20px;
  align-items: stretch;
}

.dashboard-left {
  display: flex;
  flex-direction: column;
}

.dashboard-left .dashboard-card {
  flex: 1;
}

.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-right .dashboard-card {
  flex: 1;
}

/* Responsive layout */
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* === DASHBOARD CARDS === */
.dashboard-card {
  background-color: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-header {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 13px;
  color: #7f8c8d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
}

.card-number {
  font-size: 36px;
  font-weight: 700;
  color: #2c3e50;
}

.card-number.highlight {
  color: #e74c3c;
}

/* === DOCTOR NEWS CARD === */
.news-card .card-body {
  height: 322px;
  overflow-y: auto;
  padding-right: 10px;
}

.news-mini-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.news-mini-item {
  font-size: 14px;
  color: #2c3e50;
}

.news-mini-item a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
}

.news-mini-item a:hover {
  text-decoration: underline;
}

.news-mini-summary {
  font-size: 13px;
  color: #7f8c8d;
  margin: 4px 0 8px 0;
}

.news-mini-loading {
  color: #7f8c8d;
  font-style: italic;
}

/* === REFRESH BUTTON === */
.btn-refresh {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  color: #2c3e50;
  transition: all 0.2s ease;
  margin-top: 12px;
}
.btn-refresh:hover {
  background: #f8f9fa;
  border-color: #2c3e50;
}
.btn-refresh:active {
  background: #2c3e50;
  color: white;
  border-color: #2c3e50;
}


.link-btn {
  background: none;
  border: none;
  color: #2c3e50;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.link-btn:hover { opacity: 0.8; }
.table-responsive { overflow-x: auto; }
.nm-table th, .nm-table td { white-space: nowrap; }

/* === Patients Table Styling === */
.table-card {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 16px;
  margin-top: 8px;
}

.table-responsive {
  overflow-x: auto;
  margin-top: 8px;
}

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

.nm-table th {
  background: #f8f9fa;
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #e0e0e0;
}

.nm-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
  color: #2c3e50;
}

.nm-table tr:nth-child(even) {
  background-color: #fafafa;
}

.nm-table tr:hover {
  background-color: #f2f6ff;
}

.nm-table .action-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 13px;
  padding: 5px 12px;
  cursor: pointer;
}

.nm-table .action-btn:hover {
  background: #e6e6e6;
}

.link-btn:hover {
  color: #0056b3;
}

.dim {
  color: #999;
  font-style: italic;
}

.page-title{
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

/* Dashboard Footer */
.dashboard-footer {
    background-color: white;
    padding: 20px 30px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.footer-content {
    max-width: 1920px;
    margin: 0 auto;
}

.footer-text {
    color: #95a5a6;
    font-size: 12px;
}

/* ========================================
    Reset confirmation page
   ======================================== */
/* Email instructions */
.email-instructions {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    margin: 20px 0 30px 0;
}

/* Resend info text */
.resend-info {
    text-align: center;
    color: #7f8c8d;
    font-size: 13px;
    margin-top: 15px;
    margin-bottom: 20px;
}

#countdownText {
    font-weight: 600;
    color: #2c3e50;
}

/* Make email bold and stand out */
#userEmail {
    color: #2c3e50;
    font-weight: 600;
}

/* ========================================
   ADMIN DASHBOARD ADDITIONS
   ======================================== */

.admin-main {
    max-width: 1400px;
    margin: 0 auto;
}

/* Tabs */
.tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #7f8c8d;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: #2c3e50;
}

.tab-btn.active {
    color: #2c3e50;
    border-bottom-color: #3498db;
}

.tab-content {
    display: none;
}

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

/* Content Header */
.content-header {
    margin-bottom: 30px;
}

.content-header h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.content-subtitle {
    color: #7f8c8d;
    font-size: 14px;
}

/* Table Styles */
.table-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background-color: #f8f9fa;
}

.data-table th {
    text-align: left;
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #5a6c7d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #2c3e50;
}

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

.doctor-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doctor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.doctor-details {
    display: flex;
    flex-direction: column;
}

.doctor-name {
    font-weight: 600;
    color: #2c3e50;
}

.doctor-specialty {
    font-size: 12px;
    color: #7f8c8d;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

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

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

.action-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: #5a6c7d;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background-color: #f8f9fa;
    border-color: #2c3e50;
    color: #2c3e50;
}

.action-btn.deactivate:hover {
    background-color: #fee;
    border-color: #e74c3c;
    color: #e74c3c;
}

.no-data {
    text-align: center;
    color: #7f8c8d;
    padding: 40px 20px !important;
}

/* Upload Container */
.upload-container {
    max-width: 800px;
}

.upload-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.drop-zone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    margin-bottom: 20px;
    background-color: #f8f9fa;
}

.drop-zone.drag-over {
    border-color: #3498db;
    background-color: #e8f4f8;
}

.drop-zone-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.drop-zone-text {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.drop-zone-subtext {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 16px;
}

.drop-zone-info {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 12px;
}

.btn-secondary {
    background-color: white;
    color: #2c3e50;
    border: 1px solid #ddd;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #f8f9fa;
}

/* Update Account Page Styles */
#accountPage {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

#accountPage .page-head {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

#accountPage .table-card {
    max-width: 600px;
    width: 100%;
}

#accountPage .form-group {
    margin-bottom: 15px;
}

#accountPage .name-row {
    display: flex;
    gap: 20px;
}

#accountPage .name-row .form-group {
    flex: 1;
}

.account-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.account-buttons .btn,
.account-buttons .btn-secondary {
    width: auto;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0;
}

.account-buttons .btn-login {
    background-color: #2c3e50;
    color: white;
    border: none;
}

.account-buttons .btn-login:hover {
    background-color: #1a252f;
}

/* Account Confirmation Modal */
.account-confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.account-confirm-modal.active {
    display: flex;
}

.account-confirm-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.account-confirm-content h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 20px;
}

.account-confirm-content p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.account-confirm-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.account-confirm-buttons button {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.account-confirm-buttons .btn-confirm {
    background-color: #27ae60;
    color: white;
    border: none;
}

.account-confirm-buttons .btn-confirm:hover {
    background-color: #219a52;
}

.account-confirm-buttons .btn-cancel {
    background-color: white;
    color: #2c3e50;
    border: 1px solid #ddd;
}

.account-confirm-buttons .btn-cancel:hover {
    background-color: #f8f9fa;
}

.selected-files {
    margin-bottom: 20px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-name {
    font-size: 14px;
    color: #2c3e50;
}

.file-size {
    font-size: 12px;
    color: #7f8c8d;
}

.remove-file {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

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

.checkbox-group label {
    margin-bottom: 0;
    font-size: 14px;
}

.upload-status {
    margin-top: 20px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.upload-status.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.upload-status.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Logs Container */
.logs-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.log-entry {
    display: grid;
    grid-template-columns: 180px 100px 1fr;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: #7f8c8d;
    font-family: monospace;
}

.log-type {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
}

.log-type.info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.log-type.success {
    background-color: #d4edda;
    color: #155724;
}

.log-type.warning {
    background-color: #fff3cd;
    color: #856404;
}

.log-message {
    color: #2c3e50;
}

/* Responsive */
@media (max-width: 768px) {
    .tabs-container {
        overflow-x: auto;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px;
    }
    
    .log-entry {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .user-info {
        display: none;
    }
}

@media (max-width: 500px) {
    .sidebar {
        width: 80px;
    }
    
    .nav-item {
        justify-content: center;
        padding: 14px 12px;
    }
}

/* ========== Admin Dashboard Custom Styles ========== */

/* Admin user info should not look clickable */
.user-profile {
  cursor: default;
}
.user-profile:hover {
  background: none;
}

/* Buttons in doctor table actions */
.actions-wrap {
  display: flex;
  gap: 8px;
}
.action-btn {
  background: none;
  border: 1px solid #ddd;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.2s;
}
.action-btn:hover {
  background: #f8f9fa;
  border-color: #2c3e50;
}
.action-btn.delete {
  border-color: #e0b4b4;
  color: #b71c1c;
}
.action-btn.delete:hover {
  background: #fee;
  border-color: #e74c3c;
  color: #e74c3c;
}

/* Modal styling (consistent with dashboard theme) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-backdrop.active {
  display: flex;
}
.modal-card {
  width: 800px;
  max-width: 95%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 20px 22px;
  animation: pop 0.12s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes pop {
  from {
    transform: scale(0.98);
    opacity: 0.8;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}
.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #7f8c8d;
}
.modal-body p {
  margin: 10px 0;
  color: #2c3e50;
  font-size: 14px;
}
.modal-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.modal-footer .btn,
.modal-footer .btn-secondary {
  width: auto;
  padding: 10px 24px;
  margin-bottom: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary {
  background: #fff;
  color: #2c3e50;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary:hover {
  background: #f8f9fa;
}

.assign-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.assign-select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.status-toggle-btn {
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
}

.status-toggle-btn.active {
  background-color: #4CAF50;
  color: white;
}

.status-toggle-btn.inactive {
  background-color: #ccc;
  color: #333;
}

.modal-card .modal-body {
    max-height: 60vh;   
    overflow-y: auto;   
    padding-right: 10px; 
}

/* Compare patients layout */
.compare-select-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.compare-select-row .form-group {
  flex: 1 1 200px;
}

.compare-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.compare-cards-row .dashboard-card {
  max-height: none;
}

.compare-cards-row .card-body {
  max-height: 70vh;
  overflow-y: auto;
}

/* Comparison summary styling */
.comparison-summary-grid {
  padding: 8px 0;
}

.summary-section {
  margin-bottom: 8px;
}

.summary-section h4 {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-section p {
  margin: 6px 0;
  line-height: 1.5;
}

.summary-section table {
  margin-top: 8px;
}

/* Test history clickable items */
.test-history-item {
  padding: 10px;
  margin: 4px 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.test-history-item:hover {
  background: #f8f9fa;
  border-color: #bbb;
}

.test-history-item.selected {
  background: #e8f4f8;
  border-color: #3498db;
}

.page-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 15px;
    text-align: center;
}

/* ========================================
   FAQ MODAL STYLES
   ======================================== */
.faq-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.faq-modal-backdrop.active {
  display: flex;
}

.faq-modal {
  width: 600px;
  max-width: 95%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 24px;
  animation: pop 0.12s ease-out;
  max-height: 85vh;
  overflow-y: auto;
}

.faq-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.faq-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.faq-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #7f8c8d;
  transition: color 0.2s;
}

.faq-modal-close:hover {
  color: #2c3e50;
}

.faq-item {
  margin-bottom: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #3498db;
}

.faq-question {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 14px;
  color: #5a6c7d;
  line-height: 1.6;
}

.faq-modal-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
}

.faq-contact {
  text-align: center;
  padding: 16px;
  background: #e8f4f8;
  border-radius: 8px;
  margin-top: 16px;
}

.faq-contact p {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #2c3e50;
}

.faq-contact a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.faq-contact a:hover {
  text-decoration: underline;
}

/* ============================
   REPORTS PAGE STYLES
   ============================ */

/* Search input in header */
.report-search-input {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 250px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.report-search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Report Modal */
.report-modal-card {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.report-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.report-modal-footer .btn-secondary,
.report-modal-footer .report-pdf-btn {
    width: auto;
    padding: 10px 20px;
    margin: 0;
}

/* Report Content Styling */
.report-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.report-header h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 24px;
}

.report-header p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.report-summary-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.report-summary-card .label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.report-summary-card .value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.report-summary-card .value.risk-high {
    color: #e74c3c;
}

.report-summary-card .value.risk-medium {
    color: #f39c12;
}

.report-summary-card .value.risk-low {
    color: #27ae60;
}

/* Report Sections */
.report-section {
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.report-section summary {
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 16px;
    color: #2c3e50;
    transition: background 0.3s;
    list-style: none;
}

.report-section summary::-webkit-details-marker {
    display: none;
}

.report-section summary::before {
    content: "+";
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    background: #2c3e50;
    color: white;
    border-radius: 4px;
    margin-right: 10px;
    font-weight: bold;
}

.report-section[open] summary::before {
    content: "−";
}

.report-section summary:hover {
    background: #e9ecef;
}

.report-section-content {
    padding: 20px;
    background: white;
}

/* Test Entry Cards */
.test-entry {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid #3498db;
}

.test-entry:last-child {
    margin-bottom: 0;
}

.test-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.test-entry-date {
    font-size: 13px;
    color: #666;
}

.test-entry-score {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.test-entry-details {
    font-size: 13px;
    color: #555;
}

.test-entry-details p {
    margin: 5px 0;
}

.test-entry details {
    margin-top: 10px;
}

.test-entry details summary {
    padding: 8px 12px;
    background: #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.test-entry details pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 12px;
    border-radius: 4px;
    margin-top: 8px;
    overflow-x: auto;
    font-size: 12px;
}

.no-tests {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

/* ============================
   RISK DASHBOARD STYLES
   ============================ */

.risk-patient-select {
    width: 100%;
    max-width: 350px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #2c3e50;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.risk-patient-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.risk-charts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 1200px) {
    .risk-charts-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .risk-charts-container .risk-chart-card:last-child {
        grid-column: 1 / -1;
    }
}

.risk-chart-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.risk-chart-card .card-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.risk-chart-card .card-header .card-title {
    color: white;
}

.chart-wrapper {
    position: relative;
    height: 280px;
    padding: 10px;
}

.chart-wrapper canvas {
    max-height: 100%;
}

.chart-description {
    margin: 15px 0 0 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
    text-align: center;
}

.risk-no-selection {
    margin-top: 20px;
}

.no-selection-content {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
}

.no-selection-content p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Legacy chart styles (keep for compatibility) */
.chart-box {
    background: white;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.chart-title {
    margin-bottom: 10px;
}

/* Risk Summary Panel */
.risk-summary-panel {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.risk-patient-info {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.risk-patient-info h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 22px;
}

.risk-patient-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.risk-scores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 992px) {
    .risk-scores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .risk-scores-grid {
        grid-template-columns: 1fr;
    }
}

.risk-score-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.risk-score-card.overall {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: none;
}

.risk-score-card.overall .risk-score-label,
.risk-score-card.overall .risk-score-value,
.risk-score-card.overall .risk-score-level {
    color: white;
}

.risk-score-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.risk-score-value {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 8px;
}

.risk-score-level {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.risk-score-level.low {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.risk-score-level.medium {
    background: rgba(241, 196, 15, 0.15);
    color: #d4a800;
}

.risk-score-level.high {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.risk-score-level.no-data {
    background: rgba(149, 165, 166, 0.15);
    color: #7f8c8d;
}

.risk-score-card.overall .risk-score-level.low {
    background: rgba(39, 174, 96, 0.3);
    color: #2ecc71;
}

.risk-score-card.overall .risk-score-level.medium {
    background: rgba(241, 196, 15, 0.3);
    color: #f1c40f;
}

.risk-score-card.overall .risk-score-level.high {
    background: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.risk-score-count {
    font-size: 0.7rem;
    color: #95a5a6;
    margin-top: 8px;
    font-style: italic;
}

.risk-score-card.overall .risk-score-count {
    color: rgba(255, 255, 255, 0.7);
}

/* Compare Patient Selection */
.compare-patient-selection {
    margin-bottom: 20px;
}

.compare-label {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 8px;
}

.compare-dropdown {
    position: relative;
    width: 300px;
}

.compare-dropdown-btn {
    width: 100%;
    padding: 10px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
}

.compare-dropdown-btn:hover {
    border-color: #3498db;
}

.compare-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.compare-dropdown-content.show {
    display: block;
}

.compare-dropdown-actions {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.compare-dropdown-actions button {
    flex: 1;
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 3px;
}

.compare-dropdown-actions button:hover {
    background: #e9ecef;
}

.compare-dropdown-list label {
    display: block;
    padding: 8px 12px;
    cursor: pointer;
}

.compare-dropdown-list label:hover {
    background: #f5f5f5;
}

.compare-dropdown-list input[type="checkbox"] {
    margin-right: 8px;
}

/* Reviews Page */
.review-stars {
    color: #f1c40f;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* Data Export (Admin) */
.export-container {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 400px;
}

.export-cards-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.export-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    width: 350px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.export-card h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.export-card p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.export-list {
    margin: 0 0 20px 0;
    padding-left: 20px;
    color: #555;
    line-height: 1.8;
    text-align: left;
    display: inline-block;
}

.export-list li {
    margin-bottom: 5px;
}

.export-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.export-status.loading {
    background: #e8f4fc;
    color: #3498db;
}

.export-status.success {
    background: #d4edda;
    color: #27ae60;
}

.export-status.error {
    background: #f8d7da;
    color: #e74c3c;
}

/* =========================
   RISK SETTINGS PAGE
========================= */
.risk-settings-container {
    max-width: 700px;
    margin: 0 auto;
}

.weight-info-banner {
    background: linear-gradient(135deg, #e8f4fc, #dbeafe);
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.weight-info-banner p {
    margin: 0;
    color: #2c3e50;
    font-size: 0.95rem;
}

.weight-sliders {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.weight-slider-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.weight-slider-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.weight-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.weight-value {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

.weight-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.weight-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
}

.weight-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.weight-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.weight-description {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}

.weight-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.weight-actions .btn-secondary,
.weight-actions .btn.btn-login {
    width: 160px;
    height: 48px;
    padding: 0;
    font-size: 0.95rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.weight-status {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}

.weight-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.weight-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.weight-status.loading {
    display: block;
    background: #e8f4fc;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* =========================
   CLICKABLE DASHBOARD CARD
========================= */
.clickable-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.card-link {
    color: #3498db;
    font-weight: 500;
    font-size: 0.9rem;
}

/* =========================
   COMBINED RISK SECTION (Patient Modal)
========================= */
.combined-risk-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    border: 1px solid #dee2e6;
}

.combined-risk-section h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1rem;
}

.combined-risk-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.combined-risk-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.combined-risk-label {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.combined-risk-label.high-risk {
    background: #fee2e2;
    color: #dc2626;
}

.combined-risk-label.medium-risk {
    background: #fef3c7;
    color: #d97706;
}

.combined-risk-label.low-risk {
    background: #dcfce7;
    color: #16a34a;
}

/* =========================
   COMPARE PAGE COMBINED RISK
========================= */
.compare-combined-risk {
    background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.compare-risk-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.compare-risk-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.compare-risk-label {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.compare-risk-label.high-risk {
    background: #fee2e2;
    color: #dc2626;
}

.compare-risk-label.medium-risk {
    background: #fef3c7;
    color: #d97706;
}

.compare-risk-label.low-risk {
    background: #dcfce7;
    color: #16a34a;
}

/* =========================
   REPORT COMBINED RISK CARD
========================= */
.combined-risk-summary {
    background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
    border: 2px solid #3498db;
}

.risk-label-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

.risk-label-badge.risk-high {
    background: #fee2e2;
    color: #dc2626;
}

.risk-label-badge.risk-medium {
    background: #fef3c7;
    color: #d97706;
}

.risk-label-badge.risk-low {
    background: #dcfce7;
    color: #16a34a;
}

/* =========================
   WEIGHT PREVIEW ON DASHBOARD
========================= */
.weight-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.weight-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.85rem;
}

.weight-preview-label {
    color: #6c757d;
    font-weight: 500;
}

.weight-preview-value {
    color: #3498db;
    font-weight: 700;
}

/* =========================
   WEIGHT TOTAL DISPLAY
========================= */
.weight-total-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e8f4fc, #dbeafe);
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #3498db;
}

.weight-total-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.weight-total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3498db;
}

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

.weight-total-status.valid {
    background: #dcfce7;
    color: #16a34a;
}

.weight-total-status.invalid {
    background: #fee2e2;
    color: #dc2626;
}

.weight-total-display.invalid {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.weight-total-display.invalid .weight-total-value {
    color: #dc2626;
}

.weight-slider:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.weight-slider-group.locked {
    opacity: 0.7;
}

.weight-slider-group.locked::after {
    content: '🔒';
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 1rem;
}

.weight-slider-group {
    position: relative;
}

.weight-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc;
}
