@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Nunito:wght@500;600;700;800&display=swap');

:root {
    --ink-strong: #1f3d62;
    --ink-soft: #3f648a;
    --line-soft: rgba(72, 122, 176, 0.22);
    --accent-cyan: #00b8ea;
    --accent-blue: #3f56e1;
    --accent-green: #49da79;
    --accent-yellow: #f6eb49;
    --accent-red: #ff5662;

    --sidebar-bg-1: #e9faff;
    --sidebar-bg-2: #dde9e4;
    --sidebar-surface: #f8fbfa;
    --sidebar-surface-hover: #edf5f1;
    --sidebar-active: #ffffe0;
    --sidebar-border: #c8d8d1;
    --sidebar-text: #28485a;
    --sidebar-text-soft: #5f7d7a;
    
}

html,
body {
    min-height: 100%;
}

body {
    font-family: "Nunito", "Segoe UI", sans-serif;
    background: #f3f7f5;
    color: var(--ink-strong);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
    color: var(--ink-strong);
    letter-spacing: 0.02em;
}

a,
.btn-link {
    color: #21588f;
}

.btn {
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.06);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(138deg, var(--accent-cyan), var(--accent-blue) 58%, #6fd8ff);
    border-color: rgba(75, 173, 255, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 10px 22px rgba(56, 124, 213, 0.28);
}

.btn-primary:hover {
    color: #fff;
    border-color: rgba(112, 201, 255, 0.86);
}

.btn-outline-primary {
    border-color: rgba(63, 86, 225, 0.5);
    color: #2a4da8;
    background: rgba(255, 255, 255, 0.35);
}

.btn-outline-primary:hover {
    background: rgba(63, 86, 225, 0.14);
    color: #1c3d8d;
}

.btn-outline-danger {
    border-color: rgba(255, 86, 98, 0.52);
    color: #b53a44;
    background: rgba(255, 255, 255, 0.35);
}

.btn-outline-danger:hover {
    background: rgba(255, 86, 98, 0.18);
    color: #8b2a2a;
}

.form-control,
.form-select {
    border-radius: 14px;
    border: 1px solid rgba(89, 140, 194, 0.4);
    background: rgba(255, 255, 255, 0.84);
}

.form-control:focus,
.form-select:focus,
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.22rem rgba(108, 181, 255, 0.25);
    border-color: rgba(92, 159, 228, 0.72);
}

.container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.card {
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(231, 246, 255, 0.7)),
        linear-gradient(120deg, rgba(252, 255, 255, 0.9), rgba(255, 255, 255, 0.66));
    backdrop-filter: blur(6px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 18px 32px rgba(20, 58, 103, 0.14);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(116, 190, 255, 0.08);
    --bs-table-hover-bg: rgba(106, 190, 245, 0.13);
    color: #275079;
}

.table thead {
    color: #1e446a;
}

.table-light {
    --bs-table-bg: rgba(221, 242, 255, 0.84);
    --bs-table-color: #26567f;
}

.display-4 {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.lead {
    color: var(--ink-soft);
}

.alert {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.modal-content {
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.74);
}

.home-shell {
    display: grid;
    gap: 1.05rem;
}

.home-hero {
    position: relative;
    background:
        linear-gradient(138deg, rgba(183, 235, 255, 0.72), rgba(199, 255, 236, 0.63) 48%, rgba(229, 225, 255, 0.58)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.73), rgba(255, 255, 255, 0.38));
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 24px;
    padding: 1.2rem 1.2rem 1.15rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 22px 34px rgba(18, 62, 104, 0.16);
    overflow: hidden;
}

.home-hero::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -36px;
    top: -34px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.8), rgba(139, 197, 255, 0.45));
}

.home-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-bottom: 0.55rem;
}

.home-tag {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f547f;
    border-radius: 999px;
    padding: 0.28rem 0.68rem;
    border: 1px solid rgba(90, 143, 199, 0.33);
    background: rgba(255, 255, 255, 0.64);
}

.home-kicker {
    margin: 0;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.73rem;
    color: #3d73a6;
    font-weight: 800;
}

.home-title {
    margin: 0.24rem 0 0.22rem;
    font-size: clamp(1.64rem, 3vw, 2.6rem);
}

.home-subtitle {
    margin: 0;
    color: var(--ink-soft);
    max-width: 740px;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.9rem;
}

.home-card {
    grid-column: span 4;
    position: relative;
    border-radius: 20px;
    padding: 1rem;
    text-decoration: none;
    color: #1e3d5f;
    border: 2px solid rgba(255, 255, 255, 0.75);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 14px 24px rgba(22, 61, 104, 0.16);
    transition: transform 0.19s ease, box-shadow 0.19s ease, border-color 0.19s ease;
    overflow: hidden;
}

.home-card::before {
    /*
    content: "";
    position: absolute;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    right: -24px;
    top: -24px;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0));
*/
    }

.home-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 20px 32px rgba(21, 61, 104, 0.22);
}

.home-card-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 6px 14px rgba(13, 35, 62, 0.17);
}

.home-card h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
}

.home-card p {
    margin: 0.35rem 0 0;
    color: #3c648c;
    font-size: 0.94rem;
    font-weight: 700;
}

.home-card.size-wide {
    grid-column: span 6;
}

.home-card.size-tall {
    grid-column: span 3;
}

.home-card.tone-sky {
    background: linear-gradient(145deg, rgba(185, 236, 255, 0.86), rgba(116, 214, 248, 0.74));
}

.home-card.tone-mint {
    background: linear-gradient(145deg, rgba(201, 255, 219, 0.84), rgba(132, 234, 164, 0.72));
}

.home-card.tone-peach {
    background: linear-gradient(145deg, rgba(255, 208, 175, 0.84), rgba(255, 133, 145, 0.72));
}

.home-card.tone-lilac {
    background: linear-gradient(145deg, rgba(203, 210, 255, 0.84), rgba(142, 157, 255, 0.7));
}

.home-card.tone-cyan {
    background: linear-gradient(145deg, rgba(182, 238, 255, 0.84), rgba(109, 209, 246, 0.72));
}

.home-card.tone-lime {
    background: linear-gradient(145deg, rgba(231, 255, 181, 0.82), rgba(185, 235, 126, 0.7));
}

@media (max-width: 991.98px) {
    .home-card,
    .home-card.size-wide,
    .home-card.size-tall {
        grid-column: span 6;
    }
}

@media (max-width: 640.98px) {
    .home-card,
    .home-card.size-wide,
    .home-card.size-tall {
        grid-column: span 12;
    }
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: 14px;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}
