:root {
    --sidebar-width:  280px;
    --top-nav-height: 60px;
    --sidebar-collapsed-width: 180px;
    --primary-color: #41ce54;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fc;
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: linear-gradient(180deg, var(--primary-color) 0%, #224abe 100%);
    color: white;
    position: fixed;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    top: 0;
    left: 0;
}

@media (min-width: 768px) {
    .sidebar.offcanvas {
        transform: none !important;
        visibility: visible !important;
        position: fixed !important;
        z-index: 1000 !important;
        width: var(--sidebar-width);
        display: block !important;
    }
}

.sidebar-header {
    padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    padding: 1rem 0;
}

.avatar {
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.sidebar .nav-item {
    margin-bottom: 0.2rem;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.35rem;
    margin: 0 0.5rem;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    transition: all 0.3s;
    min-height: calc(100vh - var(--top-nav-height));
}

/* Top Navigation */
.top-nav {
    height: var(--top-nav-height);
    background: white;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    z-index: 900;
    transition: all 0.3s;
}

/* Footer */
.footer {
    padding: 1.5rem;
    margin-left: var(--sidebar-width);
    background: white;
    text-align: center;
    border-top: 1px solid #e3e6f0;
    transition: all 0.3s;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    margin-bottom: 1.5rem;
}

.stat-card {
    color: white;
    border-left: 0.25rem solid rgba(255, 255, 255, 0.5);
}

.stat-card .card-title {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.8;
}

.stat-card .card-text {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Toggle Button */
#sidebarToggle {
    cursor: pointer;
    color: var(--secondary-color);
}

/* Table Styles */
.table {
    color: #5a5c69;
}

.table th {
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--secondary-color);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Responsive Styles */
@media (max-width: 992px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .sidebar {
        transform: translateX(-100%);
        z-index: 1100;
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    }

    .main-content,
    .footer,
    .top-nav {
        margin-left: 0;
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1050;
    }

    .sidebar.show + .sidebar-overlay {
        display: block;
    }
}

/* Mobile Sidebar Behavior */
@media (max-width: 768px) {
    .sidebar {
        left: -250px;
        height: 100%;
        background-color: #fff;
        z-index: 1050;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }

    .wrapper.sidebar-open .sidebar {
        left: 0;
    }

    .wrapper.sidebar-open .main-content {
        position: relative;
        z-index: 1040;
    }
}

/* Mobile Backdrop */
.mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1040;
    display: none;
}

.wrapper.sidebar-open ~ .mobile-backdrop {
    display: block;
}

/* ATM Card Styles */
.atm-card-front,
.atm-card-back {
    height: 220px;
    width: 350px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.atm-card-front {
    background: linear-gradient(135deg, #0D4511FF, #2E7D32);
    color: white;
    position: relative;
}

.atm-card-back {
    background: #697D92FF;
    color: black;
    position: relative;
}

.letter-spacing-2 {
    letter-spacing: 1px;
}

.atm-card-front .expiry-date {
    bottom: 85px !important;
}
.summary-card {
        border-left: 4px solid #0d6efd;
        transition: all 0.3s;
    }
    .summary-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .summary-value {
        font-size: 1.5rem;
        font-weight: bold;
    }
    .summary-label {
        color: #6c757d;
        font-size: 0.9rem;
    }
