body { background: #f4f6f9; color: #1f2937; font-size: .92rem; }
.admin-sidebar { width: 250px; background: #111827; color: #dbe4f0; position: sticky; top: 0; height: 100vh; }
.brand { font-size: 1.12rem; font-weight: 800; color: #fff; }
.admin-sidebar .nav-link { color: #cbd5e1; border-radius: .45rem; padding: .55rem .7rem; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { color: #fff; background: #1f766e; }
.topbar { min-height: 58px; position: sticky; top: 0; z-index: 10; }
.content { max-width: 1500px; margin: 0 auto; }
.content > .card, .content > .row, .content > .grid, .content > .table-responsive, .content > .table-wrap { margin-bottom: 1rem; }
.card { border: 1px solid #e5e7eb; box-shadow: 0 8px 22px rgba(15, 23, 42, .04); border-radius: .7rem; }
.card:not([class*="p-"]) { padding: 1rem; }
.table { --bs-table-bg: #fff; }
.table td, .table th { padding: .7rem .8rem; }
.table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; background: #f8fafc; }
.form-control, .form-select, .btn { border-radius: .45rem; }
.page-heading { display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.avatar { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; background: #e5e7eb; }
.min-w-0 { min-width: 0; }
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-title { display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.toolbar, .actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.toolbar { margin-bottom: 1rem; padding: .2rem 0; }
.toolbar input, .toolbar select, .field input, .field select, .field textarea { border: 1px solid #ced4da; border-radius: .45rem; padding: .35rem .6rem; font-size: .875rem; background: #fff; }
.field { display: grid; gap: .35rem; margin-bottom: .2rem; }
.field label { font-weight: 600; font-size: .82rem; color: #334155; }
.field input, .field select, .field textarea { width: 100%; }
.table-wrap { overflow-x: auto; border: 1px solid #e5e7eb; border-radius: .55rem; background: #fff; margin-bottom: 1rem; }
.page-title h1, .page-heading h1 { margin: 0; font-size: 1.45rem; font-weight: 750; }
.page-title p, .page-heading p { margin-top: .25rem; }
.pagination { margin-top: .75rem; }
.form { gap: .85rem; }
.stat { min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; }
.stat strong { font-size: 1.8rem; }
.badge.open { background: #dcfce7; color: #166534; }
.badge.progress { background: #fef3c7; color: #92400e; }
.badge.closed { background: #e5e7eb; color: #374151; }
.choices { margin-bottom: 0; }
.choices__inner { min-height: 38px; border: 1px solid #ced4da; border-radius: .45rem; background: #fff; font-size: .875rem; }
.choices__list--multiple .choices__item { background: #0d6efd; border-color: #0d6efd; border-radius: 999px; }
select.multi-select { min-height: 96px; }
.select2-container--bootstrap-5 .select2-selection { min-height: 38px; font-size: .875rem; border-radius: .45rem; }
.select2-container--bootstrap-5 .select2-dropdown { border-color: #ced4da; border-radius: .45rem; }
.doctor-option { padding: .25rem 0; line-height: 1.25; }
.doctor-option__name { color: #0f172a; font-weight: 700; }
.doctor-option__meta, .doctor-option__tags { color: #64748b; font-size: .78rem; margin-top: .15rem; }
.follow-up-modal { display: none; position: fixed; inset: 0; z-index: 1050; }
.follow-up-modal.is-open { display: block; }
.follow-up-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .56); }
.follow-up-modal__dialog { position: relative; width: min(760px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow-y: auto; margin: 1rem auto; background: #fff; border-radius: .7rem; border: 1px solid #e5e7eb; box-shadow: 0 22px 70px rgba(15, 23, 42, .24); padding: 1rem; }
.follow-up-modal__header, .follow-up-modal__footer { display: flex; gap: .75rem; align-items: center; justify-content: space-between; }
.follow-up-modal__header { margin-bottom: 1rem; }
.follow-up-modal__footer { margin-top: .25rem; }
.follow-up-history { border-top: 1px solid #e5e7eb; margin-top: 1rem; padding-top: 1rem; }
.follow-up-history__list { display: grid; gap: .7rem; }
.follow-up-history__item { border: 1px solid #e5e7eb; border-radius: .55rem; padding: .75rem; background: #f8fafc; }
.follow-up-history__title { color: #0f172a; font-weight: 750; }
.login-screen {
    padding: 1.25rem;
    background:
        radial-gradient(1400px 700px at 100% 0%, rgba(15, 118, 110, .18), transparent 45%),
        radial-gradient(900px 500px at 0% 100%, rgba(13, 110, 253, .14), transparent 55%),
        #f4f6f9;
}
.login-shell {
    width: min(960px, 100%);
    min-height: min(680px, calc(100vh - 2.5rem));
    margin: 0 auto;
    border: 1px solid #dbe1ea;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    background: #fff;
    box-shadow: 0 24px 56px rgba(15, 23, 42, .16);
}
.login-brand-panel {
    padding: 2rem;
    color: #ecfeff;
    background:
        linear-gradient(155deg, rgba(15, 118, 110, .94), rgba(17, 94, 89, .96)),
        linear-gradient(30deg, rgba(13, 110, 253, .24), transparent 40%);
    display: grid;
    align-content: start;
    gap: .95rem;
}
.login-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .2);
    font-size: 1.25rem;
}
.login-brand-title {
    margin: 0;
    font-size: 1.85rem;
    line-height: 1.2;
    font-weight: 800;
    color: #fff;
}
.login-brand-copy {
    margin: 0;
    color: rgba(236, 254, 255, .95);
    max-width: 34ch;
    line-height: 1.45;
}
.login-brand-stats {
    display: grid;
    gap: .6rem;
    margin-top: .6rem;
}
.login-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .9rem;
    padding: .55rem .7rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
}
.login-stat span {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: rgba(236, 254, 255, .88);
}
.login-stat strong {
    font-size: .85rem;
    color: #fff;
}
.login-form-panel {
    padding: 2rem;
    display: grid;
    align-content: center;
    gap: .9rem;
}
.login-form-header h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
}
.login-form .field input {
    min-height: 42px;
}
.login-form .field input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .15);
    outline: none;
}
.login-remember {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #334155;
    font-size: .86rem;
}
.login-submit {
    width: 100%;
    justify-content: center;
    min-height: 42px;
}
@media (max-width: 920px) {
    .d-flex.min-vh-100 { display: block !important; }
    .admin-sidebar { width: 100%; height: auto; position: static; }
    .admin-sidebar .nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topbar { position: static; }
    .content { padding: 1rem !important; }
    .page-heading, .page-title { align-items: flex-start; flex-direction: column; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .follow-up-modal__dialog { width: calc(100vw - 1rem); margin: .5rem auto; }
    .follow-up-modal__footer { align-items: stretch; flex-direction: column; }
    .login-screen { padding: .75rem; }
    .login-shell {
        min-height: auto;
        grid-template-columns: 1fr;
    }
    .login-brand-panel, .login-form-panel { padding: 1.1rem; }
}
.fs-16{
    font-size: 16px;
}
.fs-18{
    font-size: 18px;
}
