body {
    background-color: #f5f7fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

.camp-logo {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.1));
}

#login-container {
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
}

.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Enhanced Navbar Styles */
.navbar-brand {
    font-weight: bold;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.nav-link {
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 0 2px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.navbar-text {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-weight: bold;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

/* Badge styles in navbar */
.nav-link .badge {
    font-size: 0.65rem;
    padding: 2px 6px;
}

/* Dropdown improvements */
.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 2px 4px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    font-weight: 500;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.transaction-deposit {
    color: #28a745;
}

.transaction-withdraw {
    color: #dc3545;
}

/* Dashboard cards animation */
.dashboard-card {
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

/* Animation for balance change */
@keyframes balanceChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.balance-change {
    animation: balanceChange 0.5s ease;
}

/* Custom checkmark for successful operations */
.success-checkmark {
    color: #28a745;
    font-size: 60px;
    text-align: center;
    margin: 20px 0;
}

/* Custom style for action buttons */
.action-btn {
    width: 38px;
    height: 38px;
    padding: 6px;
    margin: 0 3px;
}

.child-row {
    transition: background-color 0.2s;
}

.child-row:hover {
    background-color: #f1f8ff;
}

/* Quick action buttons */
.action-button {
    transition: transform 0.2s;
    padding: 12px;
}

.action-button:hover {
    transform: translateY(-2px);
}

/* Stats counter animation */
.counter-animation {
    transition: all 0.5s ease-in-out;
}

/* Receipt styling */
.receipt-container {
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
    font-family: 'Courier New', Courier, monospace;
}

.receipt-header {
    border-bottom: 1px dashed #ccc;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.receipt-body {
    margin-bottom: 15px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.receipt-notes {
    border-top: 1px dashed #ccc;
    padding-top: 10px;
    margin-top: 10px;
}

.receipt-footer {
    border-top: 1px dashed #ccc;
    padding-top: 15px;
    font-size: 0.9em;
}

/* ID Card styling */
.id-card {
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.id-card-header {
    background-color: #4b6cb7;
    color: white;
    padding: 15px;
    text-align: center;
}

.id-card-header img {
    width: 60px;
    margin-bottom: 10px;
}

.id-card-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.id-card-photo {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.id-card-photo i {
    font-size: 80px;
    color: #555;
}

.id-card-info {
    text-align: center;
    width: 100%;
}

.id-number {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #4b6cb7;
}

.id-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.id-group {
    font-size: 16px;
    margin-bottom: 5px;
    color: #555;
}

.id-age {
    font-size: 14px;
    color: #777;
}

.id-card-footer {
    padding: 15px;
    background-color: #f9f9f9;
    text-align: center;
    border-top: 1px solid #eee;
}

.id-card-qr {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    background-color: #eee;
}

/* Pagination styling */
.pagination {
    margin-top: 20px;
}

.page-item.active .page-link {
    background-color: #4b6cb7;
    border-color: #4b6cb7;
}

.page-link {
    color: #4b6cb7;
}

/* Dark mode styling */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .card {
    background-color: #1e1e1e;
    color: #e0e0e0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .card-header {
    background-color: #2c2c2c;
    border-bottom: 1px solid #333;
}

body.dark-mode .table {
    color: #e0e0e0;
}

body.dark-mode .table-hover tbody tr:hover {
    background-color: #2c2c2c;
}

body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .modal-content {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .nav-tabs .nav-link.active {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .nav-tabs .nav-link {
    color: #e0e0e0;
}

body.dark-mode .text-muted {
    color: #aaa !important;
}

body.dark-mode .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

body.dark-mode .navbar-dark {
    background-color: #111 !important;
}

body.dark-mode .receipt-container,
body.dark-mode .id-card {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .receipt-header,
body.dark-mode .receipt-notes,
body.dark-mode .receipt-footer {
    border-color: #444;
}

body.dark-mode .id-card-photo {
    background-color: #2c2c2c;
}

body.dark-mode .id-card-footer {
    background-color: #111;
    border-top: 1px solid #333;
}

body.dark-mode .id-card-qr {
    background-color: #2c2c2c;
}

/* Toast notifications */
.toast {
    opacity: 0.95;
}

/* Daily limit progress bar */
.daily-limit-progress {
    height: 8px;
    border-radius: 4px;
    margin-top: 3px;
}

/* Daily limit warning colors */
.daily-limit-warning {
    color: #dc3545;
    font-weight: bold;
}

.daily-limit-caution {
    color: #ffc107;
    font-weight: bold;
}

.daily-limit-ok {
    color: #28a745;
    font-weight: bold;
}

/* Override limit modal styling */
.override-details {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Transaction Modal Styling */
.modal-deposit .modal-header {
    background-color: #d4edda;
    border-bottom: 2px solid #28a745;
    color: #155724;
}

.modal-deposit .modal-title {
    color: #155724;
    font-weight: bold;
}

.modal-deposit .modal-title i {
    color: #28a745;
}

.modal-deposit .btn-primary {
    background-color: #28a745;
    border-color: #28a745;
}

.modal-deposit .btn-primary:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.modal-withdraw .modal-header {
    background-color: #f8d7da;
    border-bottom: 2px solid #dc3545;
    color: #721c24;
}

.modal-withdraw .modal-title {
    color: #721c24;
    font-weight: bold;
}

.modal-withdraw .modal-title i {
    color: #dc3545;
}

.modal-withdraw .btn-primary {
    background-color: #dc3545;
    border-color: #dc3545;
}

.modal-withdraw .btn-primary:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Additional visual cues */
.modal-deposit .form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.modal-withdraw .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .card {
    background-color: #2d2d2d;
    border-color: #444;
}

body.dark-mode .table {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .form-control {
    background-color: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .form-control:focus {
    background-color: #3a3a3a;
    border-color: #007bff;
    color: #e0e0e0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

body.dark-mode .btn {
    border-color: #555;
}

body.dark-mode .modal-content {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .modal-header {
    border-bottom-color: #444;
}

body.dark-mode .modal-footer {
    border-top-color: #444;
}

body.dark-mode .dropdown-menu {
    background-color: #2d2d2d;
    border-color: #444;
}

body.dark-mode .dropdown-item {
    color: #e0e0e0;
}

body.dark-mode .dropdown-item:hover {
    background-color: #3a3a3a;
    color: #fff;
}

body.dark-mode .breadcrumb {
    background-color: #2d2d2d;
}

body.dark-mode .breadcrumb-item > a {
    color: #66aaff;
}

body.dark-mode .list-group-item {
    background-color: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .text-muted {
    color: #aaa !important;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .dropdown-menu {
        width: 100%;
        max-width: none;
    }
    
    .daily-report h3 {
        font-size: 1.2rem;
    }
    
    .card-body h3 {
        font-size: 1.5rem;
    }
}

/* Smart Alerts Styling */
.smart-alert {
    max-width: 400px;
    margin-bottom: 0.5rem;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.smart-alert .btn-close {
    font-size: 0.7rem;
}

/* Keyboard Shortcuts Styling */
kbd {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
    color: #212529;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    display: inline-block;
    min-width: 1.5rem;
    text-align: center;
    line-height: 1.2;
    transition: all 0.15s ease-in-out;
}

kbd:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

body.dark-mode kbd {
    background-color: #495057;
    border-color: #6c757d;
    color: #f8f9fa;
    box-shadow: 0 0.125rem 0.25rem rgba(255, 255, 255, 0.1);
}

body.dark-mode kbd:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(255, 255, 255, 0.2);
}

/* Keyboard Shortcuts Modal Styling */
#keyboardShortcutsModal .table td {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
}

#keyboardShortcutsModal .table td:first-child {
    width: 200px;
    font-weight: 500;
}

#keyboardShortcutsModal .table td:last-child {
    color: #6c757d;
}

body.dark-mode #keyboardShortcutsModal .table td:last-child {
    color: #adb5bd;
}

#keyboardShortcutsModal h6 {
    color: #495057;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.25rem;
}

body.dark-mode #keyboardShortcutsModal h6 {
    color: #f8f9fa;
    border-bottom-color: #495057;
}

/* Advanced Search Styling */
.search-results {
    max-height: 500px;
    overflow-y: auto;
}

.search-results .table {
    font-size: 0.9rem;
}

.search-results .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Enhanced Focus States for Accessibility */
.form-control:focus,
.form-select:focus,
.btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

/* Animation for smart alerts container */
#smart-alerts-container {
    pointer-events: none;
}

#smart-alerts-container .alert {
    pointer-events: all;
}

/* Enhanced table responsiveness for search results */
.table-responsive {
    border-radius: 0.375rem;
}

.search-results .table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

body.dark-mode .search-results .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Documentation Modal Styles */
.documentation-content {
    max-height: 600px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.documentation-content h1,
.documentation-content h2,
.documentation-content h3,
.documentation-content h4,
.documentation-content h5,
.documentation-content h6 {
    color: #0d6efd;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.documentation-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 0.5rem;
}

.documentation-content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.25rem;
}

.documentation-content h3 {
    font-size: 1.25rem;
    color: #198754;
}

.documentation-content h4 {
    font-size: 1.1rem;
    color: #dc3545;
}

.documentation-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin: 1rem 0;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
}

.documentation-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
}

.documentation-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    border: 1px solid #dee2e6;
}

.documentation-content pre code {
    background-color: transparent;
    padding: 0;
    font-size: 0.9rem;
}

.documentation-content ul,
.documentation-content ol {
    margin-bottom: 1rem;
}

.documentation-content li {
    margin-bottom: 0.5rem;
}

.documentation-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.documentation-content table th,
.documentation-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.documentation-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.documentation-content table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.documentation-content .alert {
    margin: 1rem 0;
}

.documentation-content kbd {
    background-color: #212529;
    color: #fff;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
}

.documentation-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

.documentation-content hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #dee2e6;
}

.documentation-content .highlight {
    background-color: #fff3cd;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}

/* Dark mode styles for documentation */
body.dark-mode .documentation-content {
    background-color: #212529;
    border-color: #495057;
    color: #f8f9fa;
}

body.dark-mode .documentation-content h1,
body.dark-mode .documentation-content h2,
body.dark-mode .documentation-content h3,
body.dark-mode .documentation-content h4,
body.dark-mode .documentation-content h5,
body.dark-mode .documentation-content h6 {
    color: #86b7fe;
}

body.dark-mode .documentation-content h1 {
    border-bottom-color: #86b7fe;
}

body.dark-mode .documentation-content h2 {
    border-bottom-color: #495057;
}

body.dark-mode .documentation-content h3 {
    color: #20c997;
}

body.dark-mode .documentation-content h4 {
    color: #f5c2c7;
}

body.dark-mode .documentation-content blockquote {
    border-left-color: #86b7fe;
    background-color: #343a40;
}

body.dark-mode .documentation-content code {
    background-color: #343a40;
    color: #f8f9fa;
}

body.dark-mode .documentation-content pre {
    background-color: #343a40;
    border-color: #495057;
}

body.dark-mode .documentation-content table th,
body.dark-mode .documentation-content table td {
    border-color: #495057;
}

body.dark-mode .documentation-content table th {
    background-color: #343a40;
}

body.dark-mode .documentation-content table tr:nth-child(even) {
    background-color: #2d3338;
}

body.dark-mode .documentation-content .highlight {
    background-color: #664d03;
    color: #fff;
}

body.dark-mode .documentation-content hr {
    border-top-color: #495057;
}

/* Documentation navigation pills */
.nav-pills .nav-link {
    color: #495057;
    background-color: transparent;
    border: 1px solid transparent;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.nav-pills .nav-link:hover {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.25);
}

.nav-pills .nav-link.active {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

body.dark-mode .nav-pills .nav-link {
    color: #adb5bd;
    background-color: transparent;
}

body.dark-mode .nav-pills .nav-link:hover {
    color: #86b7fe;
    background-color: rgba(134, 183, 254, 0.1);
    border-color: rgba(134, 183, 254, 0.25);
}

body.dark-mode .nav-pills .nav-link.active {
    color: #000;
    background-color: #86b7fe;
    border-color: #86b7fe;
}