:root {
    --bg: #f4f7fb;
    --card: #ffffff;
    --line: #dbe4f0;
    --text: #19324d;
    --muted: #6c7f95;
    --primary: #2a7de1;
    --primary-dark: #1f63b5;
    --secondary: #2bb673;
    --danger: #d9534f;
    --danger-dark: #b33e39;
    --light: #eef4fb;
    --shadow: 0 14px 36px rgba(28, 61, 99, 0.10);
    --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
a { text-decoration: none; }
.login-body { min-height: 100vh; background: linear-gradient(140deg, #eef5ff 0%, #f7fbff 50%, #eefaf5 100%); }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card, .card, .sidebar, .modal-dialog { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.login-card { width: 100%; max-width: 440px; padding: 34px; border: 1px solid rgba(42, 125, 225, 0.12); }
.brand-pill { display: inline-block; padding: 8px 14px; border-radius: 999px; background: rgba(42, 125, 225, 0.10); color: var(--primary); font-weight: 700; letter-spacing: 0.4px; margin-bottom: 14px; }
.brand-block h1, .topbar h1, .sidebar h2 { margin: 0 0 8px; }
.brand-block p, .muted { color: var(--muted); margin: 0; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="date"], textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--text); outline: none; }
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(42, 125, 225, 0.10); }
textarea { resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 700; cursor: pointer; transition: 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-full { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-dark); }
.btn-light { background: var(--light); color: var(--text); }
.btn-small { padding: 8px 12px; font-size: 13px; }
.alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 700; }
.alert-success { background: rgba(43, 182, 115, 0.12); color: #1f7d50; }
.alert-danger { background: rgba(217, 83, 79, 0.12); color: #9f2e2b; }
.page-shell { display: grid; grid-template-columns: 280px 1fr; gap: 22px; padding: 22px; min-height: 100vh; }
.sidebar { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.sidebar-card { margin: 18px 0; padding: 16px; background: #f7fbff; border: 1px solid var(--line); border-radius: 14px; }
.small-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.user-name { font-size: 18px; font-weight: 700; }
.sidebar-actions { display: grid; gap: 12px; }
.content-area { display: flex; flex-direction: column; gap: 18px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.stats-row { display: flex; gap: 14px; }
.stat-card { background: var(--card); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); min-width: 160px; }
.stat-title { color: var(--muted); font-size: 13px; }
.stat-value { font-size: 28px; font-weight: 700; margin-top: 6px; }
.card { padding: 20px; }
.search-form { display: flex; align-items: flex-end; gap: 14px; }
.grow { flex: 1; }
.search-buttons { display: flex; gap: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1100px; }
thead th { text-align: left; font-size: 13px; color: var(--muted); background: #f7fbff; border-bottom: 1px solid var(--line); padding: 14px 12px; }
tbody td { padding: 14px 12px; border-bottom: 1px solid #edf2f7; vertical-align: top; font-size: 14px; }
tbody tr:hover { background: #fbfdff; }
.empty-state { text-align: center; color: var(--muted); padding: 28px; }
.action-buttons { display: flex; gap: 8px; align-items: center; }
.action-buttons form { margin: 0; }
.badge { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-success { background: rgba(43, 182, 115, 0.12); color: #1f7d50; }
.badge-danger { background: rgba(217, 83, 79, 0.12); color: #9f2e2b; }
.modal { position: fixed; inset: 0; background: rgba(15, 31, 49, 0.55); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 1000; }
.modal.show { display: flex; }
.modal-dialog { width: 100%; max-width: 760px; max-height: 92vh; overflow: auto; }
.modal-dialog.modal-lg { max-width: 980px; }
.modal-header, .modal-footer { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-footer { border-bottom: 0; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { margin: 0; }
.modal-close { background: transparent; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-body { padding: 20px 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.full-width { grid-column: 1 / -1; }
.checkbox-group label { display: inline-flex; gap: 10px; align-items: center; }
.checkbox-group input { width: auto; }
.required-mark { color: #d9534f !important; font-weight: 700; }
.required-note { margin-bottom: 0; color: var(--muted); font-size: 13px; }
input[type="file"] { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--text); }
.image-preview-wrap { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.doctor-preview { width: 120px; height: 120px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); background: #f7fbff; }
.image-path { font-size: 12px; color: var(--muted); word-break: break-all; }
.form-group label span.required-mark { color: #d9534f !important; }
.doctor-table { min-width: 980px; }
.speciality-picker { position: relative; }
.speciality-dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; max-height: 220px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; }
.speciality-option { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: var(--text); padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.speciality-option:hover, .speciality-option.selected { background: #eef5ff; color: var(--primary-dark); }
.speciality-empty { padding: 10px 12px; color: var(--muted); font-size: 13px; }
.speciality-picker.open .speciality-search { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(42, 125, 225, 0.10); }
.hidden { display: none !important; }
@media (max-width: 992px) { .page-shell { grid-template-columns: 1fr; } .sidebar { gap: 18px; } .topbar { flex-direction: column; } .search-form { flex-direction: column; align-items: stretch; } .search-buttons { width: 100%; } .search-buttons .btn { flex: 1; } }
@media (max-width: 700px) { .login-card { padding: 24px; } .page-shell { padding: 14px; gap: 14px; } .card, .sidebar { padding: 16px; } .form-grid { grid-template-columns: 1fr; } .modal-dialog, .modal-dialog.modal-lg { max-width: 100%; } .modal-header, .modal-body, .modal-footer { padding-left: 16px; padding-right: 16px; } .action-buttons { flex-direction: column; align-items: stretch; } }
