﻿html,
body {
    min-height: 100%;
    margin: 0;

    overflow-x: hidden;
}

:root {
    --main-bg: #f4f7fb;
    --sidebar-bg: #101828;
    --sidebar-hover: #1d2939;
    --primary: #2563eb;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --text-main: #101828;
    --text-muted: #667085;
    --card-radius: 18px;
}

body {
    background: var(--main-bg);
    color: var(--text-main);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
.app-shell {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    width: 100%;
}
.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.app-topbar {
    height: 74px;
    background: #fff;
    border-bottom: 1px solid #eaecf0;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 5;
}

.app-sidebar {
    width: 280px;
    min-width: 280px;
    height: 100vh;
    position: sticky;
    top: 0;
    background: var(--sidebar-bg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 10;
}
.app-title {
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 30px;
}

.app-sidebar .nav-link {
    color: #d0d5dd;
    border-radius: 12px;
    padding: 12px 14px;
    transition: .2s;
}

    .app-sidebar .nav-link:hover {
        background: var(--sidebar-hover);
        color: #fff;
        transform: translateX(-3px);
    }

.app-sidebar .nav-section {
    color: #98a2b3;
    font-size: 13px;
    margin: 22px 0 8px;
}

.app-content {
    flex: 1;
    padding: 28px;
}

.page-title {
    font-weight: 800;
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-muted);
}

.app-card {
    background: #fff;
    border: 0;
    border-radius: var(--card-radius);
    box-shadow: 0 10px 25px rgba(16, 24, 40, .06);
}

.stat-card {
    border-radius: var(--card-radius);
    border: 0;
    background: #fff;
    box-shadow: 0 10px 25px rgba(16, 24, 40, .06);
    transition: .2s;
}

    .stat-card:hover {
        transform: translateY(-4px);
    }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
}

.stat-value {
    font-size: 30px;
    font-weight: 800;
    margin: 0;
}

.btn {
    border-radius: 10px;
    padding: 9px 16px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.table {
    margin-bottom: 0;
}

    .table thead th {
        color: var(--text-muted);
        font-size: 13px;
        font-weight: 700;
        background: #f9fafb;
        border-bottom: 1px solid #eaecf0;
    }

    .table tbody td {
        vertical-align: middle;
        padding: 14px 12px;
    }

.form-control,
.form-select {
    border-radius: 12px;
    padding: 10px 12px;
}

.badge {
    border-radius: 999px;
    padding: 7px 10px;
}
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    background: #f4f7fb;
}

.login-left {
    background: linear-gradient(135deg, #101828, #1d4ed8);
    color: #fff;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-brand-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255,255,255,.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.login-brand h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.login-brand p {
    margin: 0;
    color: rgba(255,255,255,.7);
}

.login-hero h2 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.4;
    max-width: 620px;
}

.login-hero p {
    color: rgba(255,255,255,.76);
    font-size: 18px;
    max-width: 560px;
    margin-top: 18px;
}

.login-features {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

    .login-features div {
        background: rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 16px;
        padding: 14px 18px;
    }

.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 20px 45px rgba(16, 24, 40, .10);
}

.login-mobile-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 16px;
}

.login-btn {
    height: 48px;
    font-weight: 700;
}

@media (max-width: 992px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-left {
        display: none;
    }

    .login-right {
        min-height: 100vh;
    }
}
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-card-header {
    padding: 20px 24px 0;
}

    .app-card-header h5 {
        margin: 0;
        font-weight: 800;
    }

    .app-card-header small {
        color: var(--text-muted);
    }

.app-card-body {
    padding: 20px 24px 24px;
}

.app-card canvas {
    min-height: 310px;
}

.empty-state {
    text-align: center;
    padding: 48px 20px;
}

.empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin: 0 auto 18px;
}

.empty-state h5 {
    font-weight: 800;
    margin-bottom: 6px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(37,99,235,.15);
}

.form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
}

.border-top {
    border-top: 1px solid #eaecf0 !important;
}

.hero-section {
    background: linear-gradient(135deg,#0f172a,#1d4ed8);
    border-radius: 24px;
    padding: 70px;
    color: white;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(255,255,255,.15);
    border-radius: 999px;
    margin-bottom: 20px;
    font-size: 14px;
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    max-width: 700px;
    opacity: .9;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}


.public-page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(37,99,235,.35), transparent 35%), linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
}

.public-navbar {
    height: 86px;
    padding: 0 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.public-brand-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(255,255,255,.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.public-brand-title {
    font-weight: 900;
    font-size: 22px;
}

.public-brand-subtitle {
    color: rgba(255,255,255,.7);
    font-size: 13px;
}

.public-hero {
    min-height: calc(100vh - 86px);
    padding: 60px 70px 90px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 60px;
}

.public-badge {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    padding: 9px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.public-hero h1 {
    font-size: 58px;
    font-weight: 950;
    line-height: 1.35;
    max-width: 720px;
}

.public-hero p {
    max-width: 680px;
    margin-top: 22px;
    font-size: 19px;
    line-height: 1.9;
    color: rgba(255,255,255,.78);
}

.public-actions {
    display: flex;
    gap: 14px;
    margin-top: 34px;
}

.public-hero-panel {
    display: flex;
    justify-content: center;
}

.public-panel-card {
    width: 100%;
    max-width: 480px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 28px;
    padding: 28px;
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 70px rgba(0,0,0,.25);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 14px;
}

    .mini-stats div {
        background: rgba(255,255,255,.12);
        border-radius: 18px;
        padding: 18px;
    }

    .mini-stats span {
        display: block;
        color: rgba(255,255,255,.68);
        font-size: 14px;
    }

    .mini-stats strong {
        display: block;
        font-size: 34px;
        margin-top: 8px;
    }

.fake-chart {
    height: 190px;
    margin-top: 28px;
    background: rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: end;
    gap: 12px;
}

    .fake-chart span {
        flex: 1;
        border-radius: 999px 999px 8px 8px;
        background: linear-gradient(180deg, #60a5fa, #2563eb);
    }

.public-features {
    padding: 80px 0;
    background: #f4f7fb;
}

.public-feature-card {
    height: 100%;
    background: #fff;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(16, 24, 40, .06);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.public-feature-card h5 {
    font-weight: 800;
}

.public-feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.8;
}

.public-footer {
    background: #fff;
    color: var(--text-muted);
    text-align: center;
    padding: 22px;
    border-top: 1px solid #eaecf0;
}

@media (max-width: 992px) {
    .public-navbar {
        padding: 0 24px;
    }

    .public-hero {
        grid-template-columns: 1fr;
        padding: 40px 24px 70px;
    }

        .public-hero h1 {
            font-size: 38px;
        }

    .public-hero-panel {
        display: none;
    }
}
.app-stat-card {
    background: var(--app-card-bg);
    border-radius: 18px;
    padding: 22px;
    border: 1px solid var(--app-border-color);
    box-shadow: var(--app-shadow);
}

    .app-stat-card .stat-title {
        font-size: 14px;
        color: var(--app-muted-color);
        margin-bottom: 10px;
    }

    .app-stat-card .stat-value {
        font-size: 30px;
        font-weight: 800;
        color: var(--app-text-color);
    }

    .app-stat-card.primary {
        border-left: 5px solid #0d6efd;
    }

    .app-stat-card.success {
        border-left: 5px solid #198754;
    }

    .app-stat-card.warning {
        border-left: 5px solid #ffc107;
    }

    .app-stat-card.danger {
        border-left: 5px solid #dc3545;
    }

.app-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

    .app-badge.success {
        background: rgba(25, 135, 84, .12);
        color: #198754;
    }

    .app-badge.warning {
        background: rgba(255, 193, 7, .18);
        color: #997404;
    }

    .app-badge.danger {
        background: rgba(220, 53, 69, .12);
        color: #dc3545;
    }

.app-row-warning {
    background: rgba(255, 193, 7, .08);
}

.app-empty-state {
    text-align: center;
    padding: 45px 20px;
    color: var(--app-muted-color);
}

    .app-empty-state .empty-icon {
        font-size: 42px;
        margin-bottom: 12px;
    }

    .app-empty-state h5 {
        color: var(--app-text-color);
        font-weight: 700;
    }

.app-menu-section {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    padding: 22px 12px 10px;
    margin-top: 10px;
    position: relative;
}

    .app-menu-section::after {
        content: "";
        display: block;
        height: 1px;
        margin-top: 8px;
        background: rgba(255,255,255,.08);
    }
.app-brand div {
    color: inherit;
}


.logout-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: .2s;
}

    .logout-link:hover {
        background: rgba(255,255,255,.08);
        color: #fff;
    }

    .logout-link i {
        font-size: 18px;
    }