:root {
    --primary-color: #ff0000;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    background-color: #f5f5f5;
    color: #212529;
}

.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);
}

.sidebar .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, .8);
    border-left: 4px solid transparent;
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
}

.sidebar .nav-link:hover {
    color: rgb(0, 0, 0);
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: rgb(10, 10, 10);
    border-left: 4px solid var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link i {
    margin-right: 4px;
}

main {
    padding-top: 1.5rem;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, .075);
    margin-bottom: 1.5rem;
}

.card-header {
    border-bottom: none;
    padding: 0.75rem 1.25rem;
}

.bg-danger {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-danger:hover {
    background-color: #cc0000;
    border-color: #cc0000;
}

.btn-outline-danger {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-danger:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.text-danger {
    color: var(--primary-color) !important;
}

.border-danger {
    border-color: var(--primary-color) !important;
}

.table th {
    border-top: none;
    border-bottom: 1px solid #dee2e6;
}

.table td {
    vertical-align: middle;
}

.alert {
    border: none;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
    }

    main {
        padding-top: 0;
    }
}

/* Chart container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Form styling */
.form-control,
.form-select {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 0, 0, 0.25);
}

/* Badge styling */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* List group */
.list-group-item {
    border: none;
    padding: 0.75rem 1.25rem;
}

.list-group-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Modal styling */
.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
}

/* Sidebar/Offcanvas Styles */


@media (min-width: 999px) {
    .col-lg-9 {
        flex: 0 0 auto;
        width: 80%!important;
    }
    .offcanvas-lg {
    width: 20%!important;
    background-color: #f8f9fa;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

}


/* Navigation Links */
.nav-link {
    padding: 0.75rem 1.5rem;
    color: #495057;
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.nav-link:hover {
    background-color: rgba(255, 0, 0, 0.05);
    color: #131212;
    border-left-color: #ff0000;
}

.nav-link.active {
    background-color: rgba(255, 0, 0, 0.1);
    color: #181717;
    border-left-color: #ff0000;
    font-weight: 500;
}

.nav-link i {
    width: 24px;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .offcanvas-lg {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1045;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .offcanvas-lg.show {
        transform: none;
    }
    
    main {
        padding-top: 1rem;
    }
}

/* Dark mode sidebar for larger screens */
@media (min-width: 992px) {
    .offcanvas-lg {
        background-color: #212529;
        color: white;
    }
    
    .nav-link {
        color: rgba(5, 5, 5, 0.8)
    }
    
    .nav-link:hover, 
    .nav-link.active {
        color: white;
    }
    
    .border-bottom, .border-top {
        border-color: rgba(255, 255, 255, 0.1) !important;
    }
}

/* Mobile Transactions List */
.list-group-item {
    padding: 1rem;
    border-left: 4px solid transparent;
}

.list-group-item .badge {
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

/* Touch-friendly buttons */
.btn {
    padding: 0.5rem 1rem;
    min-width: 44px; /* Minimum touch target size */
    min-height: 44px;
}

/* Responsive tables */
@media (max-width: 767.98px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .list-group-item {
        margin-bottom: 0.5rem;
        border-radius: 0.5rem;
    }
}

/* Pagination mobile adjustments */
.pagination .page-item {
    margin: 0 2px;
}

.pagination .page-link {
    padding: 0.5rem 0.75rem;
    min-width: 44px;
    text-align: center;
}

@media (min-width: 992px) {
  .offcanvas-lg {
    background-color: #fff !important;
    color: white;
    overflow: auto;
  }
}

.nav-link:hover,
.nav-link.active {
    color: #000000;
}

.flex-grow-1.ms-3 h6{
    color: #000000;
}

