﻿/*html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}*/

:root {
    --bg: #f6f9fb;
    --card: #ffffff;
    --primary: #2A7DE1;
    --primary-600: #1f63c6;
    --muted: #6b7280;
    --accent: #2EC4B6;
    --soft: #eef6ff;
    --danger: #e15555;
    --success: #2aa36b;
    --rounded: 14px;
    --shadow: 0 8px 20px rgba(24,39,75,0.06);
}

* {
    box-sizing: border-box
}

/* html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg);
    color: #0f1724;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    line-height: 1.3;
} */

/* Warning Banner */
.warning-banner {
    background: #ffe9d6;
    color: #8a3e00;
    padding: 12px 20px;
    font-size: 16px;
    line-height: 1.4;
    border-bottom: 1px solid #f0d2b2;
    text-align: center;
    font-weight: 400;
}

.logout-btn {
    background: #d5442b;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* Layout */
.app {
    display: flex;
    min-height: 100vh;
    gap: 28px;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #a7c7ed 0%, #003359 100%);
    color: white;
    padding: 28px 18px;
    border-radius: 8px;
    height: calc(100vh - 166px);
    margin: 18px;
    box-shadow: var(--shadow);  
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

    .brand .logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: rgba(255,255,255,0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
    }

    .brand h1 {
        font-size: 18px;
        margin: 0;
        padding: 0;
        font-weight: 700
    }

.nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px
}

    .nav a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border-radius: 10px;
        color: rgba(255,255,255,0.98);
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
    }

        .nav a:hover, .nav a.active {
            background: rgba(255,255,255,0.08);
            transform: translateY(-1px);
        }

    .nav svg {
        opacity: 0.95
    }

.sidebar .footer {
    margin-top: auto;
    font-size: 13px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Main column */
.main {
    flex: 1;
    padding: 28px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
}

.user {
    display: flex;
    align-items: center;
    gap: 26px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(180deg,#e6f0ff,#ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(20,40,80,0.06);
}

.user .name {
    font-weight: 600;
    color: #0f1724
}

/* Content grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

/* Left area */
.left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Quick stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stat-card {
    background: var(--card);
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(15,23,36,0.04);
}

    .stat-card .label {
        color: var(--muted);
        font-size: 13px;
        margin-bottom: 6px
    }

    .stat-card .value {
        font-size: 20px;
        font-weight: 700
    }

/* Hero withdraw card */
.hero {
    display: flex;
    gap: 18px;
    background: linear-gradient(90deg, #e8f6ff, #ddecef);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    align-items: center;
}

    .hero .hero-left {
        flex: 1
    }

    .hero h2 {
        margin: 0;
        font-size: 20px
    }

    .hero p {
        margin: 8px 0 0;
        color: var(--muted)
    }

    /*.btn-primary {
    display: inline-block;
    margin-top: 12px;
    background: var(--primary);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(42,125,225,0.18);
}*/

    .hero .hero-ill {
        width: 110px;
        height: 80px;
        border-radius: 10px;
        background: rgba(47,143,232,0.08);
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* Transaction card */
.card {
    background: var(--card);
    padding: 18px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(15,23,36,0.04);
}

/*.card h3 {
        margin: 0 0 12px 0;
        font-size: 18px
    }*/

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.tab {
    padding: 8px 12px;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    border: 1px solid transparent;
    font-weight: 600;
}

    .tab.active {
        background: rgba(15,23,36,0.03);
        color: #0f1724;
        border-color: rgba(15,23,36,0.04)
    }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px
}

thead th {
    text-align: left;
    color: var(--muted);
    font-weight: 600;
    padding: 10px 8px;
    border-bottom: 1px dashed rgba(15,23,36,0.06)
}

tbody td {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(15,23,36,0.02);
    vertical-align: middle;
}

tfoot td {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(15,23,36,0.02);
    vertical-align: middle;
    font-size: 16px;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    background: rgba(15,23,36,0.03)
}

.amount.negative {
    color: var(--danger);
    font-weight: 700
}

.amount.positive {
    color: var(--success);
    font-weight: 700
}

.status {
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(46,196,182,0.12);
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    display: inline-block;
}

    .status.failed {
        background: rgba(225,85,85,0.08);
        color: var(--danger)
    }

    .status.completed {
        background: rgba(46,196,182,0.08);
        color: var(--success)
    }

/* Right column */
.right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-card {
    padding: 18px;
    border-radius: 12px;
    background: var(--card);
    box-shadow: var(--shadow);
    border: 1px solid rgba(15,23,36,0.04)
}

    .profile-card .meta {
        display: flex;
        gap: 12px;
        align-items: center
    }

        .profile-card .meta .avatar-lg {
            width: 64px;
            height: 64px;
            border-radius: 999px;
            background: linear-gradient(180deg,#e6f0ff,#ffffff);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
        }

    .profile-card .available {
        font-size: 16px;
        /*font-weight: 800;*/
        margin-top: 10px
    }

.mini-graph {
    height: 86px;
    background: linear-gradient(90deg,#f7fbff,#ffffff);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width:1000px) {
    .app {
        flex-direction: column
    }

    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        padding: 12px;
        border-radius: 12px;
        margin: 12px
    }

    .nav {
        flex-direction: row;
        gap: 8px;
        overflow: auto
    }

    .content-grid {
        grid-template-columns: 1fr;
        padding: 0
    }

    .sidebar .footer {
        display: none
    }
}

@media (max-width:720px) {
    .stats {
        grid-template-columns: repeat(2, 1fr)
    }
}

/* small helpers */
.muted {
    color: var(--muted)
}

.small {
    font-size: 13px
}

.reqspan {
    font-size: 16px;
    color: #DE5959;
}

.header-note {
    margin-left: 8rem;
    font-weight: 600;
    position: absolute;
    width: 55%;
    border-radius: 3px;
}

    .header-note a {
        background-color: #fff3cd;
        padding: 13px;
        position: absolute;
        cursor: default;
        border-radius: 3px;
        font-size: 12px;
        color: #8c1621;
    }

#totalBalance {
    background: #f2f2f2;
}

@media(max-width:2400px) {
    .header-note {
        width: 38%;
    }
}

@media(max-width:1600px) {
    .header-note {
        width: 55%;
    }
}

.ellipsis {
    white-space: nowrap; /* Prevents text from wrapping */
    overflow: hidden; /* Hides overflow */
    text-overflow: ellipsis; /* Adds the ... */
    max-width: 30px;
}

@media(max-width:425px) {
    .header-note {
        display: none;
    }

    .new-logo {
        margin-left: 0px !important
    }

    .uname-header {
        margin-right: 2rem !important;
    }

    .dash-history {
        margin-top: 15px;
    }
}


@media(max-width:768px) {
    .header-note {
        width: 32%;
        overflow: scroll;
    }

        .header-note a {
            font-size: 7px;
        }
}

/* alert start */
.alert-heading {
    color: inherit;
}

.alert-link {
    font-weight: 700;
}

.alert-dismissible {
    padding-right: 3rem;
}

    .alert-dismissible .btn-close {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 2;
        padding: 1.25rem 1rem;
    }

.alert-primary {
    color: #084298;
    background-color: #cfe2ff;
    border-color: #b6d4fe;
}

    .alert-primary .alert-link {
        color: #06357a;
    }

.alert-secondary {
    color: #41464b;
    background-color: #e2e3e5;
    border-color: #d3d6d8;
}

    .alert-secondary .alert-link {
        color: #34383c;
    }

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

    .alert-success .alert-link {
        color: #0c4128;
    }

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

    .alert-info .alert-link {
        color: #04414d;
    }

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

    .alert-warning .alert-link {
        color: #523e02;
    }

.alert {
    position: relative;
    /*padding: 1rem 1rem;*/
    margin-bottom: 1rem;
    /*border: 1px solid transparent;*/
    border-radius: .25rem;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

    .alert-danger .alert-link {
        color: #6a1a21;
    }

.alert-light {
    color: #636464;
    background-color: #fefefe;
    border-color: #fdfdfe;
}

    .alert-light .alert-link {
        color: #4f5050;
    }

.alert-dark {
    color: #141619;
    background-color: #d3d3d4;
    border-color: #bcbebf;
}

    .alert-dark .alert-link {
        color: #101214;
    }
/* alert end */

/* spinner start */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #d9534f;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
/* spinner end */

/*datatable start */
.table-container {
    max-height: 600px; /* Adjust height as needed */
    overflow-y: auto;
    /*margin: 20px auto;*/
    width: 100%;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/*table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}*/

td input {
    width: 100%;
    box-sizing: border-box;
}

/*th {
    background-color: #74755d;
    position: sticky;
    top: 0;
    z-index: 1;
    color: #fff;
}*/
/* datatable end */

/* treasury start */
.t-header {
    background-color: #266066;
    color: white;
    padding: 5px;
    text-align: center;
}

.t-sub-header {
    border: 1px solid #ccc;
    padding: 10px;
}

    .t-sub-header div {
        margin-bottom: 4px;
    }

.t-info-section {
    margin-top: 30px;
    border-top: 2px dashed #ccc;
    padding-top: 30px;
}

.info-section table {
    width: 60%;
}

/*#treasury_content {
    position: relative;*/
/* width: 100%; */
/*height: 1100px;
    overflow: hidden;
}

    #treasury_content::before {
        content: "";
        position: absolute;
        top: 23%;
        left: 32%;
        width: 36%;
        height: 46%;
        background-image: url('../images/treasury.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.1;*/ /* Faint background */
/*z-index: 0;
        overflow: hidden;
    }*/

#treasury_content {
    position: relative;
    min-height: 1100px;
    overflow: hidden;
    z-index: 1; /* ensure content is above */
}

    #treasury_content::before {
        content: "";
        position: absolute;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%); /* 💡 this centers it */
        width: 400px; /* or use percentage if responsive */
        height: 400px;
        background-image: url('../images/treasury.png');
        background-size: contain; /* or cover */
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.1;
        z-index: 0;
        pointer-events: none; /* don't block interaction */
    }


#statementTable tbody td, .t-info-section tbody td {
    font-weight: 400;
}
/*
.content > * {
  position: relative;
  z-index: 1; /* Keeps content above the background 
}
*/
/* treasury end */
/* accordian start */
/*  .sidebar {
        width: 250px;
        background-color: #2c3e50;
        color: white;
        padding: 20px;
    }

        .sidebar h2 {
            margin-top: 0;
        }

        .sidebar ul {
            list-style: none;
            padding: 0;
        }

        .sidebar li {
            margin: 10px 0;
        } */
.main-tab-parent {
    flex-grow: 1;
}

.acc-tabs button {
    padding: 10px 57px;
    cursor: pointer;
    border: none;
    background-color: #ddd;
}

    .acc-tabs button.active {
        background-color: #bbb;
    }

.tab-content {
    display: none;
    background-color: white;
    margin-top: 20px;
}

    .tab-content.active {
        display: block;
    }
/* accordign end */

/* modal popup start */
.modal {
    display: none;
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease forwards;
}

/* Modal Content */
body.modal-open {
    overflow: hidden; /* disables scrolling */
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 22px;
    width: 450px;
    max-height: 80vh; /* restrict height */
    overflow-y: auto; /* enable vertical scroll */
    /*border-radius: 16px;*/
    position: relative;
    animation: slideIn 0.4s ease forwards;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

@media(max-width:768px) {
    .modal-content {
        margin: 14% auto;
    }

    .acc-tabs button {
        padding: 10px 30px;
    }
}

.modal-header {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.modal-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .close-btn:hover {
        color: #000;
    }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.form-group {
    margin-bottom: 15px;
}

.flexbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

input[type="text"], input[type="password"], textarea, input[type="email"], input[type="date"], input[type="time"], input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background-color: #f8f9fa;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background-color: #f8f9fa;
    appearance: none; /* removes default OS styling */
    -webkit-appearance: none; /* for Safari */
    -moz-appearance: none; /* for Firefox */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='gray' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

input[readonly] {
    color: #333;
    cursor: default;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* modal popup end */

/* Admin User Roles CSS start */
.action-btns button {
    margin: 2px;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.add-user-role-form {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    align-items: center;
}

    .add-user-role-form input[type=checkbox] {
        height: 20px;
        width: 20px;
        vertical-align: text-bottom;
    }
/* Admin User Roles CSS end */
