/* ==========================================================================
   Om Sai Digital Health Card Stylesheet
   ========================================================================== */

:root {
    --dhc-primary: #0284c7;
    --dhc-primary-dark: #0369a1;
    --dhc-primary-light: #e0f2fe;
    --dhc-secondary: #0d9488;
    --dhc-accent: #f59e0b;
    --dhc-success: #10b981;
    --dhc-danger: #ef4444;
    --dhc-dark: #0f172a;
    --dhc-slate: #475569;
    --dhc-light: #f8fafc;
    --dhc-border: #e2e8f0;
    --dhc-glow: rgba(2, 132, 199, 0.15);
    --dhc-glass-bg: rgba(255, 255, 255, 0.95);
    --dhc-glass-border: rgba(255, 255, 255, 0.4);
}

.dhc-section {
    padding: 20px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6fffa 100%);
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.dhc-container {
    width: 100%;
    max-width: 96%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   STATE 1: LOGIN PORTAL DESIGN
   ========================================================================== */
.dhc-login-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: var(--dhc-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--dhc-glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    transition: all 0.4s ease;
}

.dhc-login-info {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.dhc-login-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dhc-login-info::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dhc-info-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.dhc-info-brand i {
    font-size: 24px;
    color: #2dd4bf;
    text-shadow: 0 0 15px rgba(45, 212, 191, 0.4);
}

.dhc-info-brand span {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dhc-info-features {
    margin: 20px 0;
}

.dhc-info-features h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    color: #ffffff;
}

.dhc-info-features p {
    color: #94a3b8;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.dhc-feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dhc-feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.dhc-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2dd4bf;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.dhc-feature-item:hover .dhc-feature-icon {
    background: #0284c7;
    color: #fff;
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.5);
    transform: translateY(-2px);
}

.dhc-feature-text h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #f8fafc;
}

.dhc-feature-text p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

.dhc-info-footer {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dhc-info-footer i {
    color: #10b981;
}

.dhc-login-form-side {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dhc-form-header {
    margin-bottom: 15px;
}

.dhc-form-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dhc-dark);
    margin-bottom: 5px;
}

.dhc-form-header p {
    font-size: 13px;
    color: var(--dhc-slate);
    margin: 0;
}

.dhc-demo-badge {
    background: var(--dhc-primary-light);
    border: 1px dashed var(--dhc-primary);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dhc-demo-badge span {
    font-size: 12px;
    font-weight: 600;
    color: var(--dhc-primary-dark);
}

.dhc-demo-badge code {
    font-size: 13px;
    color: var(--dhc-dark);
    background: rgba(255, 255, 255, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.dhc-input-group {
    margin-bottom: 20px;
}

.dhc-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dhc-slate);
    margin-bottom: 8px;
}

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

.dhc-input-field-wrapper i.field-icon {
    position: absolute;
    left: 16px;
    color: var(--dhc-slate);
    font-size: 16px;
    transition: color 0.3s ease;
}

.dhc-input-field-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 1.5px solid var(--dhc-border);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: #ffffff;
}

.dhc-input-field-wrapper input:focus {
    border-color: var(--dhc-primary);
    box-shadow: 0 0 0 4px var(--dhc-glow);
}

.dhc-input-field-wrapper input:focus+i.field-icon {
    color: var(--dhc-primary);
}

.dhc-toggle-password {
    position: absolute;
    right: 16px;
    color: var(--dhc-slate);
    cursor: pointer;
    font-size: 15px;
    transition: color 0.3s;
}

.dhc-toggle-password:hover {
    color: var(--dhc-primary);
}

.dhc-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}

.dhc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dhc-slate);
    cursor: pointer;
}

.dhc-checkbox-label input {
    cursor: pointer;
}

.dhc-forgot-link {
    color: var(--dhc-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.dhc-forgot-link:hover {
    color: var(--dhc-primary-dark);
}

.dhc-login-btn {
    width: 100%;
    padding: 14px;
    background: var(--dhc-primary);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.dhc-login-btn:hover {
    background: var(--dhc-primary-dark);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
    transform: translateY(-1px);
}

.dhc-login-btn:active {
    transform: translateY(1px);
}

/* Spinner */
.dhc-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: dhc-spin 0.8s linear infinite;
}

@keyframes dhc-spin {
    to {
        transform: rotate(360deg);
    }
}

.dhc-login-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: var(--dhc-slate);
}

.dhc-login-footer a {
    color: var(--dhc-secondary);
    text-decoration: none;
    font-weight: 600;
}

/* ==========================================================================
   STATE 2: DASHBOARD LAYOUT DESIGN
   ========================================================================= */
.dhc-dashboard {
    display: none;
    /* Initially hidden */
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dhc-dash-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    background: #ffffff;
    border: 1px solid var(--dhc-border);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    min-height: 700px;
}

/* Sidebar Navigation */
.dhc-dash-sidebar {
    background: #f8fafc;
    border-right: 1px solid var(--dhc-border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dhc-sidebar-header {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1.5px solid var(--dhc-border);
    margin-bottom: 25px;
}

.dhc-sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.dhc-sidebar-logo i {
    font-size: 24px;
    color: var(--dhc-primary);
}

.dhc-sidebar-logo span {
    font-size: 16px;
    font-weight: 700;
    color: var(--dhc-dark);
}

.dhc-sidebar-logo-sub {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dhc-slate);
    font-weight: 600;
}

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

.dhc-nav-item button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--dhc-slate);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.dhc-nav-item button:hover {
    background: var(--dhc-primary-light);
    color: var(--dhc-primary-dark);
}

.dhc-nav-item.active button {
    background: var(--dhc-primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}

.dhc-sidebar-footer {
    padding-top: 20px;
    border-top: 1.5px solid var(--dhc-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dhc-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1.5px solid var(--dhc-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--dhc-danger);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dhc-logout-btn:hover {
    background: rgba(239, 68, 68, 0.05);
    border-color: var(--dhc-danger);
}

/* Dashboard Workspace Area */
.dhc-dash-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.dhc-tab-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.dhc-tab-panel.active {
    display: block;
}

/* Tab Header Text */
.dhc-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1.5px solid var(--dhc-border);
}

.dhc-content-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dhc-dark);
    margin: 0;
}

.dhc-content-header p {
    font-size: 13px;
    color: var(--dhc-slate);
    margin: 0;
}

/* Card Widget (Virtual Medical ID Card) */
.dhc-card-container {
    perspective: 1000px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 30px;
}

.dhc-virtual-card {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 20px;
    background: linear-gradient(135deg, #090e17 0%, #1e293b 60%, #0284c7 100%);
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.25);
    padding: 22px 25px;
    color: #ffffff;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dhc-virtual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.12) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* Glass shine line overlay */
.dhc-virtual-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30px;
    height: 200%;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(35deg);
    transition: all 0.6s ease;
    z-index: 2;
}

.dhc-virtual-card:hover::after {
    left: 140%;
}

.dhc-virtual-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.35);
    border-color: rgba(45, 212, 191, 0.3);
}

.dhc-card-bg-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.25) 0%, transparent 70%);
    bottom: -100px;
    right: -50px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.dhc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 3;
    position: relative;
}

.dhc-card-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dhc-card-logo-img {
    height: 32px;
    width: auto;
    display: block;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px 5px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.dhc-card-brand i {
    font-size: 24px;
    color: #2dd4bf;
    text-shadow: 0 0 10px rgba(45, 212, 191, 0.5);
}

.dhc-card-brand-text h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dhc-card-brand-text span {
    font-size: 9px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dhc-card-status-badge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.dhc-card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #aa7c11 100%);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 15px 0 10px 0;
    z-index: 3;
}

.dhc-card-chip::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.dhc-card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 10px;
    z-index: 3;
    position: relative;
}

.dhc-card-patient-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dhc-card-id {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    color: #e2e8f0;
    font-family: monospace;
}

.dhc-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dhc-card-meta {
    display: flex;
    gap: 15px;
    font-size: 10px;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.dhc-card-meta strong {
    color: #2dd4bf;
    font-weight: 600;
}

.dhc-card-qr {
    background: #ffffff;
    padding: 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid #2dd4bf;
    transition: all 0.3s ease;
}

.dhc-virtual-card:hover .dhc-card-qr {
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.5);
    border-color: #ffffff;
}

.dhc-card-qr svg,
.dhc-card-qr img {
    width: 54px;
    height: 54px;
    display: block;
}

/* Overview Vitals Dashboard Grid */
.dhc-vitals-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.dhc-vital-card {
    background: var(--dhc-light);
    border: 1px solid var(--dhc-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.dhc-vital-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    border-color: var(--dhc-primary-light);
}

.dhc-vital-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.dhc-vital-icon.blue {
    background: #e0f2fe;
    color: #0284c7;
}

.dhc-vital-icon.red {
    background: #fee2e2;
    color: #ef4444;
}

.dhc-vital-icon.teal {
    background: #ccfbf1;
    color: #0d9488;
}

.dhc-vital-info {
    display: flex;
    flex-direction: column;
}

.dhc-vital-label {
    font-size: 12px;
    color: var(--dhc-slate);
    font-weight: 500;
}

.dhc-vital-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--dhc-dark);
    margin: 2px 0;
}

.dhc-vital-trend {
    font-size: 11px;
    font-weight: 500;
    color: var(--dhc-success);
}

.dhc-vital-trend.normal {
    color: var(--dhc-success);
}

/* Fast heartbeat keyframe animation */
@keyframes heart-pulse {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.15);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    60% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

.dhc-vital-card:hover .fa-heartbeat {
    animation: heart-pulse 1.2s infinite;
}

/* Quick Information and Timeline */
.dhc-info-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.dhc-info-box-card {
    background: #ffffff;
    border: 1px solid var(--dhc-border);
    border-radius: 16px;
    padding: 20px;
}

.dhc-info-box-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dhc-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dhc-info-box-card h3 i {
    color: var(--dhc-primary);
}

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

.dhc-records-table tr {
    border-bottom: 1px solid var(--dhc-border);
}

.dhc-records-table tr:last-child {
    border-bottom: none;
}

.dhc-records-table td {
    padding: 12px 8px;
    font-size: 13.5px;
}

.dhc-records-table td.label-td {
    font-weight: 600;
    color: var(--dhc-slate);
    width: 35%;
}

.dhc-records-table td.val-td {
    color: var(--dhc-dark);
}

/* Medical History Timeline */
.dhc-timeline {
    position: relative;
    padding-left: 20px;
}

.dhc-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: var(--dhc-border);
}

.dhc-timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.dhc-timeline-item:last-child {
    padding-bottom: 0;
}

.dhc-timeline-item::after {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--dhc-primary);
    transition: all 0.3s;
}

.dhc-timeline-item:hover::after {
    background: var(--dhc-primary);
    transform: scale(1.2);
}

.dhc-timeline-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--dhc-primary);
    margin-bottom: 4px;
}

.dhc-timeline-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dhc-dark);
    margin-bottom: 3px;
}

.dhc-timeline-desc {
    font-size: 12px;
    color: var(--dhc-slate);
    margin: 0;
    line-height: 1.4;
}

.dhc-doctor-tag {
    display: inline-block;
    font-size: 11px;
    background: var(--dhc-primary-light);
    color: var(--dhc-primary-dark);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 5px;
    font-weight: 500;
}

/* Medical History Section specific lists */
.dhc-med-history-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.dhc-history-card-item {
    border: 1px solid var(--dhc-border);
    border-radius: 16px;
    padding: 20px;
    transition: border-color 0.3s;
}

.dhc-history-card-item:hover {
    border-color: var(--dhc-primary);
}

.dhc-hist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--dhc-border);
}

.dhc-hist-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dhc-hist-icon {
    width: 36px;
    height: 36px;
    background: var(--dhc-primary-light);
    color: var(--dhc-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.dhc-hist-title-text h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--dhc-dark);
}

.dhc-hist-title-text span {
    font-size: 11px;
    color: var(--dhc-slate);
}

.dhc-hist-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--dhc-primary);
}

.dhc-prescription-list {
    margin-top: 15px;
    background: var(--dhc-light);
    border-radius: 10px;
    padding: 15px;
}

.dhc-prescription-list h5 {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--dhc-dark);
    border-bottom: 1px solid var(--dhc-border);
    padding-bottom: 5px;
}

.dhc-prescription-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--dhc-border);
}

.dhc-prescription-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dhc-presc-med {
    font-weight: 600;
    color: var(--dhc-dark);
}

.dhc-presc-freq {
    color: var(--dhc-slate);
}

.dhc-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.dhc-badge.allergy {
    background: #fee2e2;
    color: #ef4444;
}

/* Radiology Scans Section */
.dhc-scans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dhc-scan-card {
    background: #ffffff;
    border: 1px solid var(--dhc-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.dhc-scan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--dhc-primary);
}

.dhc-scan-thumb {
    height: 160px;
    background: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dhc-scan-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.5s ease;
}

.dhc-scan-card:hover .dhc-scan-thumb img {
    transform: scale(1.05);
    opacity: 1;
}

.dhc-scan-overlay-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.dhc-scan-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dhc-scan-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--dhc-dark);
}

.dhc-scan-info p {
    font-size: 12px;
    color: var(--dhc-slate);
    margin: 0 0 15px 0;
}

.dhc-scan-action-btn {
    width: 100%;
    padding: 10px;
    background: var(--dhc-light);
    border: 1px solid var(--dhc-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--dhc-primary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dhc-scan-card:hover .dhc-scan-action-btn {
    background: var(--dhc-primary);
    border-color: var(--dhc-primary);
    color: #ffffff;
}

/* Interactive Dicom Viewer Overlay */
.dhc-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 13, 22, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    color: #f1f5f9;
}

.dhc-viewer-container {
    width: 100%;
    max-width: 900px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.dhc-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dhc-viewer-title-area h3 {
    margin: 0 0 2px 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.dhc-viewer-title-area span {
    font-size: 11px;
    color: #94a3b8;
}

.dhc-viewer-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.dhc-viewer-close:hover {
    color: #ffffff;
}

.dhc-viewer-toolbar {
    background: #111827;
    padding: 10px 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dhc-tool-btn {
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.dhc-tool-btn:hover {
    background: #374151;
    color: #ffffff;
}

.dhc-tool-btn.active {
    background: var(--dhc-primary);
    color: #ffffff;
}

.dhc-viewer-body {
    position: relative;
    background: #000000;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dhc-scan-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.dhc-scan-canvas-wrapper:active {
    cursor: grabbing;
}

.dhc-viewer-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.1s ease-out, filter 0.1s ease-out;
    transform-origin: center center;
    user-select: none;
    pointer-events: none;
}

/* DICOM Overlay Metrics */
.dhc-viewer-overlay-item {
    position: absolute;
    font-size: 11px;
    color: #10b981;
    font-family: monospace;
    pointer-events: none;
    text-shadow: 1px 1px 2px #000;
}

.dhc-viewer-overlay-item.top-left {
    top: 15px;
    left: 15px;
}

.dhc-viewer-overlay-item.top-right {
    top: 15px;
    right: 15px;
    text-align: right;
}

.dhc-viewer-overlay-item.bottom-left {
    bottom: 15px;
    left: 15px;
}

.dhc-viewer-overlay-item.bottom-right {
    bottom: 15px;
    right: 15px;
    text-align: right;
}

.dhc-viewer-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(16, 185, 129, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(16, 185, 129, 0.08) 1px, transparent 1px);
    pointer-events: none;
    display: none;
    /* Controlled by toggle */
}

.dhc-viewer-ruler-overlay {
    position: absolute;
    width: 150px;
    height: 4px;
    background: #10b981;
    bottom: 40px;
    right: 40px;
    display: none;
    pointer-events: none;
    font-family: monospace;
}

.dhc-viewer-ruler-overlay::before {
    content: '';
    position: absolute;
    left: 0;
    top: -5px;
    bottom: -5px;
    width: 2px;
    background: #10b981;
}

.dhc-viewer-ruler-overlay::after {
    content: '10 cm';
    position: absolute;
    left: 50%;
    top: -18px;
    transform: translateX(-50%);
    font-size: 10px;
    color: #10b981;
}

.dhc-viewer-footer {
    background: #1e293b;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    color: #94a3b8;
}

/* Lab Reports Section */
.dhc-labs-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dhc-chart-container {
    background: #ffffff;
    border: 1px solid var(--dhc-border);
    border-radius: 16px;
    padding: 20px;
}

.dhc-chart-container h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dhc-dark);
    margin-bottom: 20px;
}

.dhc-lab-table-wrapper {
    background: #ffffff;
    border: 1px solid var(--dhc-border);
    border-radius: 16px;
    overflow: hidden;
}

.dhc-lab-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dhc-lab-table th {
    background: var(--dhc-light);
    color: var(--dhc-slate);
    font-weight: 600;
    font-size: 13px;
    padding: 14px 18px;
    border-bottom: 1.5px solid var(--dhc-border);
}

.dhc-lab-table td {
    padding: 14px 18px;
    font-size: 13.5px;
    color: var(--dhc-dark);
    border-bottom: 1px solid var(--dhc-border);
}

.dhc-lab-table tr:last-child td {
    border-bottom: none;
}

.dhc-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

.dhc-status-indicator.normal {
    background: rgba(16, 185, 129, 0.1);
    color: var(--dhc-success);
}

.dhc-status-indicator.high {
    background: rgba(239, 68, 68, 0.1);
    color: var(--dhc-danger);
}

.dhc-status-indicator.low {
    background: rgba(2, 132, 199, 0.1);
    color: var(--dhc-primary);
}

/* Lab Sparkline Trend */
.dhc-sparkline {
    width: 70px;
    height: 20px;
    stroke: var(--dhc-primary);
    stroke-width: 2;
    fill: none;
}

/* Overview Two-Column Workspace Layout */
.dhc-overview-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

/* Side Cards (Subscription & Storage) */
.dhc-side-card {
    background: #ffffff;
    border: 1px solid var(--dhc-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.dhc-side-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dhc-dark);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.dhc-side-card h3 i {
    color: var(--dhc-primary);
}

.dhc-sub-price-tag {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--dhc-border);
}

.dhc-sub-price-tag .sub-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--dhc-primary-dark);
}

.dhc-sub-price-tag .sub-period {
    font-size: 13px;
    color: var(--dhc-slate);
    font-weight: 500;
}

.dhc-records-table.sub-table td {
    padding: 8px 0;
    font-size: 12.5px;
}

.dhc-sub-btn {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: var(--dhc-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dhc-sub-btn:hover {
    background: var(--dhc-primary-dark);
}

.dhc-sub-btn.secondary {
    background: var(--dhc-light);
    border: 1px solid var(--dhc-border);
    color: var(--dhc-slate);
}

.dhc-sub-btn.secondary:hover {
    background: var(--dhc-border);
    color: var(--dhc-dark);
}

/* Storage progress bar */
.dhc-storage-metric {
    font-size: 12px;
    color: var(--dhc-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.dhc-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--dhc-light);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--dhc-border);
}

.dhc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--dhc-primary) 0%, var(--dhc-secondary) 100%);
    border-radius: 4px;
}

.dhc-chart-container h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dhc-dark);
    margin-bottom: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive CSS overrides */
@media (max-width: 1200px) {
    .dhc-overview-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .dhc-login-wrapper {
        grid-template-columns: 1fr;
    }

    .dhc-login-info {
        display: none;
        /* Hide info section on smaller screens */
    }

    .dhc-dash-grid {
        grid-template-columns: 1fr;
    }

    .dhc-dash-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--dhc-border);
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        padding: 20px;
    }

    .dhc-sidebar-header {
        text-align: left;
        margin: 0 20px 0 0;
        padding: 0 20px 0 0;
        border-bottom: none;
        border-right: 1.5px solid var(--dhc-border);
    }

    .dhc-nav-list {
        flex-direction: row;
        gap: 10px;
        flex-grow: 1;
    }

    .dhc-sidebar-footer {
        padding: 0;
        border: none;
        margin-left: 20px;
    }

    .dhc-scans-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .dhc-section {
        padding: 30px 0;
    }

    .dhc-login-form-side {
        padding: 30px 20px;
    }

    .dhc-dash-sidebar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .dhc-sidebar-header {
        border: none;
        padding: 0;
        margin: 0;
    }

    .dhc-nav-list {
        flex-direction: column;
        width: 100%;
    }

    .dhc-sidebar-footer {
        margin: 0;
        width: 100%;
    }

    .dhc-vitals-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dhc-info-grid-2col {
        grid-template-columns: 1fr;
    }

    .dhc-scans-grid {
        grid-template-columns: 1fr;
    }

    .dhc-viewer-toolbar {
        gap: 4px;
        padding: 8px 12px;
    }

    .dhc-tool-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .dhc-viewer-body {
        height: 350px;
    }
}