* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #f4f7fb 0%, #eef4fb 100%);
    color: #2c3e50;
}
body, html {
    min-height: 100%;
}
main {
    min-height: calc(100vh - 180px);
}
.navbar-custom {
    background-color: var(--site-primary, #2d5f8b);
}
.navbar-custom .navbar-toggler-icon {
    filter: invert(1);
}
.navbar-custom .nav-link,
.navbar-custom .navbar-brand,
.navbar-custom .navbar-text {
    color: #fff;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #d8ecff;
}
.card,
.table-responsive,
.form-control,
.form-select,
.btn,
.alert {
    border-radius: 1.2rem;
}
.card {
    border: 1px solid rgba(30, 40, 60, 0.08);
    background: #fff;
}
.card-body {
    padding: 1.75rem;
}
.page-header {
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(30, 40, 60, 0.08);
    background: rgba(255, 255, 255, 0.95);
}
.page-title {
    font-size: 2rem;
    font-weight: 700;
}
.page-subtitle {
    color: #6c7a8a;
    font-size: 1rem;
}
.stat-card {
    border: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 45px rgba(21, 47, 78, 0.08);
}
.stat-card .card-body {
    padding: 1.5rem;
}
.stat-card .stat-title {
    color: #6c7a8a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}
.stat-card .stat-value {
    font-size: 2.6rem;
    font-weight: 700;
    margin-top: 0.75rem;
}
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}
.stat-icon.primary {
    background: #2d5f8b;
}
.stat-icon.success {
    background: #26c281;
}
.stat-icon.warning {
    background: #f7b731;
}
.stat-icon.info {
    background: #4680ff;
}
.btn-custom {
    background: linear-gradient(135deg, var(--site-accent, #244b6a) 0%, #1d3f5a 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #fff;
}
.btn-custom:hover,
.btn-custom:focus {
    background: #1b354f;
    border-color: #152d43;
    color: #fff;
}
.table {
    background: #fff;
}
.table thead {
    background: #f8fbff;
}
.table thead th {
    border-bottom: 2px solid #e9eef5;
}
.table tbody tr:hover {
    background: rgba(36, 75, 106, 0.05);
}
.form-control,
.form-select {
    border-color: #d9e2ec;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--site-primary, #2d5f8b);
    box-shadow: 0 0 0 0.2rem rgba(45, 95, 139, 0.18);
}
.form-label {
    font-weight: 600;
}
.alert {
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.logo-img {
    max-height: 44px;
    object-fit: contain;
}
.site-footer {
    background: #ffffff;
    padding: 1.5rem 0;
    color: #6c757d;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.badge-soft {
    border-radius: 0.85rem;
    background: rgba(45, 95, 139, 0.1);
    color: #2d5f8b;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
}
.navbar-nav {
    gap: 0.15rem;
}
.navbar-nav .nav-link {
    border-radius: 0.8rem;
    padding: 0.45rem 0.65rem;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background: rgba(255,255,255,0.12);
}
@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse {
        background: var(--site-primary, #2d5f8b);
        padding: 1rem;
        border-radius: 1rem;
        margin-top: 0.75rem;
    }
    .navbar-nav {
        width: 100%;
    }
    .navbar-nav .nav-item {
        width: 100%;
    }
    .navbar-nav .nav-link {
        display: block;
        width: 100%;
    }
}
@media (max-width: 767.98px) {
    .navbar-custom .navbar-collapse {
        background: var(--site-primary, #2d5f8b);
        padding: 1rem;
    }
    .card-body,
    .page-header {
        padding: 1.25rem;
    }
}
