/* Custom CSS for NightFury ESL School Portal */



/* Hero Section */
.hero-section {
    background: #87CEEB;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Feature Cards */
.feature-icon {
    color: #87CEEB;
}

.card {
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* Chart of Accounts specific styles - override general card hover effects */
.chart-of-accounts .card,
.chart-of-accounts .card:hover {
    transform: none !important;
    transition: box-shadow 0.3s ease;
}

.chart-of-accounts .card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* Navigation tabs - ensure they remain readable on hover */
.nav-pills .nav-link {
    transition: background-color 0.3s ease, color 0.3s ease;
    border-left: none !important;
}

.nav-pills .nav-link:hover {
    background-color: #e9ecef !important;
    color: #495057 !important;
    transform: none !important;
    border-left: none !important;
}

.nav-pills .nav-link.active {
    background-color: #87CEEB !important;
    color: white !important;
    border-left: none !important;
}

.nav-pills .nav-link.active:hover {
    background-color: #87CEEB !important;
    color: white !important;
    border-left: none !important;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #87CEEB;
    box-shadow: 0 0 0 0.2rem rgba(135, 206, 235, 0.25);
}

/* Cards */
.card {
    border-radius: 12px;
    overflow: hidden;
}

/* Student Roster Table Styles */
.student-roster-table {
    font-size: 0.9rem;
}

.student-roster-table .table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.student-roster-table .table {
    margin-bottom: 0;
}

.student-roster-table .table th {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border: none;
    padding: 12px 8px;
}

.student-roster-table .table td {
    padding: 12px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

.student-roster-table .table tbody tr:hover {
    background-color: rgba(135, 206, 235, 0.1);
    transition: background-color 0.2s ease;
}

.student-roster-table .sortable {
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}

.student-roster-table .sortable:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.student-roster-table .sortable i {
    transition: transform 0.2s ease;
}

.student-roster-table .sortable:hover i {
    transform: scale(1.2);
}

.student-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: white;
    background: linear-gradient(135deg, #87CEEB 0%, #5F9EA0 100%);
}

.student-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.student-name {
    font-weight: 600;
    color: #495057;
}

.student-phone {
    font-size: 0.75rem;
    color: #6c757d;
}

.badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 4px;
}

.action-buttons .btn {
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 6px;
}

/* Filter Controls */
.filter-controls {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.filter-controls .form-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.filter-controls .form-control,
.filter-controls .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.filter-controls .form-control:focus,
.filter-controls .form-select:focus {
    border-color: #87CEEB;
    box-shadow: 0 0 0 0.2rem rgba(135, 206, 235, 0.25);
}

/* Pagination */
.pagination {
    gap: 4px;
}

.pagination .page-link {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #87CEEB;
    border-color: #87CEEB;
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: #87CEEB;
    border-color: #87CEEB;
    color: white;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #87CEEB;
}

/* Responsive Design */
@media (max-width: 768px) {
    .student-roster-table .table-responsive {
        font-size: 0.8rem;
    }
    
    .student-roster-table .table th,
    .student-roster-table .table td {
        padding: 8px 4px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 2px;
    }
    
    .action-buttons .btn {
        padding: 2px 4px;
        font-size: 0.7rem;
    }
    
    .filter-controls .row {
        margin-bottom: 10px;
    }
    
    .filter-controls .col-md-2,
    .filter-controls .col-md-4 {
        margin-bottom: 10px;
    }
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Reconciliation Styles */
.reconciliation-account-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

.reconciliation-account-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.reconciliation-timeline {
    position: relative;
    padding: 20px 0;
}

.reconciliation-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.reconciliation-period-item {
    position: relative;
    z-index: 2;
    text-align: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.reconciliation-period-item:hover {
    transform: translateY(-2px);
}

.reconciliation-period-item[onclick] {
    cursor: pointer;
}

.reconciliation-period-item[onclick]:hover .reconciliation-period-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.reconciliation-period-item[onclick]:active {
    transform: translateY(0);
}

.reconciliation-period-item[onclick]:active .reconciliation-period-icon {
    transform: scale(1.02);
}

.reconciliation-period-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reconciliation-period-icon.success {
    background: #28a745;
    color: white;
}

.reconciliation-period-icon.danger {
    background: #dc3545;
    color: white;
}

.reconciliation-period-icon.warning {
    background: #ffc107;
    color: #212529;
}

.reconciliation-period-icon.new-transactions {
    background: #6c757d;
    color: white;
    border: 2px dashed #dee2e6;
}

.balance-comparison {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.transaction-checkbox {
    transform: scale(1.2);
}

/* Reconciliation Timeline Tooltips */
.reconciliation-tooltip .tooltip-inner {
    max-width: 300px;
    text-align: left;
    background-color: #2c3e50;
    color: white;
    font-size: 0.875rem;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.reconciliation-tooltip .tooltip-arrow::before {
    border-top-color: #2c3e50;
}

.reconciliation-tooltip .tooltip-inner .tooltip-header {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #34495e;
}

/* Main Dashboard Timeline Sections */
.reconciliation-timeline-section {
    border: 1px solid #e9ecef;
    background: #f8f9fa !important;
}

.reconciliation-account-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    transition: box-shadow 0.3s ease;
}

.reconciliation-account-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.reconciliation-timeline-section h6 {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reconciliation-tooltip .tooltip-inner .tooltip-header strong {
    color: #ecf0f1;
    font-size: 1rem;
}

.reconciliation-tooltip .tooltip-inner .balance-info {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #34495e;
}

.reconciliation-tooltip .tooltip-inner .balance-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.reconciliation-tooltip .tooltip-inner .balance-label {
    color: #bdc3c7;
    font-size: 0.8rem;
}

.reconciliation-tooltip .tooltip-inner .balance-value {
    color: #ecf0f1;
    font-weight: 600;
}

.reconciliation-tooltip .tooltip-inner .difference-positive {
    color: #27ae60;
}

.reconciliation-tooltip .tooltip-inner .difference-negative {
    color: #e74c3c;
}

.reconciliation-tooltip .tooltip-inner .difference-zero {
    color: #2ecc71;
}

.account-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.account-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-right: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.account-icon.bank {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.account-icon.cash {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.account-icon.credit-card {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.account-icon.other {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    color: white;
}

/* Dashboard Stats */
.stat-card {
    background: #87CEEB;
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Sidebar */
.sidebar {
    background-color: #f8f9fa;
    min-height: 100vh;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
}

.sidebar .nav-link {
    color: #495057;
    border-radius: 8px;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: #87CEEB;
    color: white;
}

/* Admin sidebar specific styles */
.sidebar .bg-dark {
    background-color: #343a40 !important;
}

.sidebar .accordion-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.sidebar .accordion-button:not(.collapsed) {
    background-color: #495057 !important;
    color: white !important;
}

.sidebar .list-group-item {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.sidebar .list-group-item:hover {
    background-color: #495057 !important;
    color: white !important;
}

/* Form Validation Styles */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Content Area */
.content-area {
    padding: 2rem;
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Drag and Drop File Upload Styles */
.drag-drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.drag-drop-zone:hover {
    border-color: #87CEEB;
    background-color: #f0f8ff;
}

.drag-drop-zone.dragover {
    border-color: #87CEEB;
    background-color: #e6f3ff;
    transform: scale(1.02);
}

.drag-drop-zone.dragover .drag-drop-content {
    opacity: 0.7;
}

.drag-drop-content {
    pointer-events: none;
}

.drag-drop-text {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.drag-drop-text .text-primary {
    pointer-events: auto;
    cursor: pointer;
    text-decoration: underline;
}

.drag-drop-hint {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0;
}

.selected-files {
    margin-top: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.875rem;
}

.file-item .file-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.file-item .file-icon {
    margin-right: 0.5rem;
    color: #6c757d;
}

.file-item .file-name {
    font-weight: 500;
    color: #495057;
    margin-right: 0.5rem;
}

.file-item .file-size {
    color: #6c757d;
    font-size: 0.8rem;
}

.file-item .file-remove {
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.file-item .file-remove:hover {
    background-color: #f8d7da;
}

.file-item .file-remove i {
    font-size: 0.875rem;
}

/* File type icons */
.file-icon.pdf { color: #dc3545; }
.file-icon.doc, .file-icon.docx { color: #0d6efd; }
.file-icon.xls, .file-icon.xlsx { color: #198754; }
.file-icon.txt { color: #6c757d; }
.file-icon.jpg, .file-icon.jpeg, .file-icon.png { color: #fd7e14; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .content-area {
        padding: 1rem;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .content-area {
        padding: 0;
        margin: 0;
    }
}

/* Login and Registration Forms */
.login-container {
    background: #87CEEB;
    min-height: 100vh;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: none;
}

.login-header {
    margin-bottom: 2rem;
}

.login-title {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.login-form .form-label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-form .form-control {
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: #87CEEB;
    box-shadow: 0 0 0 0.2rem rgba(135, 206, 235, 0.15);
}

.login-form .input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #ecf0f1;
    border-right: none;
    color: #7f8c8d;
}

.login-form .form-control {
    border-left: none;
}

.login-form .form-control:focus + .input-group-text,
.login-form .form-control:focus {
    border-color: #87CEEB;
}

.login-btn {
    background: #87CEEB;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.login-btn:hover {
    background: #5F9EA0;
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.2);
    color: white;
}

.login-form .form-check-input:checked {
    background-color: #87CEEB;
    border-color: #87CEEB;
}

.login-form .form-text {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.login-card a {
    color: #87CEEB;
    font-weight: 500;
}

.login-card a:hover {
    color: #5F9EA0;
    text-decoration: underline;
}

/* Form validation states */
.form-control.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.94-.94 2.89 2.89 2.89-2.89.94.94L6.12 9.56z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 4.6l-1.4 1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Login form specific validation - less intrusive */
.login-form .form-control.is-valid {
    border-color: #198754;
    background-image: none;
    background-color: #f8fff9;
}

.login-form .form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
    background-color: #fff8f8;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.invalid-feedback.show {
    display: block;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #198754;
}

/* Loading button states */
.btn-loading {
    display: none;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Alert improvements */
.alert {
    border-left: 4px solid;
    border-radius: 8px;
}

.alert-danger {
    border-left-color: #dc3545;
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-success {
    border-left-color: #198754;
    background-color: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}

.alert-warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
    color: #664d03;
    border-color: #ffeaa7;
}

.alert-info {
    border-left-color: #0dcaf0;
    background-color: #cff4fc;
    color: #055160;
    border-color: #b6effb;
}

/* Responsive adjustments for login forms */
@media (max-width: 768px) {
    .login-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .login-container {
        padding: 1rem 0;
    }
}

/* Interactive timeline items */
.reconciliation-period-item .position-relative:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.reconciliation-period-item .position-relative:hover .reconciliation-period-icon {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: box-shadow 0.2s ease;
}

.reconciliation-period-item .position-relative:hover .text-primary {
    color: #0056b3 !important;
    font-weight: 500;
}

/* Clickable timeline items */
.reconciliation-period-item .position-relative[style*="cursor: pointer"] {
    transition: all 0.2s ease;
}

.reconciliation-period-item .position-relative[style*="cursor: pointer"]:active {
    transform: translateY(0px);
    transition: transform 0.1s ease;
}

.reconciliation-period-item .position-relative[style*="cursor: pointer"] .text-primary {
    transition: color 0.2s ease;
}

/* Financial History Page Styles */
.mobile-header {
  background-color: #f8f9fa;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-placeholder {
  width: 40px;
  height: 40px;
  background-color: #dc3545;
  border-radius: 50%;
  flex-shrink: 0;
}

.mobile-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  margin: 0;
}

.desktop-header {
  margin-bottom: 2rem;
}

.sidebar {
  background-color: #f8f9fa;
  border-right: 1px solid #dee2e6;
  min-height: calc(100vh - 56px);
}

.sidebar .nav-link {
  color: #495057;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin: 0.25rem 0.5rem;
  transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
  background-color: #e9ecef;
  color: #212529;
}

.sidebar .nav-link.active {
  background-color: #87CEEB;
  color: white;
  font-weight: 600;
}

.sidebar .nav-link.active:hover {
  background-color: #87CEEB;
  color: white;
}

/* Mobile sidebar overlay */
@media (max-width: 767.98px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    z-index: 1030;
    width: 250px;
    height: 100vh;
    transition: left 0.3s ease-in-out;
    background-color: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  }
  
  .sidebar.show {
    left: 0;
  }
  
  .sidebar.collapse:not(.show) {
    display: block !important;
    left: -250px;
  }
  
  /* Backdrop for mobile sidebar */
  .sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1025;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
  }
  
  .sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
  }
}

/* Remove old styles that are no longer needed */
.top-bar,
.financial-header,
.profile-avatar,
.avatar-circle,
.financial-title,
.menu-toggle {
  display: none;
}

/* Financial content styles */
.financial-content {
  background-color: white;
  padding: 0;
}

.btn-payment {
  background-color: #007bff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  min-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-payment:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.financial-summary {
  text-align: right;
}

.summary-item {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-label {
  font-weight: bold;
  color: #495057;
  margin-right: 1rem;
}

.summary-value {
  font-weight: bold;
  color: #000;
  font-size: 1.1rem;
}

.summary-value.text-danger {
  color: #dc3545 !important;
  font-weight: 700;
}

.summary-value.text-success {
  color: #198754 !important;
  font-weight: 700;
}

.transaction-table-container {
  margin-top: 2rem;
}

.transaction-table {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.transaction-table thead th {
  background-color: #f8f9fa;
  border: none;
  padding: 1rem;
  font-weight: 600;
  color: #495057;
  text-align: left;
}

.transaction-table tbody td {
  padding: 1rem;
  border: none;
  border-bottom: 1px solid #e9ecef;
  vertical-align: top;
}

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

.highlighted-row {
  background-color: #f8f9fa;
}

.transaction-date {
  font-weight: 500;
  color: #495057;
}

.transaction-item {
  max-width: 200px;
}

.charge-item, .payment-item {
  display: flex;
  flex-direction: column;
}

.charge-description, .payment-description {
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #495057;
}

.transaction-number {
  font-size: 0.875rem;
  color: #6c757d;
}

.transaction-amount {
  font-weight: 600;
  text-align: right;
}

.transaction-amount.text-success {
  color: #28a745 !important;
}

.transaction-balance {
  font-weight: 600;
  text-align: right;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .btn-payment {
    padding: 0.75rem 1.5rem;
    min-height: 50px;
    font-size: 1rem;
  }
  
  .financial-summary {
    text-align: left;
    margin-top: 1rem;
  }
  
  .summary-item {
    justify-content: space-between;
  }
  
  .transaction-table {
    font-size: 0.875rem;
  }
  
  .transaction-table thead th,
  .transaction-table tbody td {
    padding: 0.75rem 0.5rem;
  }
  
  .transaction-item {
    max-width: 150px;
  }
}

@media (max-width: 576px) {
  .btn-payment {
    width: 100%;
    margin-bottom: 1rem;
    min-height: 50px;
  }
  
  .transaction-table {
    font-size: 0.8rem;
  }
  
  .transaction-table thead th,
  .transaction-table tbody td {
    padding: 0.5rem 0.25rem;
  }
  
  .transaction-item {
    max-width: 120px;
  }
}

/* Dashboard Stat Cards */
.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
  opacity: 0.8;
}

.stat-card .btn-outline-light {
  border-width: 2px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.stat-card .btn-outline-light:hover {
  background-color: white;
  color: #667eea;
  transform: scale(1.05);
}

/* Transaction Modal Styles */
#newTransactionModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

#newTransactionModal .modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
}

#newTransactionModal .modal-title {
    color: #495057;
    font-weight: 600;
}

#newTransactionModal .form-label {
    font-weight: 500;
    color: #495057;
}

#newTransactionModal .form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#newTransactionModal .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

#newTransactionModal .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#newTransactionModal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

#newTransactionModal .btn-secondary {
    border-radius: 8px;
    font-weight: 500;
}
