/* Opido admin — compact, professional, medium type */

:root {
    --opido-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --opido-text: #2c3340;
    --opido-muted: #6b7280;
    --opido-border: #e4e8ee;
    --opido-surface: #ffffff;
    --opido-page: #f3f5f8;
    --opido-header: #163a52;
    --opido-header-hover: rgba(255, 255, 255, 0.08);
    --opido-primary: #2d7aa8;
    --opido-sidebar-w: 220px;
    --opido-header-h: 56px;
    --opido-radius: 6px;
}

html {
    font-size: 14px;
}

body {
    font-family: var(--opido-font) !important;
    font-size: 14px;
    line-height: 1.5;
    color: var(--opido-text);
    background-color: var(--opido-page);
    letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6,
.card-title,
.page-title-box h4 {
    font-family: var(--opido-font);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1a2332;
}

.page-title-box h4,
.page-title-box .font-size-18,
h4.font-size-18 {
    font-size: 16px !important;
}

h5 {
    font-size: 14px;
}

p {
    margin-bottom: 0.6rem;
}

a {
    text-decoration: none;
}

/* ---------- Header ---------- */
#page-topbar {
    box-shadow: 0 1px 0 var(--opido-border);
}

body[data-topbar="dark"] #page-topbar {
    background-color: var(--opido-header) !important;
}

.navbar-header {
    height: var(--opido-header-h);
    padding: 0 12px 0 0;
}

.navbar-brand-box {
    width: var(--opido-sidebar-w);
    padding: 0 12px;
}

.logo {
    line-height: var(--opido-header-h);
}

.navbar-brand-box .logo img {
    height: 32px !important;
    max-height: 32px;
    width: auto;
}

.header-item {
    height: var(--opido-header-h) !important;
    font-size: 13px !important;
}

#vertical-menu-btn {
    height: var(--opido-header-h);
    font-size: 20px !important;
    padding: 0 12px !important;
    color: rgba(255, 255, 255, 0.9);
}

.header-profile-user {
    height: 28px;
    width: 28px;
}

#page-topbar .header-nav-btn,
#page-topbar .notification-step {
    height: auto !important;
    min-height: 0;
    padding: 5px 10px !important;
    margin: 0 3px !important;
    font-size: 12.5px !important;
    font-weight: 500;
    line-height: 1.3;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
}

#page-topbar .header-nav-btn:hover,
#page-topbar .notification-step:hover {
    background: var(--opido-header-hover) !important;
}

#page-topbar .btn-danger.header-nav-btn,
#page-topbar .btn-danger.notification-step {
    background: #c23b4e !important;
    border-color: #c23b4e !important;
}

#page-topbar .dropdown-menu {
    font-size: 13px;
    border: 1px solid var(--opido-border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    border-radius: var(--opido-radius);
}

.notification-item {
    padding: 8px 12px;
}

.notification-item h6 {
    font-size: 13px !important;
}

.dropdown-item {
    font-size: 13px;
    padding: 6px 14px;
}

/* ---------- Sidebar ---------- */
.vertical-menu {
    width: var(--opido-sidebar-w);
    top: var(--opido-header-h);
    box-shadow: 1px 0 0 var(--opido-border);
}

.main-content {
    margin-left: var(--opido-sidebar-w);
}

.page-content {
    padding: calc(var(--opido-header-h) + 16px) 12px 52px 12px;
}

#sidebar-menu {
    padding: 8px 0 20px;
}

#sidebar-menu ul li a {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
}

#sidebar-menu ul li a i {
    font-size: 16px;
    min-width: 1.4rem;
}

#sidebar-menu .menu-title {
    display: block !important;
    padding: 12px 16px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9aa3af;
}

.footer {
    left: var(--opido-sidebar-w);
    height: 44px;
    padding: 12px;
    font-size: 12.5px;
}

body.vertical-collpsed .main-content {
    margin-left: 70px;
}

body.vertical-collpsed .footer {
    left: 70px;
}

@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
    }

    .footer {
        left: 0;
    }

    .navbar-brand-box {
        width: auto;
    }
}

/* ---------- Cards & page chrome ---------- */
.card {
    border: 1px solid var(--opido-border) !important;
    border-radius: var(--opido-radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    margin-bottom: 16px;
}

.card-body {
    padding: 0.9rem 1rem;
}

.card-header {
    padding: 0.65rem 1rem;
    font-size: 13.5px;
    font-weight: 600;
    background: #fafbfc;
    border-bottom: 1px solid var(--opido-border);
}

.page-title-box {
    padding-bottom: 12px;
}

.breadcrumb {
    font-size: 12.5px;
}

.breadcrumb-item + .breadcrumb-item::before {
    font-size: 12px;
}

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--opido-font);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    padding: 0.32rem 0.75rem;
    border-radius: 4px;
    text-transform: none !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    letter-spacing: 0;
}

.btn + .btn {
    margin-left: 6px !important;
}

.btn-group .btn + .btn,
.btn-group-sm .btn + .btn,
.input-group .btn {
    margin-left: 0 !important;
}

.btn-sm,
.btn-group-sm > .btn {
    font-size: 12.5px;
    padding: 0.2rem 0.55rem;
}

.btn-lg,
.btn-group-lg > .btn {
    font-size: 14px;
    padding: 0.45rem 1rem;
}

.btn-primary {
    background-color: var(--opido-primary);
    border-color: var(--opido-primary);
}

.waves-effect {
    display: inline-flex;
    align-items: center;
}

/* ---------- Forms ---------- */
.form-label,
label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: #3d4654;
}

.form-control,
.form-select,
.select2-container .select2-selection--single,
.input-group-text {
    font-size: 13.5px;
    min-height: 34px;
    padding: 0.28rem 0.65rem;
    border-color: #d7dee6;
    border-radius: 4px;
}

.form-control:focus,
.form-select:focus {
    border-color: #7eb3d1;
    box-shadow: 0 0 0 3px rgba(45, 122, 168, 0.12);
}

.form-check-label {
    font-size: 13px;
}

.mb-3 {
    margin-bottom: 0.85rem !important;
}

/* ---------- Tables ---------- */
.table {
    font-size: 13px;
    color: var(--opido-text);
}

.table > :not(caption) > * > * {
    padding: 0.42rem 0.65rem;
    vertical-align: middle;
}

.table thead th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #5b6472;
    background: #f7f9fb;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.table-bordered {
    border-color: var(--opido-border);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #fafbfc;
}

.table-hover > tbody > tr:hover > * {
    background-color: #f0f5f9;
}

.table.small,
table.small,
.table [style*="font-size:12px"],
.table [style*="font-size:11px"] {
    font-size: 13px !important;
}

.badge {
    font-size: 11.5px;
    font-weight: 500;
    padding: 0.28em 0.55em;
    border-radius: 4px;
}

.table .badge,
.card .badge,
.card-body .badge {
    position: static;
}

/* ---------- DataTables ---------- */
.dataTables_wrapper {
    font-size: 13px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    font-size: 13px;
    padding-top: 0.5rem;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    font-size: 13px;
    height: 32px;
    padding: 0.2rem 0.5rem;
    border: 1px solid #d7dee6;
    border-radius: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.2rem 0.55rem !important;
    font-size: 13px !important;
}

/* ---------- Select2 / UI widgets ---------- */
.select2-container--default .select2-selection--single {
    height: 34px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px;
    font-size: 13.5px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px;
}

.select2-results__option {
    font-size: 13px;
    padding: 6px 10px;
}

.ui-datepicker {
    font-size: 13px;
    font-family: var(--opido-font);
}

/* ---------- Header dropdowns / alerts ---------- */
.alert {
    font-size: 13px;
    padding: 0.55rem 0.85rem;
}

.modal-title {
    font-size: 15px;
}

.modal-body {
    font-size: 13.5px;
    padding: 0.9rem 1rem;
}

.modal-header,
.modal-footer {
    padding: 0.65rem 1rem;
}

/* ---------- Stat cards ---------- */
.card-content .font-size-20 {
    font-size: 18px !important;
}

.avatar-title {
    font-size: 14px;
}

/* ---------- Marketing page overrides ---------- */
.marketing-table-card {
    border: 1px solid var(--opido-border) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    border-radius: var(--opido-radius) !important;
}

.marketing-table-card .card-header {
    background: #163a52 !important;
    padding: 0.65rem 1rem !important;
    font-size: 13.5px;
}

.marketing-table-card .table thead th,
.marketing-table-card .table tbody td {
    padding: 0.42rem 0.65rem !important;
    font-size: 13px;
}

.billing-card {
    background: #1b6b62 !important;
    border-radius: var(--opido-radius) !important;
}

.billing-card .card-body {
    padding: 0.9rem 1rem !important;
}

/* ---------- Login ---------- */
.login-page {
    min-height: 100vh;
    margin: 0;
    font-family: var(--opido-font);
    font-size: 14px;
    color: var(--opido-text);
    background-color: #0c2433;
    background-image: url("../images/bg-1.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.login-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
    background: rgba(12, 36, 51, 0.55);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 28px 28px 24px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.login-card-head {
    text-align: center;
}

.login-card-logo {
    display: block;
    height: 42px;
    width: auto;
    max-width: 180px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.login-brand-name {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #163a52;
}

.login-card-head h2 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #1a2332;
}

.login-card-head p {
    margin: 0 0 18px;
    font-size: 13.5px;
    color: var(--opido-muted);
}

.login-card .form-label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.login-field {
    position: relative;
}

.login-field > i:first-child {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #8b95a3;
    pointer-events: none;
}

.login-field .form-control {
    height: 40px;
    min-height: 40px;
    padding: 0.4rem 2.4rem 0.4rem 2.15rem;
    font-size: 14px;
    border-color: #d7dee6;
    border-radius: 5px;
}

.login-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #8b95a3;
    cursor: pointer;
}

.login-toggle:hover {
    color: var(--opido-text);
}

.login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login-meta .form-check-label {
    font-size: 13px;
}

.login-submit {
    height: 40px;
    font-size: 14px !important;
    font-weight: 600 !important;
    background-color: var(--opido-header) !important;
    border-color: var(--opido-header) !important;
}

.login-submit:hover {
    background-color: #0f2a3d !important;
    border-color: #0f2a3d !important;
}

.login-card .alert {
    font-size: 13px;
    padding: 0.5rem 0.75rem;
}

/* ---------- Dashboard ---------- */
.dash-subtitle {
    font-size: 12.5px;
    margin-top: 2px;
}

.dash-stat-link,
.dash-stat-link:hover {
    color: inherit;
    text-decoration: none;
}

.dash-stat {
    margin-bottom: 12px;
}

.dash-stat .card-body {
    padding: 0.85rem 0.95rem;
    position: relative;
}

.dash-stat-icon {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.dash-stat-label,
.dash-mini .dash-stat-label {
    margin: 0;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--opido-muted);
}

.dash-stat-value {
    margin: 4px 0 2px;
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.03em;
    color: #1a2332;
}

.dash-stat-meta {
    margin: 0;
    font-size: 12px;
    color: var(--opido-muted);
    font-weight: 400;
}

.dash-mini {
    margin-bottom: 12px;
}

.dash-mini .card-body {
    padding: 0.7rem 0.85rem;
}

.dash-mini h5 {
    font-size: 15px;
    font-weight: 650;
}

.dash-legend {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--opido-muted);
}

.dash-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.dash-dot-orders { background: #163a52; }
.dash-dot-appts { background: #2d7aa8; }

.dash-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 160px;
    padding-top: 8px;
}

.dash-chart-col {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.dash-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 130px;
    width: 100%;
    justify-content: center;
}

.dash-bar {
    display: block;
    width: 6px;
    min-height: 2px;
    border-radius: 2px 2px 0 0;
}

.dash-bar-orders { background: #163a52; }
.dash-bar-appts { background: #2d7aa8; }

.dash-chart-label {
    margin-top: 6px;
    font-size: 10px;
    color: var(--opido-muted);
    white-space: nowrap;
    transform: scale(0.92);
}

.dash-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 4px;
}

.dash-progress {
    height: 5px;
    background: #eef1f4;
    border-radius: 4px;
}

.dash-status-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--opido-muted);
}

.dash-link {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--opido-primary);
}

.dash-table {
    font-size: 13px;
}

.dash-table thead th {
    font-size: 11px;
}

.bg-soft-primary { background: #e8f2f8; }
.bg-soft-success { background: #e7f7f0; }
.bg-soft-warning { background: #fdf3e0; }
.bg-soft-info { background: #e8f1fb; }

.appt-filters {
    margin-bottom: 0;
}

.appt-filters .form-control,
.appt-filters .form-select {
    height: 34px;
}

.appt-table td {
    vertical-align: middle;
}

.appt-doctor {
    display: flex;
    align-items: center;
    gap: 8px;
}

.appt-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #eef2f6;
}

.appt-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #163a52;
}

/* ---------- Misc compact helpers ---------- */
.font-size-16 { font-size: 14px !important; }
.font-size-15 { font-size: 13.5px !important; }
.font-size-14 { font-size: 13.5px !important; }
.font-size-13 { font-size: 13px !important; }
.font-size-12 { font-size: 12.5px !important; }

.nav-tabs .nav-link {
    font-size: 13px;
    padding: 0.4rem 0.85rem;
}

.pagination {
    margin-bottom: 0;
}

.page-link {
    font-size: 13px;
    padding: 0.28rem 0.55rem;
}
