/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f8f9fa;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary-color);
    color: white;
    padding: 15px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar .logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.role-badge {
    background: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
}

.btn-logout {
    background: var(--danger-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-logout:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* ===== HEADINGS ===== */
h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 600;
}

h2 {
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
    font-size: clamp(20px, 4vw, 24px);
}

h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: clamp(16px, 3vw, 18px);
}

/* ===== MODULES ===== */
.module {
    background: white;
    border-radius: var(--border-radius);
    padding: clamp(15px, 3vw, 25px);
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid #e0e0e0;
}

/* ===== FORMS ===== */
.add-form {
    background: var(--light-color);
    padding: clamp(15px, 3vw, 25px);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 1px solid #dde0e2;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: start;
}

.form-grid select,
.form-grid input,
.form-grid textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.form-grid select:focus,
.form-grid input:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-grid textarea {
    grid-column: span 2;
    resize: vertical;
    min-height: 100px;
}

/* Mobile adjustments for textarea */
@media (max-width: 768px) {
    .form-grid textarea {
        grid-column: span 1;
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid #e1e1e1;
    transition: var(--transition);
}

.checkbox-label:hover {
    background: #f0f0f0;
    border-color: var(--secondary-color);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    grid-column: span 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .btn-primary {
        grid-column: span 1;
    }
}

.btn-block {
    width: 100%;
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 1000px; /* Ensures table doesn't get too squished */
}

.data-table thead {
    background: var(--primary-color);
    color: white;
}

.data-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: #f5f5f5;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status indicators */
.status-completed {
    color: var(--success-color);
    font-weight: bold;
}

.status-pending {
    color: var(--danger-color);
    font-weight: bold;
}

/* Notes cell */
.notes-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}

/* Actions column */
.actions {
    white-space: nowrap;
}

.actions form {
    display: inline-block;
    margin: 0 2px;
}

/* ===== ACTION BUTTONS ===== */
.btn-archive,
.btn-delete {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    margin: 0 2px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-archive {
    background: var(--warning-color);
    color: white;
}

.btn-archive:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.btn-delete {
    background: var(--danger-color);
    color: white;
}

.btn-delete:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* ===== LOGIN PAGE ===== */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.login-box {
    background: white;
    padding: clamp(30px, 5vw, 50px);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: clamp(28px, 6vw, 36px);
    margin: 0;
    font-weight: 700;
    border: none;
    padding: 0;
}

.logo .tagline {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.login-box h2 {
    color: #555;
    font-size: clamp(18px, 4vw, 20px);
    margin-bottom: 25px;
    text-align: center;
    border: none;
    padding: 0;
}

/* Login form */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-footer {
    margin-top: 25px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.form-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.form-footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.demo-credentials {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #e9ecef;
}

.demo-credentials p {
    margin: 8px 0;
    color: #666;
}

.demo-credentials strong {
    color: var(--primary-color);
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    border-left: 4px solid transparent;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-error {
    background: #fee;
    color: #c33;
    border-left-color: var(--danger-color);
    border: 1px solid #fcc;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left-color: var(--success-color);
    border: 1px solid #a5d6a7;
}

.alert-warning {
    background: #fff3e0;
    color: #e65100;
    border-left-color: var(--warning-color);
    border: 1px solid #ffe0b2;
}

/* ===== NO DATA MESSAGE ===== */
.no-data {
    text-align: center;
    color: #999;
    padding: 40px !important;
    font-style: italic;
    background: #f9f9f9;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .user-info {
        justify-content: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .module {
        padding: 15px;
    }
    
    .add-form {
        padding: 15px;
    }
    
    .data-table {
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
    
    .actions {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .actions form {
        display: block;
        margin: 0;
    }
    
    .btn-archive,
    .btn-delete {
        width: 100%;
        margin: 2px 0;
    }
    
    .form-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-footer a {
        display: block;
        width: 100%;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    .login-box {
        padding: 25px;
    }
    
    .logo h1 {
        font-size: 28px;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .role-badge {
        align-self: center;
    }
    
    .demo-credentials {
        padding: 15px;
    }
    
    .demo-credentials p {
        font-size: 13px;
    }
}

/* Small phones */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .login-box {
        padding: 20px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px;
    }
    
    .checkbox-label {
        font-size: 13px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .top-bar,
    .add-form,
    .actions,
    .btn-logout,
    .btn-archive,
    .btn-delete {
        display: none !important;
    }
    
    .module {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .data-table {
        border: 1px solid #000;
    }
    
    .data-table th {
        background: #f0f0f0;
        color: #000;
    }
}
.dashboard-header h1{
    font-size:28px;
    margin-bottom:5px;
}

.subtitle{
    color:#6b7280;
    font-size:14px;
}

.clinical-card{
    background:#fff;
    border:1px solid #e5e7eb;
    padding:20px;
    margin-bottom:25px;
    border-radius:10px;
}

.section-desc{
    font-size:13px;
    color:#6b7280;
    margin-bottom:15px;
}

.badge{
    padding:4px 10px;
    border-radius:6px;
    font-size:12px;
    font-weight:600;
}

.badge.success{
    background:#e6f7ed;
    color:#166534;
}

.badge.pending{
    background:#fff4e5;
    color:#92400e;
}

.stats-bar{
    display:flex;
    gap:15px;
    margin-bottom:20px;
}

.stat{
    background:#f9fafb;
    padding:15px;
    border-radius:10px;
    flex:1;
    text-align:center;
}

.stat-number{
    font-size:22px;
    font-weight:bold;
    display:block;
}
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert ul {
    margin: 5px 0 0 20px;
}.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert ul {
    margin: 10px 0 0 20px;
}

.alert-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
}

.alert-close:hover {
    opacity: 1;
}
/* Alert Messages */
.alert {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.alert-icon {
    font-size: 24px;
}

.alert-content {
    flex: 1;
    font-size: 15px;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    padding: 0 5px;
    transition: opacity 0.2s;
}

.alert-close:hover {
    opacity: 1;
}

/* Success animation for new patient card */
@keyframes highlight {
    0% {
        background: #d4edda;
        transform: scale(1);
    }
    50% {
        background: #fff3cd;
        transform: scale(1.02);
    }
    100% {
        background: white;
        transform: scale(1);
    }
}

.patient-card.highlight {
    animation: highlight 2s ease;
}
.patient-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
gap:18px;
}

.patient-card{
background:#fff;
border-radius:14px;
padding:18px;
box-shadow:0 4px 14px rgba(0,0,0,.06);
display:flex;
flex-direction:column;
gap:15px;
transition:.2s;
}

.patient-card:hover{
transform:translateY(-3px);
box-shadow:0 8px 20px rgba(0,0,0,.1);
}

/* header */
.patient-header{
display:flex;
justify-content:space-between;
align-items:center;
}

.patient-identity{
display:flex;
gap:12px;
align-items:center;
}

.avatar{
width:46px;
height:46px;
border-radius:50%;
background:#2c3e50;
color:white;
display:flex;
align-items:center;
justify-content:center;
font-weight:bold;
font-size:16px;
}

.identity-text strong{
display:block;
font-size:15px;
}

.identity-text .sub{
font-size:12px;
color:#888;
}

/* info */
.patient-body{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:10px;
}

.info-block{
background:#f7f9fc;
padding:10px;
border-radius:8px;
font-size:13px;
}

.info-block label{
display:block;
font-size:11px;
color:#666;
margin-bottom:3px;
}

/* status */
.status{
padding:4px 10px;
border-radius:20px;
font-size:12px;
font-weight:600;
}

.status.ok{
background:#e6f7ee;
color:#0a7a44;
}

.status.warn{
background:#fff4e5;
color:#b76a00;
}

/* footer */
.patient-footer{
display:flex;
gap:8px;
flex-wrap:wrap;
}

.patient-footer form{
margin:0;
}

/* buttons */
.btn-primary{
background:#2d7ef7;
color:white;
border:none;
padding:7px 12px;
border-radius:6px;
}

.btn-secondary{
background:#eef1f5;
padding:7px 12px;
border-radius:6px;
text-decoration:none;
color:#333;
}

.btn-danger{
background:#f44336;
color:white;
border:none;
padding:7px 12px;
border-radius:6px;
}
/* Patient List Styling */
.patient-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.patient-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eef2f6;
}

.patient-header {
    margin-bottom: 15px;
}

.patient-initials {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    font-weight: 600;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.patient-details {
    margin-bottom: 15px;
    padding: 10px 0;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    width: 80px;
    color: #6c757d;
    font-weight: 500;
}

.detail-value {
    color: #212529;
    font-weight: 400;
}

.badge-success {
    background: #d4edda;
    color: #155724;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.btn-action:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.btn-discharge {
    background: #fff5f5;
    color: #dc3545;
    border-color: #fcc;
}

.btn-discharge:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.inline-form {
    flex: 1;
    display: flex;
}

.inline-form button {
    width: 100%;
}

.recent-sessions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
}

.recent-sessions h4 {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #6c757d;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px dashed #dee2e6;
}

.session-item:last-child {
    border-bottom: none;
}

.session-date {
    color: #495057;
}

.session-status {
    display: flex;
    gap: 5px;
    color: #6c757d;
}

.no-sessions {
    color: #adb5bd;
    font-size: 13px;
    font-style: italic;
    padding: 8px 0;
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .inline-form {
        width: 100%;
    }
    
    .btn-action {
        width: 100%;
    }
}
/* Patient Grid Layout */
.patient-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Patient Card */
.patient-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.patient-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Patient Initials Header */
.patient-initials-header {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

/* Patient Details */
.patient-details {
    margin-bottom: 20px;
}

.detail-line {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.detail-label {
    width: 80px;
    color: #64748b;
    font-weight: 500;
}

.detail-value {
    color: #1e293b;
    font-weight: 400;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

/* Action Buttons */
.action-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-new-session {
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-new-session:hover {
    background: #1d4ed8;
}

.action-group {
    display: flex;
    gap: 10px;
}

.btn-action {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
}

.btn-view {
    background: #f8fafc;
    color: #334155;
}

.btn-view:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-discharge {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fee2e2;
}

.btn-discharge:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.inline-form {
    flex: 1;
    display: flex;
}

.inline-form button {
    width: 100%;
}

/* Recent Sessions */
.recent-sessions {
    background: #f8fafc;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}

.recent-sessions-header {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.session-item:last-child {
    border-bottom: none;
}

.session-date {
    font-size: 13px;
    color: #475569;
}

.session-icons {
    display: flex;
    gap: 5px;
    font-size: 14px;
}

.no-sessions {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    font-style: italic;
    padding: 10px 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    background: #f8fafc;
    border-radius: 12px;
    color: #64748b;
    border: 2px dashed #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .patient-card {
        padding: 15px;
    }
    
    .patient-initials-header {
        font-size: 20px;
    }
    
    .action-group {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
    }
}
/* Patient List - Simple & Clean */
.patient-list {
    display: flex;
    flex-direction: column;
}

.patient-item {
    padding: 15px 0;
}

.patient-initials {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.patient-details {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.patient-details div {
    margin-bottom: 2px;
}

.core-pending {
    color: #856404;
}

.core-done {
    color: #155724;
}

.patient-divider {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 12px 0;
}

.patient-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.action-link {
    background: none;
    border: none;
    color: #0066cc;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    font-family: inherit;
}

.action-link:hover {
    text-decoration: underline;
}

.discharge-link {
    color: #dc3545;
}

.discharge-link:hover {
    color: #b02a37;
}

.action-separator {
    color: #999;
    font-size: 14px;
}

.inline-form {
    display: inline;
}

.recent-sessions {
    margin-top: 5px;
}

.recent-header {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.session-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    padding: 3px 0;
}

.session-date {
    color: #666;
}

.session-icons {
    display: flex;
    gap: 5px;
}

.no-sessions {
    color: #999;
    font-size: 13px;
    font-style: italic;
    padding: 5px 0;
}

.patient-separator {
    border: 0;
    border-top: 2px solid #eee;
    margin: 5px 0;
}

/* Override any existing panel styles */
.panel {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.panel h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}/* layout foundation */
.panel{
background:#fff;
padding:20px;
border-radius:12px;
margin-bottom:25px;
box-shadow:0 2px 10px rgba(0,0,0,.05);
}

/* stats */
.stats-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:15px;
}

/* patient list */
.patient-list{
display:flex;
flex-direction:column;
gap:20px;
}

.patient-item{
display:flex;
flex-direction:column;
gap:12px;
padding:15px;
border-radius:10px;
background:#f9fbff;
}

/* initials circle */
.patient-initials{
width:50px;
height:50px;
border-radius:50%;
background:#2c3e50;
color:white;
display:flex;
align-items:center;
justify-content:center;
font-weight:bold;
}

/* details */
.patient-details{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:10px;
font-size:14px;
}

/* actions */
.patient-actions{
display:flex;
gap:10px;
flex-wrap:wrap;
align-items:center;
}

.action-link{
background:none;
border:none;
color:#2d7ef7;
cursor:pointer;
font-weight:500;
}

.discharge-link{
color:#e53935;
}

/* session preview */
.recent-sessions{
background:#eef3fb;
padding:10px;
border-radius:8px;
font-size:13px;
}

.recent-header{
font-size:11px;
color:#777;
margin-bottom:6px;
}

/* status */
.core-done{color:#0f7b3a;font-weight:600;}
.core-pending{color:#c06a00;font-weight:600;}


/* FORM GRID */
.form-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:12px;
}

.form-grid textarea{
grid-column:1/-1;
}

/* MOBILE RESPONSIVE */
@media (max-width:700px){

.patient-details{
grid-template-columns:1fr;
}

.form-grid{
grid-template-columns:1fr;
}

.stats-grid{
grid-template-columns:1fr;
}

button{
width:100%;
}

}
/* ===== FOOTER STYLES - BLUE THEME ===== */
.footer {
    background: #2c3e50; /* Dark blue matching your header */
    color: #ecf0f1;
    padding: 50px 0 25px;
    margin-top: 60px;
    border-top: 4px solid #3498db; /* Bright blue accent */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.footer .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Footer Content Grid */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Footer Sections */
.footer-section h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #3498db; /* Bright blue underline */
    border-radius: 2px;
}

/* Logo Section */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo-icon {
    font-size: 28px;
    color: #3498db; /* Bright blue icon */
}

.footer-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
    max-width: 280px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #3498db; /* Bright blue on hover */
    transform: translateX(5px);
}

.footer-info {
    color: #bdc3c7;
    font-size: 14px;
    display: inline-block;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #34495e; /* Darker blue border */
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #95a5a6;
    font-size: 13px;
}

/* Footer Badges */
.footer-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-badge {
    background: #34495e; /* Dark blue background */
    color: #ecf0f1;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    border: 1px solid #3d566e;
}

.footer-badge:hover {
    background: #3498db; /* Bright blue on hover */
    border-color: #3498db;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE FOOTER ===== */

/* Tablet Landscape */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
    }
    
    .footer-description {
        max-width: 100%;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }
    
    .footer .container {
        padding: 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section h4 {
        margin-bottom: 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-badges {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-logo-icon {
        font-size: 24px;
    }
    
    .footer-logo-text {
        font-size: 20px;
    }
    
    .footer-description {
        font-size: 13px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-badge {
        padding: 4px 12px;
        font-size: 10px;
    }
    
    .copyright {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .footer-badges {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-badge {
        width: 100%;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .footer {
        display: none;
    }
}
:root {
    --bs-primary: #1e40af;
    --bs-primary-rgb: 30, 64, 175;
}
.btn-primary {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background-color: #1e3a8a;
}
/* Activities Section */
.activities-section {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    margin-top: 30px;
}

.activities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.activities-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--gray-50);
    border-radius: 12px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.activity-item:hover {
    background: var(--gray-100);
    transform: translateX(2px);
}

.activity-item.patient_admitted { border-left-color: #10b981; }
.activity-item.patient_discharged { border-left-color: #ef4444; }
.activity-item.session_created { border-left-color: #3b82f6; }

.activity-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-sm);
}

.activity-content {
    flex: 1;
}

.activity-description {
    font-size: 14px;
    color: var(--gray-800);
    margin-bottom: 5px;
    font-weight: 500;
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    flex-wrap: wrap;
}

.activity-user {
    color: var(--gray-600);
    font-weight: 500;
}

.activity-time {
    color: var(--gray-500);
}

.activity-ward {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.activity-ward.hope { background: #059669; }
.activity-ward.manor { background: #d97706; }
.activity-ward.lakeside { background: #2563eb; }

@media (max-width: 768px) {
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .activity-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
.navbar {
    padding-top: 14px;
    padding-bottom: 14px;
}/* ===== RESPONSIVE SEARCH & FILTERS ===== */
.patients-header {
    flex-wrap: wrap;
    gap: 1rem;
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    flex: 1 1 auto;
}

.search-box {
    flex: 2 1 200px;
    min-width: 150px;
}

.filter-select {
    flex: 1 1 120px;
    min-width: 100px;
}

@media (max-width: 600px) {
    .search-filters {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .search-box,
    .filter-select {
        width: 100%;
    }
}

.alert-close::before,
.alert-close::after {
    content: none !important;
    display: none !important;
}

.alert-content {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-wrap: break-word;
    max-width: 100%;
}
.blueprint-logo {
    transition: transform 0.2s ease;
}

.navbar-brand:hover .blueprint-logo {
    transform: scale(1.05);
}
/* ===== DASHBOARD HEADER TEXT COLOR ===== */

.dashboard-header {
    color: white;
}

.dashboard-header h1 {
    color: white;
}

.dashboard-header .welcome-text {
    color: rgba(255,255,255,0.85);
}