/* Custom CSS for Admin Panel */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar */
.sidebar {
    background-color: #343a40;
    color: #fff;
    min-height: 100vh;
    transition: all 0.3s;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: #007bff;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

/* Cards */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Buttons */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
}

/* Tables */

/* Action buttons in tables */
.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin-right: 5px;
}

/* Custom Dashboard Styles */
.stats-card {
    padding: 20px;
    text-align: center;
    border-radius: 10px;
}

.stats-card .stats-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stats-card .stats-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stats-card .stats-text {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f8f9fa;
}

.login-form {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    margin: auto;
}

/* Form Styles */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Modal Styles */
.modal-header {
    background-color: #007bff;
    color: white;
    border-radius: 5px 5px 0 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 5px 5px;
}

/* Activity Logs */
.activity-log {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-left: 4px solid #007bff;
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: 4px;
}

.activity-time {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Custom animations */
.fadeIn {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slideIn {
    animation: slideIn 0.5s;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }

    .stats-card {
        margin-bottom: 15px;
    }
}

/* Dark mode toggle */
.dark-mode {
    background-color: #222;
    color: #f8f9fa;
}

.dark-mode .card {
    background-color: #333;
    color: #f8f9fa;
}

.dark-mode .table {
    background-color: #333;
    color: #f8f9fa;
}

.dark-mode .table thead th {
    background-color: #444;
    color: #f8f9fa;
}

.dark-mode .form-control {
    background-color: #444;
    color: #f8f9fa;
    border-color: #555;
}

.dark-mode .modal-content {
    background-color: #333;
    color: #f8f9fa;
}
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --income-color: #10b981; /* Green for positive/user */
    --expense-color: #ef4444; /* Red for critical/admin */
    --warning-color: #f59e0b; /* Orange for intermediate/sub-admin */
    --light-bg: #f9fafb;
    --dark-text: #1e293b;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    background-color: #f8fafc;
    color: var(--dark-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.shadow-card {
    box-shadow: var(--card-shadow);
    border-radius: 12px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadow-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    letter-spacing: 0.025em;
}

.income-text {
    color: var(--income-color) !important;
    font-weight: 600;
}

.expense-text {
    color: var(--expense-color) !important;
    font-weight: 600;
}

.global-category {
    background-color: rgba(99, 102, 241, 0.1);
}

.btn-action {
    margin-right: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    line-height: 32px;
    text-align: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-success {
    background-color: var(--income-color);
    border-color: var(--income-color);
}

.btn-danger {
    background-color: var(--expense-color);
    border-color: var(--expense-color);
}

.btn-info {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
    color: white;
}

.btn-info:hover {
    background-color: #0284c7;
    border-color: #0284c7;
    color: white;
}

.table thead th {
    background-color: #f1f5f9; /* cool-gray-100 */
    border-bottom: 2px solid #e2e8f0; /* cool-gray-200 */
    color: var(--dark-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.table tbody tr:hover {
    background-color: #f8fafc; /* cool-gray-50 */
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 3px solid var(--primary-color);
    background-color: transparent;
}

.nav-tabs .nav-link {
    border: none;
    color: #64748b;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover:not(.active) {
    color: var(--primary-color);
    border-bottom: 3px solid #cbd5e1;
}

.add-category-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.add-category-fab:hover {
    transform: scale(1.1) rotate(90deg);
    background-color: var(--primary-hover);
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: var(--card-shadow);
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-top-left-radius: 12px; /* Ensure consistency with modal-content */
    border-top-right-radius: 12px;
    border-bottom: none; /* Remove default Bootstrap border */
}


.modal-header .modal-title {
    font-weight: 500;
}


.form-control,
.form-select {
    border-radius: 8px;
    padding: 0.5rem 0.9rem; /* Adjusted padding */
    border: 1px solid #cbd5e1; /* cool-gray-300 */
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.form-label {
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: #334155; /* cool-gray-700 */
}

.category-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}


.empty-state i {
    font-size: 60px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.empty-state h5 {
    color: #475569;
    margin-bottom: 15px;
    font-weight: 600;
}

.empty-state p {
    color: #64748b;
    max-width: 300px;
    margin: 0 auto;
}


.search-container .fas {
    position: absolute;
    right: 15px;
    top: 13px;
    color: #94a3b8;
}
.category-badge { /* General badge style, adapted from your CSS */
    padding: 0.3em 0.75em;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600; /* Bolder text for badges */
    display: inline-flex;
    align-items: center;
    text-transform: capitalize; /* Capitalize role names */
}
.badge-role-admin {
    background-color: rgba(239, 68, 68, 0.15); /* Light red */
    color: var(--expense-color);
}
.badge-role-subadmin {
    background-color: rgba(245, 158, 11, 0.15); /* Light orange */
    color: var(--warning-color);
}
.badge-role-user {
    background-color: rgba(16, 185, 129, 0.15); /* Light green */
    color: var(--income-color);
}
.badge-role-default { /* Fallback style */
    background-color: #e2e8f0; /* cool-gray-200 */
    color: #475569; /* cool-gray-600 */
}
.btn-action {
    margin-right: 5px;
    border-radius: 50%;
    width: 36px; /* Slightly larger for better click target with btn-sm equivalent */
    height: 36px;
    padding: 0;
    display: inline-flex; /* For centering icon */
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}
.btn-action i { /* Ensure icons are centered well */
    line-height: 1;
}


.transaction-list-item {
    transition: background-color 0.2s ease-in-out;
}
.transaction-list-item:hover {
    background-color: #e9ecef;
}
.amount-income { color: var(--bs-success); font-weight: bold; }
.amount-expense { color: var(--bs-danger); font-weight: bold; }

.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1030; /* Ensure it's above most elements */
}
.filter-badge { /* Retaining for close icon compatibility if needed */
    display: inline-flex;
    align-items: center;
}
.filter-badge i {
    margin-left: 0.3rem;
    cursor: pointer;
}
.date-group-header {
    font-size: 0.9rem;
    font-weight: bold;
    color: #6c757d;
    padding: 0.5rem 1rem;
    background-color: #dde1e5;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
    margin-top: 1.5rem;
}
.list-group-item .transaction-icon-col {
    flex: 0 0 40px; /* Fixed width for icon column */
}
.transaction-icon-col .icon-circle-sm {
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 100%;
}
/* Custom modal header colors */
.modal-header-income { background-color: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); }
.modal-header-expense { background-color: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); }

/* Your existing custom styles from the <style> block might need adjustments */
/* For example, .summary-card, .icon-container, .transaction-item, etc. */
/* Review them and integrate/replace with Bootstrap utilities where possible */

.summary-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    overflow: hidden; /* For icon background */
    position: relative;
}

.summary-card .card-body {
    display: flex;
    align-items: center;
}
.summary-card .icon-circle {
    font-size: 1.2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    color: #fff;
}
.summary-card .card-body {
    padding: 20px;
    position: relative;
    z-index: 2;
}
.summary-card .card-title {
    font-size: 0.9rem;
    color: #6c757d; /* Muted color for title */
    margin-bottom: 2px;
    font-weight: 400;
}
.summary-card .card-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
}
.summary-card .icon-bg {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 5rem;
    opacity: 0.1;
    color: #4b6cb7;
    z-index: 1;
    transform: rotate(-15deg);
}

.section-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.section-card h5 {
    color: #4b6cb7;
    border-bottom: 2px solid #4b6cb7;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.table thead th {
    background-color: #e9ecef; /* Light header for table */
    color: #495057;
    border-bottom-width: 1px;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

.bg-income, .badge-income { background-color: #28a745; color: white; }
.bg-expense, .badge-expense { background-color: #dc3545; color: white; }
.bg-balance, .badge-balance { background-color: #007bff; color: white; }
.text-income { color: #28a745 !important; } /* Green for profit */
.text-expense { color: #dc3545 !important; } /* Red for loss */
.text-balance { color: #007bff !important; } /* Red for loss */

.quick-add-buttons .btn {
    margin-right: 10px;
    margin-bottom: 10px; /* For smaller screens */
}
.quick-add-buttons .btn i { margin-right: 5px; }

.bank-account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.bank-account-item:last-child {
    border-bottom: none;
}
.bank-account-item .bank-name {
    font-weight: 500;
}
.bank-account-item .activity-count {
    font-size: 0.9em;
    color: #6c757d;
}

.chart-placeholder {
    height: 250px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border-radius: 8px;
    text-align: center;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
}
.category-item i {
    margin-right: 10px;
    color: #4b6cb7;
    width: 20px; /* Ensure consistent icon alignment */
}
.category-item span {
    font-size: 0.95rem;
}


/* Custom styles for radio buttons */
.account-type-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.account-type-card {
    flex: 1;
    min-width: 200px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.account-type-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.account-type-card.selected {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

.account-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.account-type-card .icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.account-type-card.selected .icon {
    color: #0d6efd;
}

.account-type-card .title {
    font-weight: 600;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.account-type-card.selected .title {
    color: #0d6efd;
}

.account-type-card .description {
    font-size: 0.875rem;
    color: #6c757d;
}

.account-badge {
    font-size: 0.8rem;
    padding: 5px 8px;
}

.action-buttons {
    white-space: nowrap;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

@media (max-width: 767px) {
    .account-type-card {
        min-width: 100%;
    }
}/* Custom styles for radio buttons */
.account-type-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.account-type-card {
    flex: 1;
    min-width: 200px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.account-type-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.account-type-card.selected {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

.account-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.account-type-card .icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.account-type-card.selected .icon {
    color: #0d6efd;
}

.account-type-card .title {
    font-weight: 600;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.account-type-card.selected .title {
    color: #0d6efd;
}

.account-type-card .description {
    font-size: 0.875rem;
    color: #6c757d;
}

.account-badge {
    font-size: 0.8rem;
    padding: 5px 8px;
}

.action-buttons {
    white-space: nowrap;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

@media (max-width: 767px) {
    .account-type-card {
        min-width: 100%;
    }
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
}

.date-range-display-header {
    font-size: 0.9rem;
    color: #555;
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 6px;
}
/* Filter Panel */
.filter-panel {
    border-radius: 12px;
    background-color: #fff;
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1.25rem;
}

.filter-panel-header h5 {
    color: #343a40;
}

.filter-panel .form-label {
    font-size: 0.85rem;
    color: #495057;
}

.filter-panel .form-control-sm,
.filter-panel .form-select-sm {
    font-size: 0.875rem;
    border-radius: 6px;
}

.time-period-buttons .btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.5rem;
}

.filter-time-btn {
    background-color: #fff;
    border: 1px solid #ced4da;
    color: #495057;
}

.filter-time-btn.active, .filter-time-btn:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

#customDateFields input[type="date"] {
    padding: 0.3rem 0.5rem;
}

/* Applied Filters Badges */
.applied-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-badge {
    background-color: #e2e3e5;
    color: #383d41;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
}

.filter-badge .remove-filter {
    margin-left: 8px;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.7rem;
}

.filter-badge .remove-filter:hover {
    color: #343a40;
}


/* Transaction List */
.transaction-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.transaction-count-info {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.main-filter-buttons .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

.main-filter-buttons .btn i {
    font-size: 0.8rem;
}

.transaction-day {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    padding: .2rem .5rem!important;
    background-color: #e9ecef;
    /* Slightly different background for date headers */
    border-bottom: 1px solid #ddd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
th.transaction-day {
    background-color: #e9ecef;
}

th.transaction-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    padding: .2rem .5rem!important;
    background-color: #d2d3d3;
    /* Slightly different background for date headers */
    border-bottom: 1px solid #ddd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.transaction-item:hover {
    background-color: #f8f9fa;
}

.transaction-item:last-child {
    border-bottom: none;
}
.transaction-items {
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.transaction-items td {
    transition: background-color 0.2s ease;
    padding: .2rem .5rem;
}

.transaction-items:hover td {
    background-color: #f8f9fa;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 0.9rem;
}

.transaction-details {
    flex-grow: 1;
}

.transaction-contact {
    font-weight: 500;
    color: #343a40;
    font-size: 0.95rem;
}

.transaction-category {
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 2px;
}

.transaction-amount {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    width: 100px;
}

.transaction-amount.text-success {
    color: #28a745 !important;
}

.transaction-amount.text-danger {
    color: #dc3545 !important;
}

.no-transactions {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-transactions i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #adb5bd;
}

.no-transactions h5 {
    font-size: 1.2rem;
    color: #343a40;
}

/* Add Button */
.add-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 1050;
}

.add-btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
    color: white;
}


/* Modal Styling */
.modal-content {
    border-radius: 12px;
    border:1px solid #dee2e6;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.detail-header {
    text-align: center;
    padding: 25px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    background-color: #f8f9fa;
    /* Light header background */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.btn-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
}

.detail-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.detail-amount.income {
    color: #28a745;
}

.detail-amount.expense {
    color: #dc3545;
}

.detail-name {
    font-size: 1.1rem;
    color: #343a40;
    font-weight: 500;
}

.cced-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #d1e7dd;
    /* Light green */
    color: #0f5132;
    /* Darker green */
    margin-top: 10px;
}

.completed-badge i {
    margin-right: 5px;
}

.modal-container-content {
    padding: 20px;
}

.view-all-btn {
    display: block;
    text-align: center;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.view-all-btn:hover {
    background-color: #0056b3;
    color: white;
}

.section-title-modal {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.detail-info .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px dotted #e0e0e0;
}

.detail-info .detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #6c757d;
}

.detail-value {
    font-weight: 500;
    color: #343a40;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.detail-value.highlight {
    color: #007bff;
}

.action-buttons {
    display: flex;
    gap: 10px;
    /* Spacing between buttons */
    margin-top: 25px;
}

.action-btn {
    flex: 1;
    text-align: center;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 0.9rem;
}

.action-btn.edit-btn {
    background-color: #e9ecef;
    color: #343a40;
}

.action-btn.edit-btn:hover {
    background-color: #d3d9df;
}

.action-btn.delete-btn {
    background-color: #f8d7da;
    /* Light red */
    color: #721c24;
    /* Darker red */
}

.action-btn.delete-btn:hover {
    background-color: #f5c6cb;
}

/* Loading Overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1060;
    /* Higher than modals */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .date-range-display-header {
        margin-top: 10px;
    }

    .summary-row .col-lg-4 {
        margin-bottom: 15px !important;
    }

    .transaction-list-header {
        flex-direction: column;
        gap: 10px;
    }

    .transaction-item {
        padding: 12px 15px;
    }

    .transaction-icon {
        width: 35px;
        height: 35px;
        margin-right: 10px;
        font-size: 0.8rem;
    }

    .transaction-contact,
    .transaction-amount {
        font-size: 0.9rem;
    }

    .transaction-category {
        font-size: 0.75rem;
    }

    .filter-panel .col-lg-2,
    .filter-panel .col-lg-3,
    .filter-panel .col-lg-4 {
        margin-bottom: 1rem !important;
        /* Ensure spacing on smaller screens */
    }
}
