:root {
    --bg-1: #f4f7ff;
    --bg-2: #eaf4ee;
    --ink: #14213d;
    --muted: #5f6b85;
    --brand: #1f6feb;
    --brand-2: #13a86a;
    --card: #ffffff;
    --line: rgba(20, 33, 61, 0.1);
}

html {
    font-size: 15px;
}

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--ink);
    min-height: 100vh;
    background:
        radial-gradient(1100px 500px at -10% -10%, rgba(31, 111, 235, 0.18), transparent 60%),
        radial-gradient(900px 450px at 110% 0%, rgba(19, 168, 106, 0.16), transparent 60%),
        linear-gradient(160deg, var(--bg-1), var(--bg-2));
}

.navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-top: 12px;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 0.2px;
}

.nav-link {
    font-weight: 600;
}

main {
    animation: fade-in-up 0.45s ease both;
}

.card {
    border: 1px solid var(--line);
    border-radius: 16px;
}

.btn-primary {
    border: none;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.btn-primary:hover {
    filter: brightness(0.96);
}

.footer {
    color: var(--muted) !important;
    margin-top: 28px;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .navbar {
        border-radius: 10px;
    }
}

/* Bootstrap fallback utilities for offline/CDN-blocked environments */
* {
    box-sizing: border-box;
}

a {
    color: #1f56c2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 14px;
}

.navbar-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    list-style: none;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-grow-1 {
    flex-grow: 1;
}

.gap-2 {
    gap: 0.5rem;
}

.d-inline {
    display: inline;
}

.navbar-expand-sm .navbar-collapse,
.d-sm-inline-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand {
    font-size: 1.25rem;
}

.nav-link {
    display: inline-block;
    padding: 8px 10px;
    color: #21314f;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -6px;
    margin-right: -6px;
}

.g-3 {
    margin-left: -8px;
    margin-right: -8px;
}

.g-3 > * {
    padding-left: 8px;
    padding-right: 8px;
}

.col-12 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.card-body {
    padding: 16px;
}

.card-title {
    margin-top: 0;
    margin-bottom: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
}

.btn-link {
    background: transparent;
    border-color: transparent;
    color: #1f56c2;
    padding: 0;
    min-height: 0;
}

.btn-outline-primary {
    border-color: #9ec0ff;
    color: #1f56c2;
    background: #f4f8ff;
}

.btn-outline-secondary {
    border-color: #ced6e5;
    color: #44506a;
    background: #f8fafd;
}

.btn-outline-dark {
    border-color: #b6bfcd;
    color: #1f2a3f;
    background: #f8fafd;
}

.text-muted {
    color: #6d7992;
}

.text-primary {
    color: #1f56c2;
}

.text-success {
    color: #0f8b57;
}

.text-warning {
    color: #b67709;
}

.text-dark {
    color: #1b2740;
}

.small {
    font-size: 0.875rem;
}

.fw-semibold {
    font-weight: 700;
}

.display-6 {
    font-size: 2rem;
    line-height: 1.15;
}

.shadow-sm {
    box-shadow: 0 8px 20px rgba(15, 35, 70, 0.08);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.25rem;
}

.pb-3 {
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
    }
}

@media (min-width: 1200px) {
    .col-xl-3 {
        width: 25%;
    }
}
