/* General styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
}

.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #1c2128;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.nav-link {
    color: #adb5bd;
    font-weight: 500;
}

.nav-link:hover {
    color: #fff;
}

.nav-link.active {
    color: #fff;
    background-color: #0d6efd;
}

/* Navbar styles */
.navbar {
    background-color: #fff;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}

/* Main content styles */
main {
    padding-top: 56px;
    background-color: #fff;
    min-height: calc(100vh - 56px);
}

/* Card styles */
.card {
    border: 1px solid #dee2e6;
    border-radius: .75rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

.card-header {
    background-color: #0872dd;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Button styles */
.btn {
    border-radius: .5rem;
    font-weight: 600;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Form styles */
.form-control {
    border-radius: .5rem;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}

.form-select {
    border-radius: .5rem;
}
/* Sidebar Group Headers */
.nav-header {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-header small {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}
/* Sidebar Navigation */
.sidebar {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%) !important;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);

    /* Make sidebar scrollable */
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar .nav-link {
    color: #ecf0f1;
    padding: 0.75rem 1rem;
    margin: 0.1rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    font-weight: 400;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background-color: #3498db;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

/* Main Content Area */
main {
    background-color: #f8f9fa;
    min-height: calc(100vh - 56px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 56px;
        left: -100%;
        width: 250px;
        height: calc(100vh - 56px);
        transition: left 0.3s ease;
        z-index: 1000;

        /* Keep scrolling on mobile too */
        overflow-y: auto;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    main {
        margin-left: 0 !important;
    }
}
/* Bank Integration Styles */
.bank-logo {
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s;
}
.bank-logo:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

/* Payment Status Colors */
.payment-status-success {
    color: #198754;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.payment-status-pending {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.payment-status-failed {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

/* Transaction Table */
.transaction-table td {
    vertical-align: middle;
}

/* Card Styling */
.card-header h5, .card-header h6 {
    margin-bottom: 0;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Button Groups */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Alert Improvements */
.alert h6 {
    margin-bottom: 0.5rem;
}

/* Form Styling */
.form-check-label {
    font-weight: 500;
}
/* Sidebar Section Headers */
.nav-link.text-muted {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-top: 1.5rem !important;
    padding-bottom: 0.5rem !important;
    color: #adb5bd !important;
    border-bottom: 1px solid #495057;
    margin-bottom: 0.5rem;
}

/* Sidebar active state */
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #0d6efd;
}

.nav-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Sidebar icons spacing */
.nav-link i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

/* Sub-menu indentation */
.nav-link.sub-item {
    padding-left: 2.5rem;
    font-size: 0.9rem;
}

/* Sidebar scroll for tall content */
.sidebar {
    height: calc(100vh - 56px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Sidebar scrollbar styling */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: #343a40;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #495057;
    border-radius: 10px;
}