/* =========================================================
   CLUB SACCO IMS - CLEAN CURRENT SITE STYLES
   Theme: Light blue background, white cards, sky-blue actions
   ========================================================= */


/* =========================================================
   BASE / GLOBAL
   ========================================================= */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: #EAF8FF !important;
    color: #111827;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.container {
    max-width: 1320px;
}

a {
    color: #0EA5E9;
}

    a:hover {
        color: #0284C7;
    }

main h1,
main h2,
main h3 {
    color: #0EA5E9 !important;
    font-weight: 800;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navbar {
    background-color: #9CDCFE !important;
    border-bottom: none !important;
    box-shadow: none !important;
    min-height: 58px;
    position: relative;
}

    .navbar > .container,
    .navbar > .container-fluid {
        position: relative;
    }

    .navbar .nav-link,
    .navbar .navbar-brand,
    .navbar a,
    .navbar span {
        color: #000000 !important;
        font-weight: 600;
    }

.main-menu {
    align-items: center;
    gap: 4px;
}

.navbar-user-area {
    position: absolute;
    left: 14px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 18px;
    align-items: center;
    font-weight: 600;
    z-index: 10;
}

.dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #BDEBFF;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.10);
}

.dropdown-item {
    color: #111827 !important;
    font-weight: 500;
}

    .dropdown-item:hover {
        background-color: #EAF8FF !important;
        color: #0EA5E9 !important;
    }

@media (max-width: 991px) {
    .navbar-user-area {
        position: static;
        transform: none;
        margin-left: 0;
        margin-top: 12px;
        justify-content: flex-start;
    }

    .main-menu {
        align-items: flex-start;
    }
}


/* =========================================================
   BUTTONS / FORMS / CARDS
   ========================================================= */

.btn-primary,
button.btn-primary,
input.btn-primary {
    background-color: #0EA5E9 !important;
    border-color: #0EA5E9 !important;
    color: #ffffff !important;
    font-weight: 600;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        background-color: #0284C7 !important;
        border-color: #0284C7 !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }

.btn-secondary {
    font-weight: 600;
}

.form-control:focus,
.form-select:focus {
    border-color: #0EA5E9;
    box-shadow: 0 0 0 0.18rem rgba(14, 165, 233, 0.18);
}

.card,
.card.shadow-sm {
    background-color: #ffffff !important;
    border: 1px solid #BDEBFF;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.08) !important;
}

.card-body {
    overflow-x: auto !important;
}

.page-link-text {
    color: #0EA5E9 !important;
    text-decoration: none !important;
    font-weight: 500;
}

    .page-link-text:hover {
        color: #0284C7 !important;
        text-decoration: none !important;
    }


/* =========================================================
   TABLES
   ========================================================= */

.table {
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
    background-color: #ffffff;
}

    .table th,
    .table td {
        white-space: nowrap !important;
        vertical-align: middle !important;
    }

        .table th.narration-col,
        .table td.narration-col {
            white-space: normal !important;
            min-width: 280px !important;
            max-width: 420px !important;
            width: 420px !important;
        }

    .table thead th,
    .table thead th * {
        font-weight: 700 !important;
    }

    .table tbody td,
    .table tbody td *,
    .table tbody td a,
    .table tbody td strong,
    .table tbody td span {
        font-weight: 400 !important;
    }

.badge {
    font-weight: 600 !important;
}


/* =========================================================
   STAFF / ADMIN DASHBOARD
   ========================================================= */

.dashboard-page {
    padding-top: 20px;
    padding-bottom: 40px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 34px;
}

    .dashboard-header h1 {
        font-size: 2.4rem;
        margin-bottom: 8px;
        color: #0EA5E9 !important;
        font-weight: 800;
    }

    .dashboard-header p {
        color: #334155;
        margin-bottom: 0;
    }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 34px;
}

.dashboard-grid-centered {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-tile {
    background-color: #ffffff;
    border: 1px solid #BDEBFF;
    border-radius: 20px;
    padding: 26px 28px;
    min-height: 130px;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.08);
}

.top-dashboard-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.highlight-tile {
    border-color: #8DDCFA;
}

.tile-title {
    color: #0EA5E9;
    font-weight: 800;
    margin-bottom: 12px;
}

.tile-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 12px;
}

.tile-note {
    color: #52658A;
    font-weight: 700;
}

.dashboard-link {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: inherit;
}

    .dashboard-link:hover {
        color: #0284C7 !important;
        text-decoration: none !important;
    }

.summary-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 34px;
}

.summary-section-centered {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.summary-panel {
    background-color: #ffffff;
    border: 1px solid #BDEBFF;
    border-radius: 20px;
    padding: 28px 30px;
    min-height: 260px;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.08);
}

.summary-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0EA5E9;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px dashed #cbd5e1;
}

    .summary-row span {
        color: #334155;
    }

    .summary-row strong {
        color: #000000;
        font-weight: 800;
        text-align: right;
    }

.networth-value {
    color: #0EA5E9;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 24px;
}


/* =========================================================
   MEMBER SELF SERVICE DASHBOARD
   Current layout: left actions + 3 top cards + 3 bottom cards
   ========================================================= */

.ssp-page {
    max-width: 1380px;
    margin: 0 auto;
    padding: 24px 20px 50px 20px;
}

.ssp-body {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 90px;
    align-items: center;
}

.ssp-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ssp-header {
    width: 100%;
    text-align: center;
    margin-bottom: 34px;
}

    .ssp-header h1 {
        color: #0EA5E9 !important;
        font-size: 2.45rem;
        font-weight: 800;
        margin-bottom: 8px;
    }

    .ssp-header p {
        color: #1e293b;
        margin-bottom: 0;
    }

.ssp-actions-panel {
    background-color: #EAF8FF !important;
    border: 1px solid #BDEBFF;
    border-radius: 18px;
    padding: 28px 30px;
    min-height: 385px;
    box-shadow: none !important;
}

    .ssp-actions-panel h3 {
        color: #0EA5E9 !important;
        font-size: 1.1rem;
        font-weight: 800;
        margin-bottom: 24px;
    }

.ssp-action-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ssp-action-button {
    display: block;
    width: 100%;
    background-color: #0EA5E9 !important;
    color: #ffffff !important;
    font-weight: 800;
    text-align: center;
    text-decoration: none !important;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #0EA5E9;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.18);
}

    .ssp-action-button:hover {
        background-color: #0284C7 !important;
        border-color: #0284C7 !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

.ssp-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ssp-top-grid,
.ssp-bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 28px;
}

.ssp-card {
    background-color: #ffffff;
    border: 1px solid #BDEBFF;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.08);
}

.ssp-small-card {
    min-height: 145px;
    padding: 28px 30px;
}

.ssp-large-card {
    min-height: 300px;
    padding: 28px 30px;
}

.ssp-card h4 {
    color: #0EA5E9 !important;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
}

    .ssp-card h4 a {
        color: inherit !important;
        text-decoration: none !important;
    }

.ssp-card > strong {
    display: block;
    color: #000000;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.ssp-card p {
    color: #52658A;
    font-weight: 700;
    margin-bottom: 0;
}

.ssp-card h3 {
    color: #0EA5E9 !important;
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 26px;
}

.ssp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px dashed #cbd5e1;
}

    .ssp-row span {
        color: #1e293b;
    }

    .ssp-row strong {
        color: #000000;
        font-weight: 800;
        text-align: right;
    }

        .ssp-row strong.text-danger {
            color: #dc3545 !important;
        }

.ssp-text-link {
    color: #000000 !important;
    text-decoration: none !important;
}

    .ssp-text-link:hover {
        color: #0EA5E9 !important;
        text-decoration: none !important;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
    .dashboard-grid,
    .summary-section {
        grid-template-columns: 1fr;
    }

    .ssp-body {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ssp-actions-panel {
        min-height: auto;
    }

    .ssp-top-grid,
    .ssp-bottom-grid {
        grid-template-columns: 1fr;
    }
}
