.patient-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.25rem 2rem;
    min-height: calc(100vh - 4rem);
    background: #eff0f2;
}

.patient-page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.patient-page-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3784e5;
    margin-bottom: 0.2rem;
}

.patient-page-title {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 700;
    color: #0f172a;
}

.patient-page-subtitle {
    margin: 0.35rem 0 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.patient-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.patient-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.95rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.patient-btn:hover {
    transform: translateY(-1px);
}

.patient-btn-primary {
    background: linear-gradient(135deg, #3784e5, #2563eb);
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
}

.patient-btn-secondary {
    background: #f8fafc;
    color: #2563eb;
    border-color: #dbeafe;
}

.patient-search-card {
    padding: 1.1rem 1.25rem;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.patient-search-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.patient-search-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: #eef4ff;
    color: #3784e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.patient-search-card h2 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    color: #0f172a;
}

.patient-search-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.86rem;
}

.patient-search-field {
    width: 100%;
}

.patient-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
}

.patient-empty-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 14px;
    background: #eef4ff;
    color: #3784e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.patient-empty-state h3 {
    margin: 0 0 0.35rem;
    color: #0f172a;
    font-size: 1.15rem;
}

.patient-empty-state p {
    margin: 0 0 1rem;
    color: #94a3b8;
    max-width: 420px;
}

.patient-selected-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #eef4ff 0%, #f8fafc 100%);
    border: 1px solid #dbeafe;
    border-radius: 14px;
}

.patient-selected-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.patient-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #3784e5, #2563eb);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.patient-selected-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.1rem;
}

.patient-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.patient-clear-btn:hover {
    background: #f8fafc;
    color: #0f172a;
}

@media (max-width: 768px) {
    .patient-page {
        padding: 0.75rem;
    }

    .patient-page-header {
        flex-direction: column;
    }

    .patient-page-actions {
        width: 100%;
    }

    .patient-btn {
        flex: 1;
        justify-content: center;
    }
}
