/* =========================================================
   Saket Hospital - Complete Design System (Login + Dashboard)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #780e00;
    --primary-light: #9a1a08;
    --primary-dark: #580a00;
    --primary-subtle: #fdf2f0;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --bg-main: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.96);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-focus: #780e00;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.38);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    margin: 0;
    padding: 0;
    background-color: #f1f5f9;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================================
   1. LOGIN PAGE SPECIFIC STYLES
   ========================================================= */
.login-body-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-page-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    position: relative;
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(120, 14, 0, 0.55) 100%), url('../Image/login_bg.jpg');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}

.login-glass-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium), 0 0 0 1px rgba(255, 255, 255, 0.5);
    width: 100%;
    max-width: 530px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInCard 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto 0;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card-header {
    text-align: center;
    padding: 16px 24px 6px;
}

.login-hospital-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
    margin-bottom: 6px;
    transition: transform 0.3s ease;
}

.login-hospital-logo:hover {
    transform: scale(1.05);
}

.login-portal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 2px;
    letter-spacing: -0.3px;
}

.login-portal-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

/* Notice & Info Pill Box on Login */
.report-notice-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 9px 14px;
    margin-bottom: 12px;
    text-align: left;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11.5px;
    color: #1e3a8a;
    line-height: 1.35;
    margin-bottom: 5px;
}

.notice-item:last-child {
    margin-bottom: 0;
}

.notice-item i {
    color: #2563eb;
    font-size: 13px;
    margin-top: 2px;
    flex-shrink: 0;
}

.notice-badge-7days {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}

.notice-hindi {
    font-size: 11.5px;
    color: #3b82f6;
    margin-top: 2px;
    line-height: 1.35;
}

.notice-item-helpdesk {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #bfdbfe;
    align-items: center;
}

.notice-item-helpdesk i.fa-headset {
    color: #059669;
    font-size: 14px;
}

.helpdesk-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.helpdesk-phone {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #10b981;
    color: #ffffff !important;
    padding: 2px 9px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11.5px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
}

.helpdesk-phone:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.35);
}

.helpdesk-phone i {
    color: #ffffff !important;
    font-size: 10px !important;
    margin-top: 0 !important;
}

.helpdesk-sub-en {
    font-size: 11px;
    color: #64748b;
}

.login-card-body-custom {
    padding: 4px 28px 18px;
}

.form-group-custom {
    margin-bottom: 11px;
    text-align: left;
}

.form-label-custom {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-custom {
    width: 100%;
    height: 42px;
    padding: 6px 14px 6px 40px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text-main);
    transition: all 0.2s ease;
    outline: none;
}

.input-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3.5px rgba(120, 14, 0, 0.12);
}

.input-custom:focus + i {
    color: var(--primary);
}

.btn-primary-custom {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #780e00 0%, #a11400 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(120, 14, 0, 0.3);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #580a00 0%, #780e00 100%);
    box-shadow: 0 6px 18px rgba(120, 14, 0, 0.4);
    transform: translateY(-1px);
}

.btn-primary-custom:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(120, 14, 0, 0.25);
}

.alert-error-custom {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alert-error-custom:empty {
    display: none;
}

/* =========================================================
   2. COMMON NAVBAR & BRANDING
   ========================================================= */
.app-header {
    background: linear-gradient(135deg, rgba(120, 14, 0, 0.98) 0%, rgba(84, 8, 0, 0.98) 100%);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 10px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff !important;
    gap: 14px;
}

.header-brand-logo {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-title-block {
    text-align: left;
}

.site-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
    display: block;
    text-transform: uppercase;
}

.site-tagline {
    font-size: 11.5px;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.2px;
    display: block;
}

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

.btn-header-logout {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}

.btn-header-logout:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* =========================================================
   3. PATIENT DASHBOARD / REPORT TABLE
   ========================================================= */
.patient-dashboard-container {
    flex: 1;
    padding: 28px 24px 40px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.patient-welcome-card {
    background: linear-gradient(135deg, #ffffff 0%, #fcf8f8 100%);
    border: 1px solid #fee2e2;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.patient-info-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.patient-avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fee2e2;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 2px 6px rgba(120, 14, 0, 0.1);
}

.patient-welcome-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 4px;
}

.patient-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.patient-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.patient-pill strong {
    color: var(--text-main);
}

.report-card-modern {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.report-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
}

.report-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-card-title i {
    color: var(--primary);
}

.report-count-badge {
    font-size: 12px;
    background: #fee2e2;
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
}

.modern-table-wrapper {
    overflow-x: auto;
}

.modern-report-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.modern-report-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.modern-report-table th {
    padding: 14px 18px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    white-space: nowrap;
}

.modern-report-table td {
    padding: 14px 18px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
}

.modern-report-table tbody tr {
    transition: background-color 0.15s ease;
}

.modern-report-table tbody tr:hover {
    background-color: #f8fafc;
}

.modern-report-table tr.viewed-row {
    background-color: #fcfefe;
}

.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #780e00 0%, #a11400 100%);
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(120, 14, 0, 0.2);
    transition: all 0.2s ease;
}

.btn-download-pdf:hover {
    background: linear-gradient(135deg, #580a00 0%, #780e00 100%);
    box-shadow: 0 4px 12px rgba(120, 14, 0, 0.35);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
}

.status-pill.viewed {
    background: #e0f2fe;
    color: #0369a1;
}

.status-pill.new {
    background: #dcfce7;
    color: #15803d;
}

.dashboard-notice {
    margin-top: 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #166534;
}

.dashboard-notice i {
    font-size: 18px;
    color: #16a34a;
    flex-shrink: 0;
}

/* =========================================================
   4. FOOTER
   ========================================================= */
.app-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 10px 20px;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-muted);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    margin-top: auto;
}

@media (max-width: 768px) {
    .patient-dashboard-container {
        padding: 16px 12px;
    }
    .patient-welcome-card {
        padding: 16px;
    }
    .app-header {
        padding: 8px 14px;
    }
    .btn-header-logout span {
        display: none;
    }
}
