:root {
    --xod-blue-950: #123554;
    --xod-blue-700: #3f79ab;
    --xod-blue-600: #5a93bf;
    --xod-blue-500: #78a9ce;
    --xod-blue-200: #d9ebf7;
    --xod-orange-600: #e4a34c;
    --xod-orange-500: #f0bc72;
    --xod-orange-300: #f7dba9;
    --xod-ink-900: #153047;
    --xod-ink-700: #35556f;
    --xod-ink-500: #607f98;
    --xod-surface: #f2f6fb;
    --xod-surface-elevated: #ffffff;
    --xod-border: #d4e2ef;
    --xod-success: #5cc28c;
    --xod-danger: #ef6d7f;
    --xod-shadow-soft: 0 16px 40px rgba(19, 53, 84, 0.08);
    --xod-shadow-tight: 0 8px 20px rgba(19, 53, 84, 0.1);
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: var(--xod-ink-900);
    background:
        radial-gradient(1200px 500px at -10% -10%, rgba(120, 169, 206, 0.3), transparent 70%),
        radial-gradient(900px 420px at 110% 0%, rgba(240, 188, 114, 0.28), transparent 72%),
        linear-gradient(180deg, #edf4fa 0%, #f7fbff 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Sora", "Manrope", sans-serif;
    letter-spacing: 0.01em;
    color: var(--xod-blue-950);
}

h1 {
    text-transform: none;
    font-size: clamp(1.8rem, 1.35rem + 1.5vw, 2.4rem);
    margin-bottom: 1.2rem;
}

h1 small {
    font-size: 0.85rem;
}

#app {
    min-height: 100%;
    margin-bottom: -136px;
}

main.py-4 {
    padding-top: 1.35rem !important;
    padding-bottom: 2rem !important;
}

.container.my-3 {
    margin-top: 0.75rem !important;
}

.container.my-3 > .row > .col {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(212, 226, 239, 0.9);
    border-radius: 20px;
    box-shadow: var(--xod-shadow-soft);
    backdrop-filter: blur(4px);
    padding: 1.2rem 1.25rem 1.4rem;
}

.masthead {
    background: linear-gradient(112deg, #2f638e 0%, #4f8fbb 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.masthead .container {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.webtitle {
    margin: 0;
    color: #f3f9ff;
    font: 600 1.72rem/1.2 "Sora", "Manrope", sans-serif;
    letter-spacing: 0;
    text-transform: none;
}

.memberarea {
    margin: 0;
    color: #f3f9ff;
    font: 500 1.5rem/1.2 "Sora", "Manrope", sans-serif;
}

.memberarea a {
    color: #f3f9ff !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.memberarea a:hover {
    opacity: 0.88;
}

.bg-orange {
    background: linear-gradient(90deg, var(--xod-orange-500) 0%, #f4cb88 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(201, 151, 70, 0.25);
}

.bg-blue {
    background: linear-gradient(90deg, #2f6996 0%, #4e8ab8 100%);
}

.navbar {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.navbar-brand {
    color: var(--xod-blue-950) !important;
    font-family: "Sora", "Manrope", sans-serif;
    letter-spacing: 0.01em;
    text-transform: none;
    font-size: 1.24rem;
    font-weight: 700;
}

.navbar-light .navbar-toggler,
.navbar-dark .navbar-toggler,
.navbar-toggler {
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    padding: 0.35rem 0.55rem;
}

header .nav-link {
    color: var(--xod-blue-950) !important;
    font-weight: 600;
    font-size: 0.95rem;
}

header .menu-toggle {
    margin-right: 0.4rem;
    background-color: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 12px;
    padding: 0.36rem 0.7rem !important;
    transition: transform 0.12s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

header .menu-toggle.active {
    background: rgba(192, 221, 241, 0.92);
    border-color: rgba(117, 160, 191, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
    color: #132e47 !important;
}

header .menu-toggle:hover {
    transform: translateY(-1px);
    background-color: rgba(255, 255, 255, 0.56);
    box-shadow: var(--xod-shadow-tight);
}

.menu-icon {
    display: inline-block;
    margin-right: 0.38rem;
    font-size: 0.98rem;
    line-height: 1;
}

.dropdown-menu {
    border: 1px solid var(--xod-border);
    border-radius: 14px;
    box-shadow: var(--xod-shadow-tight);
    padding: 0.5rem;
}

.menu-dropdown {
    min-width: 14rem;
}

.dropdown-item {
    border-radius: 10px;
    font-weight: 600;
}

.dropdown-item:hover {
    background-color: rgba(120, 169, 206, 0.15);
}

.menu-dropdown .dropdown-item.active,
.menu-dropdown .dropdown-item:active {
    background-color: rgba(195, 224, 243, 0.9);
    color: #123554;
}

#navbarDropdown {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 0.34rem 0.72rem !important;
}

.btn {
    border-radius: 11px;
    border-width: 0;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: none;
    transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(26, 66, 102, 0.16);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(160deg, #4f9cd2 0%, #3f7dac 100%);
}

.btn-secondary {
    color: #18334b;
    background: #d8e4ef;
}

.btn-danger {
    background: linear-gradient(160deg, #f48a95 0%, #eb6474 100%);
}

.btn-sm {
    border-radius: 9px;
}

.form-control,
.custom-select {
    border-radius: 11px;
    border: 1px solid var(--xod-border);
    background-color: #fdfefe;
    color: var(--xod-ink-900);
    min-height: calc(1.5em + 0.9rem + 2px);
}

.form-control:focus,
.custom-select:focus {
    border-color: #8eb6d6;
    box-shadow: 0 0 0 0.2rem rgba(120, 169, 206, 0.22);
}

.per-page-form {
    margin-bottom: 0;
}

.per-page-label {
    color: var(--xod-ink-700);
    font-size: 0.86rem;
    font-weight: 700;
}

.per-page-select {
    width: auto;
    min-width: 74px;
    min-height: calc(1.5em + 0.55rem + 2px);
    font-size: 0.88rem;
}

.table {
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--xod-surface-elevated);
    box-shadow: inset 0 0 0 1px rgba(212, 226, 239, 0.75);
}

.table th,
.table td {
    border-top-color: #d8e4ef;
    vertical-align: middle;
}

.table .thead-dark th {
    background: #4b83ad;
    border-color: rgba(255, 255, 255, 0.15);
    color: #f7fbff;
    font-family: "Sora", "Manrope", sans-serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    vertical-align: middle !important;
    line-height: 1.25;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.table tbody tr:nth-of-type(odd):not(.alert-danger) {
    background: rgba(236, 244, 252, 0.35);
}

.table tbody tr.alert-danger {
    background: rgba(244, 196, 196, 0.58);
}

.badge {
    font-weight: 700;
}

.badge-pill {
    min-width: 14px;
    min-height: 14px;
}

.badge-success {
    background-color: var(--xod-success);
}

.badge-danger {
    background-color: var(--xod-danger);
}

.pagination {
    margin-bottom: 0.75rem;
}

.page-link {
    color: var(--xod-blue-950);
    border: 1px solid var(--xod-border);
    background-color: #fff;
    border-radius: 10px !important;
    margin-right: 0.2rem;
}

.page-item.active .page-link {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(140deg, #5da3d4 0%, #3f7baa 100%);
}

.page-link:hover {
    color: var(--xod-blue-950);
    background-color: #eef4fa;
}

.alert {
    border: 0;
    border-radius: 12px;
    box-shadow: var(--xod-shadow-tight);
}

.alert-success {
    background: #dff3e8;
    color: #1a5a3e;
}

.alert-danger {
    background: #fce1e6;
    color: #7b2b3a;
}

.card {
    border: 1px solid var(--xod-border);
    border-radius: 18px;
    box-shadow: var(--xod-shadow-soft);
}

.card-header {
    background: linear-gradient(90deg, rgba(120, 169, 206, 0.18) 0%, rgba(240, 188, 114, 0.2) 100%);
    border-bottom: 1px solid var(--xod-border);
    font-family: "Sora", "Manrope", sans-serif;
    font-weight: 600;
}

footer,
.push {
    height: 136px;
}

footer {
    line-height: 18px;
}

footer .bg-blue {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

footer .bg-orange {
    color: #17344d;
    font-weight: 600;
}

main {
    min-height: 100%;
}

@media (max-width: 991.98px) {
    .webtitle {
        font-size: 1.18rem;
        line-height: 1.2;
    }

    .memberarea {
        font-size: 1.1rem;
    }

    .navbar-brand {
        font-size: 1.06rem;
    }

    header .menu-toggle,
    #navbarDropdown {
        margin-bottom: 0.32rem;
        margin-right: 0;
        display: inline-block;
    }

    .container.my-3 > .row > .col {
        border-radius: 16px;
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    .masthead .row > .col {
        text-align: center !important;
        margin-bottom: 0.4rem;
    }

    .memberarea img {
        width: 32px;
        height: auto;
    }

    .table {
        font-size: 0.92rem;
    }

    .form-inline .form-control,
    .form-inline .custom-select,
    .form-inline .btn {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 0.45rem;
    }

    .btn.float-right {
        float: none !important;
        width: 100%;
        margin-bottom: 0.75rem;
    }
}
