:root {
    --ucu-blue: #0b3d91;
    --ucu-blue-dark: #072b69;
    --ucu-blue-light: #eef3fb;

    --ucu-red: #d7014d;
    --ucu-red-dark: #aa003d;
    --ucu-red-light: #fff0f5;

    --app-bg: #f5f7fb;
    --sidebar-width: 265px;

    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
}


* {
    box-sizing: border-box;
}


body {
    margin: 0;
    background: var(--app-bg);
    color: var(--text-dark);
    font-family: Arial, Helvetica, sans-serif;
}


/*
|--------------------------------------------------------------------------
| LOGIN
|--------------------------------------------------------------------------
*/

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            var(--ucu-blue) 0%,
            #123f80 65%,
            var(--ucu-red) 100%
        );
}


.login-card {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, .22);
}


.login-brand {
    color: var(--ucu-blue);
    font-size: 26px;
    font-weight: 800;
}


.login-subtitle {
    color: var(--text-muted);
}


/*
|--------------------------------------------------------------------------
| APP LAYOUT
|--------------------------------------------------------------------------
*/

.app-shell {
    min-height: 100vh;
}


.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: var(--ucu-blue);
    color: #fff;
    overflow-y: auto;
    z-index: 1040;
}


.sidebar-brand {
    padding: 22px 20px;
    border-bottom:
        1px solid
        rgba(255,255,255,.14);
}


.sidebar-brand-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
}


.sidebar-brand-subtitle {
    margin-top: 4px;
    font-size: 12px;
    opacity: .75;
}


.sidebar-section {
    padding: 18px 12px 6px;
    color: rgba(255,255,255,.58);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}


.sidebar-nav {
    padding: 8px 10px 25px;
}


.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    margin: 3px 0;
    border-radius: 9px;
    color: rgba(255,255,255,.86);
    text-decoration: none;
    font-size: 14px;
    transition: .15s ease;
}


.sidebar-link:hover {
    background:
        rgba(255,255,255,.11);
    color: #fff;
}


.sidebar-link.active {
    background: var(--ucu-red);
    color: #fff;
    font-weight: 700;
}


.sidebar-icon {
    width: 22px;
    text-align: center;
    font-size: 16px;
}


.app-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}


.app-topbar {
    height: 68px;
    background: #fff;
    border-bottom:
        1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 1020;
}


.topbar-title {
    color: var(--ucu-blue);
    font-size: 18px;
    font-weight: 700;
}


.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}


.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ucu-blue-light);
    color: var(--ucu-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}


.app-content {
    padding: 28px;
}


/*
|--------------------------------------------------------------------------
| GENERAL
|--------------------------------------------------------------------------
*/

.page-title {
    color: var(--ucu-blue);
    font-weight: 800;
}


.page-subtitle {
    color: var(--text-muted);
}


.card-app {
    border: 0;
    border-radius: 15px;
    box-shadow:
        0 2px 13px
        rgba(15, 23, 42, .07);
}


.btn-ucu {
    background: var(--ucu-blue);
    border-color: var(--ucu-blue);
    color: #fff;
}


.btn-ucu:hover,
.btn-ucu:focus {
    background: var(--ucu-blue-dark);
    border-color: var(--ucu-blue-dark);
    color: #fff;
}


.btn-ucu-red {
    background: var(--ucu-red);
    border-color: var(--ucu-red);
    color: #fff;
}


.btn-ucu-red:hover,
.btn-ucu-red:focus {
    background: var(--ucu-red-dark);
    border-color: var(--ucu-red-dark);
    color: #fff;
}


.btn-outline-ucu {
    border-color: var(--ucu-blue);
    color: var(--ucu-blue);
}


.btn-outline-ucu:hover {
    background: var(--ucu-blue);
    color: #fff;
}


.text-ucu {
    color: var(--ucu-blue) !important;
}


.text-ucu-red {
    color: var(--ucu-red) !important;
}


.bg-ucu {
    background: var(--ucu-blue) !important;
}


.bg-ucu-red {
    background: var(--ucu-red) !important;
}


.table thead th {
    background: var(--ucu-blue-light);
    color: var(--ucu-blue);
    white-space: nowrap;
}


.stat-card {
    border: 0;
    border-radius: 15px;
    box-shadow:
        0 2px 13px
        rgba(15, 23, 42, .07);
}


.stat-value {
    color: var(--ucu-blue);
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
}


.stat-value-red {
    color: var(--ucu-red);
}


.stat-label {
    color: var(--text-muted);
    font-size: 13px;
}


.section-title {
    color: var(--ucu-blue);
    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

.mobile-menu-btn {
    display: none;
}


@media (max-width: 991px) {

    .app-sidebar {
        transform:
            translateX(-100%);
        transition:
            transform .2s ease;
    }


    body.sidebar-open
    .app-sidebar {
        transform:
            translateX(0);
    }


    .app-main {
        margin-left: 0;
    }


    .mobile-menu-btn {
        display:
            inline-flex;
    }


    .app-content {
        padding: 18px;
    }
}

/* =========================================================
   UCU SPORTS POWERHOUSE - GLOBAL TYPOGRAPHY
   ========================================================= */

html,
body {
    font-family: "Trebuchet MS", Trebuchet, Arial, sans-serif;
}

body,
button,
input,
select,
textarea,
table,
.form-control,
.form-select,
.form-check-label,
.btn,
.dropdown-menu,
.modal,
.card,
.alert,
.badge,
.nav-link,
.pagination,
.breadcrumb {
    font-family: "Trebuchet MS", Trebuchet, Arial, sans-serif !important;
}


/* =========================================================
   GLOBAL FORM APPEARANCE
   ========================================================= */

.form-control,
.form-select {
    border-radius: 8px;
    border-color: #d9dee7;
    min-height: 42px;
}

.form-control:focus,
.form-select:focus {
    border-color: #0b3d91;
    box-shadow: 0 0 0 0.2rem rgba(11, 61, 145, 0.12);
}


/* =========================================================
   GLOBAL BUTTON APPEARANCE
   ========================================================= */

.btn {
    border-radius: 8px;
    font-weight: 600;
}

.btn-ucu {
    background-color: #0b3d91;
    border-color: #0b3d91;
    color: #ffffff;
}

.btn-ucu:hover,
.btn-ucu:focus {
    background-color: #072b69;
    border-color: #072b69;
    color: #ffffff;
}

.btn-ucu-red {
    background-color: #d7014d;
    border-color: #d7014d;
    color: #ffffff;
}

.btn-ucu-red:hover,
.btn-ucu-red:focus {
    background-color: #aa003d;
    border-color: #aa003d;
    color: #ffffff;
}

.btn-outline-ucu {
    border-color: #0b3d91;
    color: #0b3d91;
}

.btn-outline-ucu:hover,
.btn-outline-ucu:focus {
    background-color: #0b3d91;
    border-color: #0b3d91;
    color: #ffffff;
}


/* =========================================================
   TABLE STANDARDISATION
   ========================================================= */

.table thead th {
    background: #f4f7fc;
    color: #263449;
    font-weight: 700;
    border-bottom: 2px solid #e3e8ef;
    white-space: nowrap;
}

.table tbody td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: #f8faff;
}


/* =========================================================
   MODALS
   ========================================================= */

.modal-content {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.modal-header {
    border-bottom: 1px solid #e9edf4;
}

.modal-footer {
    border-top: 1px solid #e9edf4;
}


/* =========================================================
   PAGE TITLES
   ========================================================= */

.page-title {
    color: #0b3d91;
    font-weight: 800;
}

.page-subtitle {
    color: #6b7280;
}

.section-title {
    color: #0b3d91;
    font-weight: 700;
}


/* =========================================================
   CARDS
   ========================================================= */

.card-app,
.stat-card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .25px;
}

.stat-value {
    color: #0b3d91;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.stat-value-red {
    color: #d7014d;
}


/* =========================================================
   UCU COLOURS
   ========================================================= */

.text-ucu {
    color: #0b3d91 !important;
}

.text-ucu-red {
    color: #d7014d !important;
}

.bg-ucu {
    background-color: #0b3d91 !important;
    color: #ffffff !important;
}

.bg-ucu-red {
    background-color: #d7014d !important;
    color: #ffffff !important;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.pagination .page-link {
    color: #0b3d91;
}

.pagination .page-item.active .page-link {
    background-color: #0b3d91;
    border-color: #0b3d91;
    color: #ffffff;
}


/* =========================================================
   RESPONSIVE TABLES
   ========================================================= */

.table-responsive {
    border-radius: 10px;
}

@media (max-width: 767.98px) {

    .page-title {
        font-size: 1.55rem;
    }

    .stat-value {
        font-size: 25px;
    }

    .btn {
        min-height: 40px;
    }
}

/* =========================================================
   UCU BRAND LOGO
   ========================================================= */

.sidebar-ucu-brand {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px 14px 16px;

    text-decoration: none;
}

.sidebar-ucu-logo-box {
    width: 100%;

    background: #ffffff;

    border-radius: 13px;

    padding: 9px 10px;

    display: flex;

    align-items: center;
    justify-content: center;

    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
}

.sidebar-ucu-logo {
    width: 190px;
    max-width: 100%;
    max-height: 72px;

    object-fit: contain;
}


/* LOGIN BRAND */

.login-ucu-logo {
    width: 260px;
    max-width: 100%;
    max-height: 110px;

    object-fit: contain;
}


/* TOPBAR BRAND IF REQUIRED */

.topbar-ucu-logo {
    width: 155px;
    max-height: 50px;

    object-fit: contain;
}


/* MOBILE */

@media (max-width: 767.98px) {

    .sidebar-ucu-logo {
        width: 165px;
    }

    .login-ucu-logo {
        width: 220px;
    }
}
