/* Hide top landing header and footer on dashboard */

header,
header[role="banner"],
footer.main-footer {
    display: none !important;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 0;
}

.sidebar-logo img,
.sidebar-logo-img {
    height: 24px;
    width: auto;
    max-width: 135px;
    object-fit: contain;
}

.logo img.logo-desktop,
.logo-desktop,
.sidebar-logo img.logo-desktop,
.sidebar-logo-img.logo-desktop {
    display: inline-block !important;
    max-height: 38px;
    width: auto;
}

.logo img.logo-mobile,
.logo-mobile,
.sidebar-logo img.logo-mobile,
.sidebar-logo-img.logo-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .logo img.logo-desktop,
    .logo-desktop,
    .sidebar-logo img.logo-desktop,
    .sidebar-logo-img.logo-desktop {
        display: none !important;
    }
    .logo img.logo-mobile,
    .logo-mobile,
    .sidebar-logo img.logo-mobile,
    .sidebar-logo-img.logo-mobile {
        display: inline-block !important;
        max-height: 36px;
        width: auto;
    }
}

.sidebar-collapse-btn {
    background: transparent;
    border: none;
    color: #4B5563;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 15;
}

.sidebar-collapse-btn:hover {
    background: #f3f4f6;
    color: var(--primary);
}

.dashboard-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 2rem;

}

.welcome-text {

    color: var(--primary);

    font-weight: 700;

    margin: 0;

}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1rem;
}

@media (max-width: 1200px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card-simple,
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
    overflow: hidden;
}

.stat-card-simple:hover,
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.stat-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.stat-details h3,
.stat-details h4,
.stat-details .stat-label {
    margin: 0 0 0.25rem;
    font-size: 0.66rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.25;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.stat-details .amount,
.stat-details .stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.stat-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
}

.stat-icon.primary {
    background: #e0f2fe;
    color: #0284c7;
}

.stat-icon.secondary {
    background: #d1fae5;
    color: #059669;
}

/* Executive Action Buttons & Form Controls */
.btn-primary,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #036694 0%, #024a6b 100%);
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(3, 102, 148, 0.22);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.2;
}

.btn-primary:hover,
.btn-submit:hover {
    background: linear-gradient(135deg, #024a6b 0%, #01334b 100%);
    box-shadow: 0 6px 16px rgba(3, 102, 148, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active,
.btn-submit:active {
    transform: translateY(0);
}

.btn-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #0f172a;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-filter:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.3);
}

.stat-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.stat-details h3 {
    font-size: 0.7rem;
    color: #64748b;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.stat-details .amount {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.action-card,
.history-card {

    background: white;

    border-radius: 10px;

    padding: 1.5rem;

    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);

    border: 1px solid #eee;

    margin-bottom: 1.5rem;

}

.action-card h3,
.history-card h3 {

    font-size: 1.2rem;

    margin-bottom: 1.5rem;

    color: var(--dark);

    border-bottom: 1px solid #f3f4f6;

    padding-bottom: 0.5rem;

}

/* Card Header & Action Bar Spacing */
.card-header,
.table-header,
.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.35rem !important;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}

.card-header h3,
.table-header h3,
.dashboard-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

.table-container {
    margin-top: 0.75rem;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Styled horizontal scrollbar for mobile data tables */
.table-container::-webkit-scrollbar,
#activeLoansTableView::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.table-container::-webkit-scrollbar-track,
#activeLoansTableView::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb,
#activeLoansTableView::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover,
#activeLoansTableView::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.form-group-simple {

    margin-bottom: 1rem;

}

.form-group-simple label {

    display: block;

    margin-bottom: 0.5rem;

    font-size: 0.9rem;

    color: #4B5563;

}

.table-simple {
    width: 100%;
    border-collapse: collapse;
}

.table-simple th,
.table-simple td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
}

.table-simple th {
    background: transparent;
    color: #6b7280;
    font-weight: 500;
}

.table-simple tr:last-child td {
    border-bottom: none;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--light);
}

.sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid #eee;
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    align-self: flex-start;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.2s ease;
}

.sidebar-logo img,
.sidebar-logo-img {
    height: 25px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.sidebar-collapse-btn {
    background: transparent;
    border: none;
    color: #4B5563;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
    background: #f3f4f6;
    color: var(--primary);
}

.sidebar-menu-item {

    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: #4B5563;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
}

.sidebar-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.sidebar-menu-item .menu-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
}

.sidebar-menu-item:hover,
.sidebar-menu-item.active {
    background: #e0f2fe;
    color: var(--primary);
}

/* Collapsed Sidebar Mode */
.sidebar.collapsed {
    width: 76px;
    padding: 1rem 0.5rem;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding-bottom: 0.75rem;
}

.sidebar.collapsed .sidebar-logo {
    display: none;
}

.sidebar.collapsed .sidebar-collapse-btn {
    margin: 0 auto;
}

.sidebar.collapsed .sidebar-menu-item {
    justify-content: center;
    padding: 0.75rem 0.25rem;
    gap: 0;
}

.sidebar.collapsed .sidebar-menu-item .menu-label {
    display: none;
}

.sidebar.collapsed .sidebar-menu-item i {
    width: auto;
    font-size: 1.25rem;
    margin: 0;
}

/* Floating Tooltip in Collapsed Mode on Desktop */
@media (min-width: 993px) {
    .sidebar.collapsed .sidebar-menu-item:hover::after {
        content: attr(title);
        position: absolute;
        left: calc(100% + 12px);
        top: 50%;
        transform: translateY(-50%);
        background: #1f2937;
        color: #ffffff;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 0.35rem 0.75rem;
        border-radius: 6px;
        white-space: nowrap;
        z-index: 1000;
        pointer-events: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        animation: fadeInTooltip 0.15s ease-out;
    }

    .sidebar.collapsed .sidebar-menu-item:hover::before {
        content: '';
        position: absolute;
        left: calc(100% + 6px);
        top: 50%;
        transform: translateY(-50%);
        border-width: 5px 6px 5px 0;
        border-style: solid;
        border-color: transparent #1f2937 transparent transparent;
        z-index: 1000;
        pointer-events: none;
    }

    @keyframes fadeInTooltip {
        from {
            opacity: 0;
            transform: translateY(-50%) translateX(-4px);
        }

        to {
            opacity: 1;
            transform: translateY(-50%) translateX(0);
        }
    }
}

.main-content {

    flex: 1;

    padding: 2rem;

    max-width: 100%;

    overflow-x: hidden;

    display: flex;

    flex-direction: column;

}

.dashboard-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .dashboard-charts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dashboard-wrapper {
        flex-direction: column;
        width: 100%;
        overflow-x: hidden;
    }

    /* Responsive Sidebar Drawer */
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -260px !important;
        /* Slide off-screen */
        width: 250px !important;
        height: 100vh !important;
        background: white !important;
        border-right: 1px solid #eee !important;
        z-index: 99999 !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 1.5rem 1rem !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
        overflow-y: auto !important;
    }

    .sidebar.active {
        left: 0 !important;
        /* Slide in! */
    }

    /* Sidebar Toggle Trigger Button */
    .sidebar-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: white !important;
        border: 1px solid #d1d5db !important;
        border-radius: 8px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        color: var(--dark) !important;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        transition: var(--transition);
    }

    .sidebar-toggle:hover {
        background: #f3f4f6 !important;
    }

    /* Overlay Backdrop */
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        z-index: 99998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Close Header inside Sidebar */
    .sidebar-header,
    .sidebar-collapse-btn {
        display: none !important;
    }

    .sidebar-mobile-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 1rem;
        border-bottom: 1px solid #f3f4f6;
        margin-bottom: 1rem;
        width: 100%;
    }

    .sidebar-mobile-header span {
        font-weight: 700;
        color: var(--primary);
        font-size: 1.1rem;
    }

    #sidebarCloseBtn {
        background: transparent;
        border: none;
        font-size: 1.25rem;
        color: #6B7280;
        cursor: pointer;
        padding: 0.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s;
    }

    #sidebarCloseBtn:hover {
        color: var(--danger);
    }

    .sidebar-logo {
        display: none !important;
        /* Hide default sidebar logo on mobile since we have a header in drawer */
    }

    .sidebar-menu-item {
        width: 100%;
        margin-top: 0 !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
    }

    .sidebar-menu-item.text-danger {
        margin-top: auto !important;
        /* Stick logout to bottom of mobile drawer */
    }

    .main-content {
        padding: 0.75rem !important;
        /* Reduced padding from 1.25rem to maximize card width on mobile */
        width: 100%;
        overflow-x: hidden;
    }

    .action-card,
    .history-card {
        padding: 1rem !important;
        /* Compact padding inside cards on mobile */
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .table-simple th,
    .table-simple td {
        padding: 0.5rem 0.25rem !important;
        /* Compact padding on mobile for fit */
        font-size: 0.8rem !important;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem 0.4rem !important;
        /* Compact table cells on mobile */
        font-size: 0.8rem !important;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }

    .stat-card-simple,
    .stat-card {
        padding: 0.85rem 0.65rem !important;
        gap: 0.5rem !important;
    }

    .stat-icon {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        font-size: 1rem !important;
    }

    .stat-details h3,
    .stat-details h4,
    .stat-details .stat-label {
        font-size: 0.58rem !important;
        line-height: 1.2 !important;
        letter-spacing: 0.01em !important;
    }

    .stat-details .amount,
    .stat-details .stat-value {
        font-size: 1.15rem !important;
    }

    .dashboard-header h2 {
        font-size: 1.15rem !important;
        margin-bottom: 0.15rem !important;
    }

    .page-subtitle-mobile-hide,
    .dashboard-header p {
        display: none !important;
    }

    .topbar {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 1.5rem !important;
        width: 100%;
        gap: 0.5rem !important;
    }

    .topbar-search {
        display: none !important;
        /* Hide search bar on mobile */
    }

    .topbar-title {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        max-width: none !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    /* Right-side flex container for notification & profile */
    .topbar>div:last-child {
        gap: 0.75rem !important;
        /* Reduce spacing on mobile */
    }

    .profile-info {
        display: none !important;
        /* Hide text name/role on mobile */
    }

    .profile-widget {
        margin-top: 0;
        gap: 0.25rem !important;
    }

    .profile-widget .fa-chevron-down,
    .profile-widget .profile-chevron {
        display: none !important;
    }

    .profile-avatar {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.9rem !important;
        cursor: pointer !important;
    }

    .recent-tx-title {
        font-size: 0.92rem !important;
    }

    .view-statement-link {
        font-size: 0.72rem !important;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1.5rem;
        border: 1px solid #eee;
        border-radius: 8px;
    }

    /* Make form overlays fit well */
    .modal-content,
    .confirm-modal {
        max-width: 100% !important;
        margin: 1rem;
    }

    .credit-desc {
        display: none !important;
    }

    /* 2-in-a-row Stats Cards on Mobile */
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        margin-bottom: 1.5rem !important;
    }

    .stat-card-simple {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 1rem !important;
        gap: 0.5rem !important;
    }

    .stat-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }

    .stat-details h3 {
        font-size: 0.64rem !important;
        margin-bottom: 0.15rem !important;
    }

    .stat-details .amount {
        font-size: 1.05rem !important;
    }
}



/* Topbar */

.topbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 1.15rem;

}

.topbar-title {

    font-size: 1.25rem;

    font-weight: 700;

    color: var(--dark);

    margin: 0;

}

.topbar-search {

    display: flex;

    align-items: center;

    background: white;

    padding: 0.6rem 1.25rem;

    border-radius: 25px;

    width: 100%;

    max-width: 400px;

    margin: 0 2rem;

    border: 1px solid #d1d5db;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);

}

.topbar-search input {

    border: none;

    background: transparent;

    outline: none;

    width: 100%;

    margin-left: 0.5rem;

    font-size: 0.9rem;

    color: #374151;

}

.profile-widget {

    display: flex;

    align-items: center;

    gap: 0.75rem;

}

.profile-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;

    .data-table th,
    .data-table td {
        padding: 0.5rem 0.4rem !important;
        /* Compact table cells on mobile */
        font-size: 0.8rem !important;
    }

    .topbar {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 1.5rem !important;
        width: 100%;
        gap: 0.5rem !important;
    }

    .topbar-search {
        display: none !important;
        /* Hide search bar on mobile */
    }

    .topbar-title {
        font-size: 1rem !important;
        /* Slightly smaller on mobile to avoid crowding */
        font-weight: 700;
        white-space: normal !important;
        /* Allow wrapping */
        max-width: 50% !important;
        /* Limit width so other items fit */
        line-height: 1.2 !important;
    }

    /* Right-side flex container for notification & profile */
    .topbar>div:last-child {
        gap: 0.75rem !important;
        /* Reduce spacing on mobile */
    }

    .profile-info {
        display: none !important;
        /* Hide text name/role on mobile */
    }

    .profile-widget {
        margin-top: 0;
        gap: 0.25rem !important;
    }

    .profile-widget .fa-chevron-down,
    .profile-widget .profile-chevron {
        display: none !important;
    }

    .profile-avatar {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.9rem !important;
        cursor: pointer !important;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1.5rem;
        border: 1px solid #eee;
        border-radius: 8px;
    }

    /* Make form overlays fit well */
    .modal-content,
    .confirm-modal {
        max-width: 100% !important;
        margin: 1rem;
    }

    .credit-desc {
        display: none !important;
    }

    /* 2-in-a-row Stats Cards on Mobile */
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        margin-bottom: 1.5rem !important;
    }

    .stat-card-simple {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 1rem !important;
        gap: 0.5rem !important;
    }

    .stat-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }

    .stat-details h3 {
        font-size: 0.64rem !important;
        margin-bottom: 0.15rem !important;
    }

    .stat-details .amount {
        font-size: 0.85rem !important;
    }
}



/* Topbar */

.topbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 1.15rem;

}

.topbar-title {

    font-size: 1.25rem;

    font-weight: 700;

    color: var(--dark);

    margin: 0;

}

.topbar-search {

    display: flex;

    align-items: center;

    background: white;

    padding: 0.6rem 1.25rem;

    border-radius: 25px;

    width: 100%;

    max-width: 400px;

    margin: 0 2rem;

    border: 1px solid #d1d5db;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);

}

.topbar-search input {

    border: none;

    background: transparent;

    outline: none;

    width: 100%;

    margin-left: 0.5rem;

    font-size: 0.9rem;

    color: #374151;

}

.profile-widget {

    display: flex;

    align-items: center;

    gap: 0.75rem;

}

.profile-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.profile-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.2;
}

.profile-info p {
    margin: 0;
    font-size: 0.75rem;
    color: #6B7280;
}

.profile-container {
    position: relative;
    cursor: pointer;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    width: 210px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(226, 232, 240, 0.6);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    animation: dropdownSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-dropdown.show {
    display: flex;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-dropdown-body {
    padding: 0.4rem 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.profile-dropdown-footer {
    padding: 0.4rem 0.4rem;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

.profile-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    color: #334155;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.profile-dropdown .dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.92rem;
    color: #64748b;
    transition: color 0.15s ease;
}

.profile-dropdown .dropdown-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.profile-dropdown .dropdown-item:hover i {
    color: #10b981;
}

.profile-dropdown .dropdown-item-logout {
    color: #dc2626;
}

.profile-dropdown .dropdown-item-logout i {
    color: #ef4444;
}

.profile-dropdown .dropdown-item-logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.profile-dropdown .dropdown-item-logout:hover i {
    color: #b91c1c;
}

/* Unified Modal and Form Styles */
.modal-overlay,
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.show,
.modal-backdrop.show {
    display: flex;
}

.modal-content,
.confirm-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8f0;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header,
.confirm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    border-radius: 16px 16px 0 0;
}

.modal-header h3,
.confirm-modal-title {
    margin: 0;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-close {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
    color: #0f172a;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* --- Admin Reports Dashboard Specific Styles --- */
.summary-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-stats-grid .stat-card {
    color: #1e293b;
}

.summary-stats-grid .stat-card h3 {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
}

.summary-stats-grid .stat-card .amount {
    color: #036694;
    font-size: 2.25rem;
    line-height: 1;
    margin: 0;
}

.summary-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.summary-stat-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    flex-shrink: 0 !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
}

.summary-stat-icon.blue {
    background: #e0f2fe;
    color: #0284c7;
}

.summary-stat-icon.emerald {
    background: #d1fae5;
    color: #059669;
}

.summary-stat-icon.amber {
    background: #fef3c7;
    color: #d97706;
}

.summary-stat-icon.purple {
    background: #f3e8ff;
    color: #9333ea;
}

.summary-stat-icon.rose {
    background: #ffe4e6;
    color: #e11d48;
}

.summary-stat-icon.cyan {
    background: #cffafe;
    color: #0891b2;
}

.summary-stat-info h4 {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.summary-stat-info p {
    margin: 0.25rem 0 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.filter-input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

.filter-input:focus {
    outline: none;
    border-color: #0ea5e9;
}

.btn-action-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-report {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.2s;
}

.btn-preview {
    background: #0ea5e9;
    color: white;
}

.btn-preview:hover {
    background: #0284c7;
}

.btn-csv {
    background: #10b981;
    color: white;
}

.btn-csv:hover {
    background: #059669;
}

.btn-print {
    background: #475569;
    color: white;
}

.btn-print:hover {
    background: #334155;
}

.preview-totals-banner {
    display: flex;
    gap: 2rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #0ea5e9;
}

.total-stat-item h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #64748b;
}

.total-stat-item p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th,
.report-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    font-size: 0.9rem;
}

.report-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.badge.approved,
.badge.active {
    background: #dcfce7;
    color: #166534;
}

.badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

@media print {
    .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    .print-area {
        box-shadow: none;
        border: none;
        padding: 0;
    }
}

.filter-input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

.filter-input:focus {
    outline: none;
    border-color: #0ea5e9;
}

.btn-action-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-report {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.2s;
}

.btn-preview {
    background: #0ea5e9;
    color: white;
}

.btn-preview:hover {
    background: #0284c7;
}

.btn-csv {
    background: #10b981;
    color: white;
}

.btn-csv:hover {
    background: #059669;
}

.btn-print {
    background: #475569;
    color: white;
}

.btn-print:hover {
    background: #334155;
}

.preview-totals-banner {
    display: flex;
    gap: 2rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #0ea5e9;
}

.total-stat-item h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #64748b;
}

.total-stat-item p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th,
.report-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    font-size: 0.9rem;
}

.report-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.badge.approved,
.badge.active {
    background: #dcfce7;
    color: #166534;
}

.badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

@media print {
    .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    .print-area {
        box-shadow: none;
        border: none;
        padding: 0;
    }
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

.status-badge.completed,
.status-badge.approved {
    background: #d1fae5;
    color: #059669;
}

.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.failed,
.status-badge.rejected {
    background: #fee2e2;
    color: #dc2626;
}

header {
    display: none !important;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--light);
}

/* Active Loan Card & Grid Styles */
.simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.loan-card-box {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.loan-card-box:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

.loan-stat {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.9rem;
}

.loan-stat:last-of-type {
    border-bottom: none;
}

.loan-stat label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.875rem;
    margin: 0 !important;
}

.loan-stat .val {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.76rem;
    text-align: right;
}

.loan-stat .val.blue {
    color: #0284c7;
}

.loan-stat .val.green {
    color: #10b981;
}

.loan-stat .val.red {
    color: #dc2626;
    font-size: 0.88rem;
}

.progress-bar-wrap {
    background: #f1f5f9;
    border-radius: 99px;
    height: 8px;
    width: 100%;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%);
    height: 100%;
    border-radius: 99px;
}

.progress-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    text-align: right;
}

.repay-form {
    display: block;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}

.repay-amount-input {
    width: 100%;
    padding: 0.65rem 0.75rem 0.65rem 2.2rem !important;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
    background: #ffffff;
}

.repay-amount-input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

.btn-repay-now {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    whitespace: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.btn-repay-now:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 4px 8px rgba(2, 132, 199, 0.35);
    transform: translateY(-1px);
}

.btn-apply-loan {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #ffffff !important;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.25), 0 2px 4px -2px rgba(14, 165, 233, 0.15);
}

.btn-apply-loan:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(14, 165, 233, 0.35);
}

.btn-apply-loan:active {
    transform: translateY(0);
}

.btn-apply-loan:disabled {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border: 1px solid #cbd5e1;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none !important;
}

.btn-action-approve {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
}

.btn-action-approve:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.35);
}

.btn-action-approve:active {
    transform: translateY(0) scale(1);
}

.btn-action-reject {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff !important;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(244, 63, 94, 0.25);
}

.btn-action-reject:hover {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 8px rgba(244, 63, 94, 0.35);
}

.btn-action-reject:active {
    transform: translateY(0) scale(1);
}

.btn-manual-loan {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.25), 0 2px 4px -2px rgba(16, 185, 129, 0.15);
}

.btn-manual-loan:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(16, 185, 129, 0.35);
}

.btn-manual-loan:active {
    transform: translateY(0);
}

/* View Toggle Switcher & List View Mode */
.view-toggle-group {
    display: inline-flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.view-toggle-btn {
    background: transparent;
    border: none;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.view-toggle-btn:hover {
    color: #0f172a;
}

.view-toggle-btn.active {
    background: white;
    color: #0284c7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.active-loans-container.list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.active-loans-container.list-view .loan-card-box {
    margin-bottom: 0;
}

/* Request Withdrawal Button Styling */
.btn-request-withdrawal {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.55rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.25), 0 2px 4px -2px rgba(16, 185, 129, 0.15);
}

.btn-request-withdrawal:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(16, 185, 129, 0.35);
}

.btn-request-withdrawal:active {
    transform: translateY(0);
}

/* Buy Shares Button Styling */
.btn-buy-shares {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.55rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.25), 0 2px 4px -2px rgba(16, 185, 129, 0.15);
}

.btn-buy-shares:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(16, 185, 129, 0.35);
}

.btn-buy-shares:active {
    transform: translateY(0);
}

/* Executive Savings Hero Buttons */
.btn-hero-deposit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-hero-deposit:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-hero-deposit:active {
    transform: translateY(0);
}

.btn-hero-withdraw {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-hero-withdraw:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-hero-withdraw:active {
    transform: translateY(0);
}

/* Add New Guarantor Button Styling */
.btn-add-guarantor {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.55rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.25), 0 2px 4px -2px rgba(16, 185, 129, 0.15);
}

.btn-add-guarantor:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(16, 185, 129, 0.35);
}

.btn-add-guarantor:active {
    transform: translateY(0);
}

/* Native Mobile App Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 72px !important;
    }

    .main-content,
    main {
        padding-bottom: 80px !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 64px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-top: 1px solid #e2e8f0 !important;
        z-index: 99990 !important;
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08) !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 0 0.25rem !important;
    }

    .mobile-nav-item {
        flex: 1;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        color: #64748b !important;
        text-decoration: none !important;
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        padding: 0.4rem 0 !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        gap: 3px !important;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-item i {
        font-size: 1.25rem !important;
        transition: transform 0.2s ease !important;
    }

    .mobile-nav-item.active {
        color: #036694 !important;
        font-weight: 800 !important;
    }

    .mobile-nav-item.active i {
        transform: translateY(-2px) scale(1.08) !important;
        color: #036694 !important;
    }

    .mobile-nav-item:active {
        transform: scale(0.92);
    }
}

/* PWA Install Banner Popup */
#pwaInstallBanner {
    position: fixed;
    bottom: 74px;
    left: 1rem;
    right: 1rem;
    max-width: 450px;
    margin: 0 auto;
    background: #0f172a;
    color: white;
    padding: 0.85rem 1.15rem;
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    z-index: 99995;
    animation: slideUpPWA 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpPWA {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.pwa-icon {
    width: 40px;
    height: 40px;
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pwa-text {
    flex: 1;
    min-width: 0;
}

.pwa-text strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 2px;
}

.pwa-text p {
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.25;
}

.pwa-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-pwa-install {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.3);
}

.btn-pwa-dismiss {
    background: transparent;
    color: #94a3b8;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
}