:root {
    --hc-bg: #f4fbfb;
    --hc-surface: #ffffff;
    --hc-surface-soft: #f7fdfd;
    --hc-border: #d9eceb;
    --hc-border-strong: #c8e1df;
    --hc-text: #12343b;
    --hc-text-muted: #64858a;
    --hc-primary: #1e8f9b;
    --hc-primary-deep: #126a74;
    --hc-primary-soft: #e4f7f8;
    --hc-accent: #56c2ae;
    --hc-accent-soft: #e8fbf5;
    --hc-shadow: 0 18px 48px rgba(18, 52, 59, 0.08);
    --hc-shadow-soft: 0 10px 26px rgba(18, 52, 59, 0.05);
    --hc-radius: 22px;
    --hc-radius-sm: 16px;
}

html,
body {
    background: var(--hc-bg);
    color: var(--hc-text);
}

body {
    font-family: "Segoe UI", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    letter-spacing: -0.01em;
}

a {
    color: var(--hc-primary);
}

.btn {
    border-radius: 14px;
    font-weight: 600;
    box-shadow: none;
}

.btn-primary,
.btn-secondary {
    background: linear-gradient(135deg, var(--hc-primary), #2fa8b1);
    border-color: transparent;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus {
    background: linear-gradient(135deg, var(--hc-primary-deep), var(--hc-primary));
    border-color: transparent;
    color: #fff;
}

.btn-light {
    background: #fff;
    border-color: var(--hc-border);
    color: var(--hc-text);
}

.btn-light:hover,
.btn-light:focus {
    background: var(--hc-primary-soft);
    border-color: var(--hc-border-strong);
    color: var(--hc-primary-deep);
}

.btn-outline-dark,
.btn-outline-secondary {
    border-color: var(--hc-border-strong);
    color: var(--hc-text);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: var(--hc-primary-soft);
    border-color: var(--hc-primary);
    color: var(--hc-primary-deep);
}

.form-control,
.form-select {
    min-height: 48px;
    border-radius: 14px;
    border-color: var(--hc-border-strong);
    background: #fff;
    color: var(--hc-text);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(30, 143, 155, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(30, 143, 155, 0.12);
}

.form-label {
    color: var(--hc-text);
    font-weight: 600;
    margin-bottom: 0.55rem;
}

.card {
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow-soft);
    background: rgba(255, 255, 255, 0.96);
}

.badge {
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font-weight: 600;
}

.bg-success {
    background-color: #dff7ee !important;
    color: #177b61 !important;
}

.bg-danger {
    background-color: #fde8e7 !important;
    color: #bf4a47 !important;
}

.alert {
    border-radius: 16px;
    border: 1px solid transparent;
}

.alert-danger {
    background: #fff3f2;
    border-color: #f3d1cf;
    color: #8a3d39;
}

.alert-success {
    background: #eefbf4;
    border-color: #cdeedb;
    color: #1f6d4c;
}

.table {
    --bs-table-striped-bg: #f7fcfc;
    --bs-table-hover-bg: #eef8f8;
}

.table > :not(caption) > * > * {
    padding: 1rem 0.9rem;
    border-bottom-color: var(--hc-border);
}

.table thead th {
    color: var(--hc-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
    margin-top: auto;
    background: transparent;
    border-top: 1px solid rgba(200, 225, 223, 0.75);
    color: var(--hc-text-muted);
}

.page-content {
    flex: 1 0 auto;
    padding: calc(84px + 1.25rem) 1.5rem 1.5rem;
}

.page-title-box {
    margin: 0 0 1.5rem;
    padding: 0;
}

.page-title-box h4 {
    color: var(--hc-text);
    font-size: 1.55rem;
    font-weight: 700;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: var(--hc-text-muted);
}

.layout-width {
    max-width: 100%;
}

#page-topbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(201, 228, 225, 0.95);
    box-shadow: none;
}

#page-topbar .navbar-header {
    height: 76px;
    padding: 0 1.5rem;
}

.topbar-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    text-decoration: none;
}

.topbar-brand-label {
    color: var(--hc-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
}

.topbar-brand-subtitle {
    color: var(--hc-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar-user-wrap {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.topbar-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--hc-border);
    border-radius: 999px;
    background: var(--hc-surface-soft);
    color: var(--hc-primary-deep);
    font-size: 0.82rem;
    font-weight: 700;
}

.topbar-status-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--hc-accent);
    box-shadow: 0 0 0 6px rgba(86, 194, 174, 0.12);
}

.topbar-user {
    margin-left: 0 !important;
}

.topbar-user .btn {
    padding: 0.4rem 0.55rem 0.4rem 0.45rem;
    border: 1px solid var(--hc-border);
    border-radius: 18px;
    background: #fff;
}

.header-profile-user,
.dashboard-user-avatar {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 6px 14px rgba(18, 52, 59, 0.12);
}

.topbar-user-name {
    color: var(--hc-text);
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.1;
}

.topbar-user-caption {
    color: var(--hc-text-muted);
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
}

.dropdown-menu {
    border: 1px solid var(--hc-border);
    border-radius: 18px;
    box-shadow: var(--hc-shadow);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 12px;
    color: var(--hc-text);
    font-weight: 600;
    padding: 0.7rem 0.85rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--hc-primary-soft);
    color: var(--hc-primary-deep);
}

.topnav-hamburger {
    border-radius: 14px;
    color: var(--hc-primary-deep);
}

.app-menu.navbar-menu {
    width: 286px;
    padding: 1.2rem 1rem 1rem;
    border-right: 1px solid rgba(201, 228, 225, 0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 251, 250, 0.98));
    box-shadow: none;
}

.navbar-brand-box {
    height: auto;
    padding: 0;
    margin-bottom: 1.15rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    text-decoration: none;
}

.sidebar-brand-badge {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hc-primary), #59c4bf);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 14px 26px rgba(30, 143, 155, 0.22);
}

.sidebar-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-brand-title {
    color: var(--hc-text);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
}

.sidebar-brand-subtitle {
    color: var(--hc-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#vertical-hover {
    color: var(--hc-primary-deep);
    border-radius: 12px;
}

#scrollbar .container-fluid {
    padding: 0;
}

.menu-title {
    margin: 1.25rem 0 0.65rem;
    padding: 0 0.8rem;
}

.menu-title span {
    color: var(--hc-text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.navbar-nav .nav-item {
    margin: 0.18rem 0;
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.84rem 0.9rem;
    border-radius: 16px;
    color: var(--hc-text);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.navbar-nav .nav-link i {
    width: 1.15rem;
    color: var(--hc-primary);
    font-size: 1.05rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.navbar-nav .menu-link[aria-expanded="true"] {
    background: linear-gradient(135deg, rgba(30, 143, 155, 0.12), rgba(86, 194, 174, 0.1));
    color: var(--hc-primary-deep);
    transform: translateX(2px);
}

.navbar-nav .menu-dropdown {
    margin-top: 0.2rem;
    padding-left: 0.6rem;
}

.navbar-nav .menu-dropdown .nav-link {
    padding: 0.72rem 0.9rem 0.72rem 1rem;
    color: var(--hc-text-muted);
    font-weight: 600;
}

.navbar-nav .menu-dropdown .nav-link::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(30, 143, 155, 0.35);
}

.main-content {
    margin-left: 286px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-hero,
.dashboard-panel,
.dashboard-quick-link {
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--hc-shadow-soft);
}

.dashboard-hero {
    overflow: hidden;
    position: relative;
    padding: 1.8rem;
    background:
        radial-gradient(circle at top right, rgba(86, 194, 174, 0.18), transparent 30%),
        radial-gradient(circle at bottom left, rgba(30, 143, 155, 0.12), transparent 28%),
        rgba(255, 255, 255, 0.98);
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    inset: auto -70px -90px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(86, 194, 174, 0.08);
}

.dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: var(--hc-primary-soft);
    color: var(--hc-primary-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dashboard-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--hc-accent);
}

.dashboard-hero-title {
    margin: 0 0 0.85rem;
    color: var(--hc-text);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
}

.dashboard-hero-text,
.dashboard-panel-text,
.dashboard-empty-copy {
    color: var(--hc-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.dashboard-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.35rem;
}

.dashboard-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--hc-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--hc-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.dashboard-meta-chip i {
    color: var(--hc-primary);
}

.dashboard-panel {
    padding: 1.25rem;
    height: 100%;
}

.dashboard-panel-label {
    color: var(--hc-text-muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-panel-value {
    margin: 0.45rem 0 0;
    color: var(--hc-text);
    font-size: 1.4rem;
    font-weight: 800;
}

.dashboard-panel-value-sm {
    font-size: 1.05rem;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-user-summary {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.dashboard-user-copy h6 {
    margin: 0;
    color: var(--hc-text);
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-user-copy p {
    margin: 0.2rem 0 0;
    color: var(--hc-text-muted);
}

.dashboard-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-quick-link {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.15rem 1.2rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-quick-link:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 143, 155, 0.35);
    box-shadow: var(--hc-shadow);
}

.dashboard-quick-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hc-primary-soft);
    color: var(--hc-primary);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.dashboard-quick-link h6,
.dashboard-empty-state h6 {
    margin: 0;
    color: var(--hc-text);
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-quick-link p,
.dashboard-empty-state p {
    margin: 0.35rem 0 0;
    color: var(--hc-text-muted);
}

.dashboard-menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.dashboard-menu-list li {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--hc-border);
    border-radius: 14px;
    background: var(--hc-surface-soft);
    color: var(--hc-text);
    font-weight: 600;
}

.dashboard-empty-state {
    padding: 1.5rem;
    border: 1px dashed var(--hc-border-strong);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(228, 247, 248, 0.52), rgba(255, 255, 255, 0.92));
}

.healthcare-auth {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(86, 194, 174, 0.2), transparent 22%),
        radial-gradient(circle at bottom right, rgba(30, 143, 155, 0.16), transparent 26%),
        linear-gradient(180deg, #f7fdfd 0%, #eef8f8 100%);
}

.healthcare-auth .auth-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem;
}

.healthcare-auth .auth-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.75rem;
}

.healthcare-auth .auth-stage {
    display: flex;
    justify-content: center;
    align-items: center;
}

.healthcare-auth .auth-card,
.healthcare-auth .auth-aside {
    border: 1px solid var(--hc-border);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--hc-shadow);
}

.healthcare-auth .auth-card {
    padding: 2rem;
    width: 100%;
    max-width: 480px;
}

.healthcare-auth .auth-aside {
    padding: 1.6rem;
    background:
        radial-gradient(circle at top right, rgba(86, 194, 174, 0.14), transparent 32%),
        rgba(255, 255, 255, 0.92);
}

.healthcare-auth .auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.healthcare-auth .auth-brand-badge {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hc-primary), #59c4bf);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 16px 28px rgba(30, 143, 155, 0.22);
}

.healthcare-auth .auth-brand-title {
    display: block;
    color: var(--hc-text);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
}

.healthcare-auth .auth-brand-subtitle {
    display: block;
    color: var(--hc-text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.healthcare-auth .auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: var(--hc-primary-soft);
    color: var(--hc-primary-deep);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.healthcare-auth .auth-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--hc-accent);
}

.healthcare-auth .auth-title {
    margin: 0;
    color: var(--hc-text);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.healthcare-auth .auth-description,
.healthcare-auth .auth-help-list li,
.healthcare-auth .auth-meta-card p {
    color: var(--hc-text-muted);
}

.healthcare-auth .auth-description {
    margin: 0.75rem 0 1.75rem;
    max-width: 36rem;
    font-size: 1rem;
    line-height: 1.75;
}

.healthcare-auth .auth-form {
    display: grid;
    gap: 1rem;
}

.healthcare-auth .auth-password-row,
.healthcare-auth .auth-captcha-row {
    position: relative;
}

.healthcare-auth .auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--hc-primary);
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0.45rem 0.6rem;
}

.healthcare-auth .auth-captcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.85rem;
    border: 1px solid var(--hc-border);
    border-radius: 18px;
    background: var(--hc-surface-soft);
}

.healthcare-auth .auth-captcha-image {
    width: 136px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--hc-border-strong);
    object-fit: cover;
    background: #fff;
}

.healthcare-auth .auth-submit {
    min-height: 52px;
}

.healthcare-auth .auth-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--hc-text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.healthcare-auth .auth-divider::before,
.healthcare-auth .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--hc-border);
}

.healthcare-auth .auth-google-btn {
    min-height: 52px;
}

.healthcare-auth .auth-aside-title {
    margin: 0;
    color: var(--hc-text);
    font-size: 1.2rem;
    font-weight: 800;
}

.healthcare-auth .auth-aside-text {
    margin: 0.65rem 0 1.2rem;
    color: var(--hc-text-muted);
    line-height: 1.7;
}

.healthcare-auth .auth-help-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.healthcare-auth .auth-help-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border: 1px solid var(--hc-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
}

.healthcare-auth .auth-help-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hc-accent-soft);
    color: var(--hc-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.healthcare-auth .auth-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.healthcare-auth .auth-meta-card {
    padding: 1rem;
    border: 1px solid var(--hc-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
}

.healthcare-auth .auth-meta-card strong {
    color: var(--hc-text);
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.healthcare-auth .auth-footer {
    margin-top: 1.25rem;
    color: var(--hc-text-muted);
    font-size: 0.88rem;
}

@media (max-width: 1199.98px) {
    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .app-menu.navbar-menu {
        padding-top: 1rem;
    }

    .page-content {
        padding: calc(76px + 1rem) 1rem 1rem;
    }

    .topbar-status-pill {
        display: none;
    }

    .healthcare-auth .auth-card,
    .healthcare-auth .auth-aside {
        padding: 1.5rem;
        border-radius: 24px;
    }
}

@media (max-width: 767.98px) {
    #page-topbar .navbar-header {
        padding: 0 1rem;
    }

    .topbar-brand-subtitle,
    .topbar-user .text-start {
        display: none !important;
    }

    .dashboard-stat-grid,
    .dashboard-quick-links,
    .healthcare-auth .auth-meta-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        padding: 1.35rem;
    }

    .dashboard-hero-title {
        font-size: 1.6rem;
    }

    .healthcare-auth .auth-shell {
        padding: 1rem;
    }

    .healthcare-auth .auth-title {
        font-size: 1.7rem;
    }

    .healthcare-auth .auth-captcha-box {
        align-items: flex-start;
        flex-direction: column;
    }
}
