body {
    background: #f3f8fb;
    color: #102033;
}

.main-header.navbar {
    background: #ffffff;
    border-bottom: 1px solid #d7e7ef;
    box-shadow: 0 4px 18px rgba(19, 71, 93, .06);
}

.app-header {
    min-height: 58px;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.app-brand {
    align-items: center;
    color: #0f6f86 !important;
    display: flex;
    gap: 8px;
    font-weight: 700;
}

.app-brand img {
    height: 28px;
    width: 28px;
}

.app-top-nav .nav-link {
    color: #516778 !important;
    font-weight: 600;
}

.app-top-nav .nav-link:hover {
    color: #0f6f86 !important;
}

.app-mobile-toggle {
    border-color: #c8dde7;
    margin-left: auto;
}

.app-mobile-menu {
    background: #fff;
    border: 1px solid #d7e7ef;
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(15, 63, 85, .18);
    display: none;
    left: 12px;
    overflow: hidden;
    position: absolute;
    right: 12px;
    top: calc(100% + 8px);
    z-index: 1050;
}

.app-mobile-menu.is-open {
    display: block;
}

.app-mobile-user {
    align-items: center;
    background: #f5fbfc;
    border-bottom: 1px solid #dbeaf0;
    display: flex;
    gap: 10px;
    padding: 12px 14px;
}

.app-mobile-user strong,
.app-mobile-user span {
    display: block;
}

.app-mobile-user strong {
    color: #102033;
    font-size: 14px;
}

.app-mobile-user span {
    color: #60758a;
    font-size: 12px;
    text-transform: capitalize;
}

.app-mobile-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
}

.app-mobile-links a {
    align-items: center;
    background: #f7fbfc;
    border: 1px solid #dbeaf0;
    border-radius: 8px;
    color: #334b5f;
    display: flex;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    text-decoration: none;
}

.app-mobile-links a:hover {
    border-color: #17a6b3;
    color: #0f6f86;
    text-decoration: none;
}

.app-mobile-links i {
    color: #0f8fa3;
    width: 18px;
}

.profile-nav-link {
    align-items: center;
    display: flex;
    gap: 8px;
}

.nav-avatar {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 28px;
    height: 28px;
    justify-content: center;
    object-fit: cover;
    width: 28px;
}

.avatar-fallback {
    background: linear-gradient(135deg, #0f8fa3, #45c4b0);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

body.layout-top-nav .main-header {
    margin-left: 0 !important;
}

body.layout-top-nav .content-wrapper {
    margin-left: 0 !important;
}

.content-wrapper {
    background:
        linear-gradient(180deg, rgba(221, 242, 245, .78), rgba(247, 250, 252, .96) 260px),
        #f7fafc;
}

.page-heading h1,
.toolbar h1 {
    color: #102033;
}

.page-heading p {
    color: #60758a;
    margin: 6px 0 0;
}

.spa-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, .18), transparent 30%), #eef2f7;
}

.spa-login-card {
    width: min(420px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
    padding: 24px;
}

.spa-login-card h1 {
    margin-bottom: 0;
}

.login-brand {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.login-brand img {
    height: 48px;
    width: 48px;
}

.login-tabs {
    display: flex;
    gap: 8px;
    margin: 14px 0;
}

.brand-link {
    align-items: center;
    display: flex;
    gap: 8px;
}

.brand-link img {
    height: 30px;
    margin-left: 12px;
    width: 30px;
}

.spa-muted {
    color: #6b7280;
}

.app-busy {
    min-height: 100vh;
    display: grid;
    place-items: center;
    color: #4b5563;
}

.nav-hidden {
    display: none !important;
}

.empty-state {
    color: #6b7280;
    padding: 24px;
    text-align: center;
}

.profile-summary {
    background: #fff;
    border: 1px solid #dbeaf0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 63, 85, .08);
    margin-bottom: 18px;
    overflow: hidden;
}

.profile-cover {
    background:
        linear-gradient(135deg, rgba(15, 143, 163, .92), rgba(69, 196, 176, .88)),
        linear-gradient(90deg, #e7f6f8, #f8fcfd);
    height: 92px;
}

.profile-summary-body {
    align-items: flex-end;
    display: flex;
    gap: 16px;
    padding: 0 18px 18px;
}

.profile-summary-avatar {
    align-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 112px;
    height: 112px;
    justify-content: center;
    margin-top: -42px;
    object-fit: cover;
    width: 112px;
}

.profile-summary-body h2 {
    color: #102033;
    margin-bottom: 2px;
}

.profile-summary-body p {
    color: #60758a;
    margin-bottom: 4px;
}

.profile-card {
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.profile-card-avatar {
    align-items: center;
    border: 4px solid #dff4f5;
    border-radius: 50%;
    display: inline-flex;
    font-size: 34px;
    height: 150px;
    justify-content: center;
    margin-bottom: 14px;
    object-fit: cover;
    width: 150px;
}

.profile-card p {
    color: #60758a;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: span 12; }

.action-cell {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.menu-tile,
.product-card {
    min-height: 160px;
    background: #fff;
    border: 1px solid #dbeaf0;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(15, 63, 85, .08);
    color: #102033;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    padding: 18px;
    text-decoration: none;
}

.menu-tile:hover,
.product-card:hover {
    color: #102033;
    border-color: #17a6b3;
    box-shadow: 0 16px 34px rgba(15, 111, 134, .16);
    transform: translateY(-1px);
    text-decoration: none;
}

.menu-tile i {
    color: #0f8fa3;
    font-size: 28px;
}

.menu-tile strong,
.product-card strong {
    font-size: 18px;
}

.menu-tile span,
.product-card span,
.product-card p {
    color: #60758a;
}

.product-card {
    padding: 0;
    overflow: hidden;
}

.product-card-media {
    align-items: center;
    background: linear-gradient(135deg, #e7f6f8, #f8fcfd);
    display: flex;
    height: 142px;
    justify-content: center;
    overflow: hidden;
}

.product-card-media img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.product-card-media i {
    color: #0f8fa3;
    font-size: 42px;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
}

.product-card-body small {
    color: #0f8fa3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.clinical-placeholder {
    align-items: center;
    color: #0f8fa3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.clinical-placeholder span {
    color: #0f6f86;
    font-weight: 700;
}

.pdf-toolbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.pdf-viewport {
    align-items: flex-start;
    background: #f7fbfc;
    border: 1px solid #dbeaf0;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 480px;
    overflow: auto;
    padding: 12px;
}

.pdf-viewport canvas {
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
    max-width: 100%;
}

.new-doctor-fields {
    background: #f7fbfc;
    border: 1px solid #dbeaf0;
    border-radius: 8px;
    padding: 14px;
}

.user-map {
    border: 1px solid #dbeaf0;
    border-radius: 8px;
    height: 560px;
    overflow: hidden;
    width: 100%;
}

.user-map-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-location-row {
    align-items: center;
    background: #f7fbfc;
    border: 1px solid #dbeaf0;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    padding: 10px;
}

.user-location-row span {
    color: #60758a;
    display: block;
    font-size: 13px;
}

.map-row-icon {
    align-items: center;
    background: #e7f6f8;
    border-radius: 50%;
    color: #0f8fa3 !important;
    display: inline-flex !important;
    flex: 0 0 32px;
    height: 32px;
    justify-content: center;
    width: 32px;
}

@media (max-width: 991px) {
    .app-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .app-desktop-nav {
        display: none !important;
    }

    body.sidebar-mini .main-sidebar {
        display: none !important;
    }

    body.sidebar-mini .content-wrapper,
    body.sidebar-mini .main-footer {
        margin-left: 0 !important;
    }

    .content-wrapper {
        min-height: calc(100vh - 58px);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .span-3,
    .span-4,
    .span-6,
    .span-12 {
        grid-column: span 1;
    }

    .action-cell {
        justify-content: flex-start;
    }

    .profile-summary-body {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .profile-summary-body .btn {
        margin-left: 0 !important;
    }
}

@media (min-width: 992px) {
    .app-mobile-toggle,
    .app-mobile-menu {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .app-mobile-links {
        grid-template-columns: 1fr;
    }
}
