:root {
    --navbar-gradient: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    --notepad-bg: #FFF8DC;
    --notepad-line: #E6E6FA;
    --notepad-shadow: rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] {
    --navbar-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --notepad-bg: #2d2d2d;
    --notepad-line: #444444;
    --notepad-shadow: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] body {
    background-color: #1a202c !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .tab-content {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .card {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .card-header {
    background-color: #4b5563 !important;
    border-color: #6b7280 !important;
    color: #f9fafb !important;
}

[data-bs-theme="dark"] .accordion-button {
    background-color: #374151 !important;
    color: #e2e8f0 !important;
    border-color: #4b5563 !important;
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #4b5563 !important;
    color: #f9fafb !important;
}

[data-bs-theme="dark"] .accordion-body {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .table {
    --bs-table-bg: #374151 !important;
    --bs-table-color: #e2e8f0 !important;
    --bs-table-border-color: #4b5563 !important;
    --bs-table-hover-bg: #4b5563 !important;
    --bs-table-striped-bg: #3f4851 !important;
}

[data-bs-theme="dark"] .table-light {
    --bs-table-bg: #4b5563 !important;
    --bs-table-color: #f9fafb !important;
}

[data-bs-theme="dark"] .form-control {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .form-control:focus {
    background-color: #374151 !important;
    border-color: #60a5fa !important;
    color: #e2e8f0 !important;
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.25) !important;
}

[data-bs-theme="dark"] .form-select {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .btn-primary {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    color: #9ca3af !important;
    border-color: #6b7280 !important;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: #6b7280 !important;
    border-color: #6b7280 !important;
    color: #f9fafb !important;
}

[data-bs-theme="dark"] .modal-content {
    background-color: #374151 !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .modal-header {
    border-color: #4b5563 !important;
}

[data-bs-theme="dark"] .alert-info {
    background-color: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #93c5fd !important;
}

[data-bs-theme="dark"] .alert-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #fbbf24 !important;
}

[data-bs-theme="dark"] .text-success {
    color: #10b981 !important;
}

[data-bs-theme="dark"] .text-danger {
    color: #ef4444 !important;
}

[data-bs-theme="dark"] .text-info {
    color: #06b6d4 !important;
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    background-color: #2d3748 !important;
    border-color: #4b5563 #4b5563 #2d3748 !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .nav-tabs .nav-link {
    color: #9ca3af !important;
}

[data-bs-theme="dark"] .nav-tabs .nav-link:hover {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .dataTables_wrapper {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .dataTables_filter label {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .dataTables_filter input {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .dataTables_info {
    color: #9ca3af !important;
}

[data-bs-theme="dark"] .dataTables_paginate .paginate_button {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .dataTables_paginate .paginate_button:hover {
    background: #4b5563 !important;
    color: #f9fafb !important;
}

[data-bs-theme="dark"] .dataTables_paginate .paginate_button.current {
    background: #3b82f6 !important;
    color: #ffffff !important;
}

.dataTables_length {
    display: none !important;
}

body {
    padding-top: 80px;
    padding-bottom: 20px;
    background-color: #ceedff;
    transition: background-color 0.5s ease, color 0.5s ease, opacity 0.3s ease;
    opacity: 1;
}

*,
*::before,
*::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tab-content {
    padding: 20px;
    background-color: #ffffff;
}

#mainTabs {
    margin-top: 20px;
}

.container-fluid {
    max-width: 1200px;
}

.navbar,
.navbar.bg-primary {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: var(--navbar-gradient) !important;
    transition: background 0.5s ease, box-shadow 0.3s ease;
}

.navbar .navbar-brand,
.navbar .navbar-nav .nav-link {
    color: white !important;
}

.navbar-brand {
    font-weight: 300;
    font-size: 1.5rem;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    color: #2c3e50 !important;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1000;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    color: #1a252f !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.theme-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .theme-toggle {
    background: rgba(44, 62, 80, 0.9) !important;
    border-color: rgba(52, 73, 94, 0.8) !important;
    color: #ecf0f1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .theme-toggle:hover {
    background: rgba(52, 73, 94, 1) !important;
    border-color: rgba(69, 90, 120, 0.9) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.navbar {
    min-height: 70px;
    padding: 0.8rem 1rem;
}

.navbar .navbar-nav {
    align-items: center;
    gap: 0.5rem;
}



.donation-intro-card:hover {
    transform: rotate(0deg) scale(1.01);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.8),
        inset 2px 0 0 rgba(255, 255, 255, 0.5);
}

.donation-intro-card::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    border-radius: 50%;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.donation-intro-card::after {
    content: '';
    position: absolute;
    top: 28px;
    left: 27px;
    width: 16px;
    height: 4px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    transform: rotate(-3deg);
    filter: blur(1px);
}

.donation-intro-card h2 {
    margin-top: 15px;
    margin-bottom: 30px;
    font-size: 1.7rem;
    font-weight: 600;
    color: #e74c3c;
    text-decoration: underline;
    text-decoration-color: rgba(78, 205, 196, 0.6);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    letter-spacing: 0.8px;
    line-height: 1.3;
}

.donation-intro-card p {
    margin-bottom: 25px;
    text-indent: 35px;
    word-spacing: 1.2px;
    letter-spacing: 0.4px;
}

.donation-intro-card p:first-of-type {
    margin-top: 8px;
}

.donation-intro-card strong {
    color: #c0392b;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.donation-intro-card em {
    color: #8e44ad;
    font-style: italic;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.donation-intro-card .fas.fa-heart {
    color: #e74c3c;
    animation: heartbeat 2.5s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.donation-category {
    margin-bottom: 2.5rem;
}

.donation-category h5 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
    position: relative;
}

[data-bs-theme="dark"] .donation-category h5 {
    color: #ecf0f1;
    border-bottom-color: #5dade2;
}

.donation-method {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    position: relative;
    text-align: justify;
}

[data-bs-theme="dark"] .donation-method {
    background: #2c2c2c;
    border-color: #444444;
    color: #ecf0f1;
}

.donation-method:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

[data-bs-theme="dark"] .donation-method:hover {
    border-color: #5dade2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.donation-method h6 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-bs-theme="dark"] .donation-method h6 {
    color: #ecf0f1;
}

.donation-method h6 i {
    color: #3498db;
    font-size: 1.3rem;
}

.donation-method p {
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

[data-bs-theme="dark"] .donation-method p {
    color: #bdc3c7;
}

.donation-data {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #3498db;
    margin-top: 1rem;
}

[data-bs-theme="dark"] .donation-data {
    background: #1a1a1a;
    border-left-color: #5dade2;
}

.donation-data strong {
    color: #2c3e50;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

[data-bs-theme="dark"] .donation-data strong {
    color: #ecf0f1;
}

.bank-data,
.phone-data {
    font-family: 'Courier New', monospace;
    background: #ffffff;
    padding: 0.4rem 0.8rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: #495057;
}

[data-bs-theme="dark"] .bank-data,
[data-bs-theme="dark"] .phone-data {
    background: #2c2c2c;
    border-color: #444444;
    color: #ecf0f1;
}

.donation-category .row {
    margin: 0 -10px;
}

.donation-category .col-xl-4,
.donation-category .col-lg-6,
.donation-category .col-md-6 {
    padding: 0 10px;
}

.donation-method {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

[data-bs-theme="dark"] .donation-method {
    background: #2c2c2c;
    border-color: #444444;
    color: #ecf0f1;
}

.donation-method:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

[data-bs-theme="dark"] .donation-method:hover {
    border-color: #5dade2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.donation-method h6 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

[data-bs-theme="dark"] .donation-method h6 {
    color: #ecf0f1;
}

.donation-method h6 i {
    color: #3498db;
    font-size: 1.3rem;
    width: 20px;
    text-align: center;
}

.donation-method p {
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: auto;
    flex-grow: 1;
}

[data-bs-theme="dark"] .donation-method p {
    color: #bdc3c7;
}

.donation-data {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #3498db;
    margin-top: 1rem;
    flex-shrink: 0;
}

[data-bs-theme="dark"] .donation-data {
    background: #1a1a1a;
    border-left-color: #5dade2;
}

.donation-data strong {
    color: #2c3e50;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

[data-bs-theme="dark"] .donation-data strong {
    color: #ecf0f1;
}

.bank-data,
.phone-data {
    font-family: 'Courier New', monospace;
    background: #ffffff;
    padding: 0.4rem 0.8rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: #495057;
    word-break: break-all;
}

[data-bs-theme="dark"] .bank-data,
[data-bs-theme="dark"] .phone-data {
    background: #2c2c2c;
    border-color: #444444;
    color: #ecf0f1;
}

.donation-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.donation-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
}

footer {
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .donation-intro-card {
        font-family: 'Kalam', 'Dancing Script', 'Segoe Print', 'Comic Sans MS', cursive;
        font-size: 1.15rem;
        font-weight: 400;
        line-height: 1.8;
        letter-spacing: 0.3px;
    }


    .donation-intro-card {
        background: linear-gradient(145deg, #fef7e0 0%, #fdf4d7 100%);
        background-image:
            repeating-linear-gradient(transparent,
                transparent 35px,
                rgba(220, 220, 240, 0.6) 35px,
                rgba(220, 220, 240, 0.6) 36px),
            linear-gradient(to right,
                transparent 0px,
                transparent 70px,
                rgba(255, 107, 138, 0.4) 70px,
                rgba(255, 107, 138, 0.4) 72px,
                transparent 72px),
            radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
            radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
        background-size: 100% 100%, 100% 100%, 40px 40px, 25px 25px;

        padding: 50px 80px 50px 95px;
        margin: 3rem 0;
        border-radius: 15px;
        box-shadow:
            0 12px 35px rgba(0, 0, 0, 0.1),
            0 4px 15px rgba(0, 0, 0, 0.08),
            inset 0 2px 0 rgba(255, 255, 255, 0.7),
            inset 2px 0 0 rgba(255, 255, 255, 0.4);
        border: 3px solid rgba(230, 230, 245, 0.8);
        position: relative;


        color: #2c3e50;
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
        word-spacing: 1px;

        transform: rotate(-0.5deg);
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    [data-bs-theme="dark"] .donation-intro-card {
        background: linear-gradient(145deg, #3a3520 0%, #2d2a1a 100%);
        background-image:
            repeating-linear-gradient(transparent,
                transparent 35px,
                rgba(120, 100, 60, 0.4) 35px,
                rgba(120, 100, 60, 0.4) 36px),
            linear-gradient(to right,
                transparent 0px,
                transparent 70px,
                rgba(139, 69, 19, 0.7) 70px,
                rgba(139, 69, 19, 0.7) 72px,
                transparent 72px),
            radial-gradient(circle at 20% 30%, rgba(255, 255, 200, 0.08) 1px, transparent 1px),
            radial-gradient(circle at 80% 70%, rgba(255, 255, 200, 0.05) 1px, transparent 1px);
        color: #f5f5dc !important;
        border-color: rgba(180, 150, 100, 0.6) !important;
    }

}

@media (max-width: 767.98px) {
    .donation-intro-card {
        padding: 30px 40px 30px 50px;
        font-size: 1.05rem;
        line-height: 1.7;
        transform: rotate(-0.3deg);
        margin: 2rem 0;
        border-radius: 12px;
        border: 2px solid;
    }

    .donation-intro-card h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .theme-toggle {
        padding: 6px 10px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    body {
        padding-top: 70px;
    }

    .donation-intro-card {
        padding: 25px 30px 25px 40px;
        font-size: 1rem;
        margin: 1.5rem 0;
    }

    .donation-intro-card h2 {
        font-size: 1.3rem;
    }
    
    #mainTable {
        font-size: 0.8rem;
    }
    
    #mainTable th,
    #mainTable td {
        padding: 0.4rem 0.3rem;
        vertical-align: middle;
    }
    
    .nota {
        font-size: 0.7rem;
        margin-top: 0.2rem;
        opacity: 0.8;
    }
    
    .dataTables_wrapper {
        font-size: 0.8rem;
    }
    
    .dataTables_filter input {
        width: 100%;
        margin-top: 0.3rem;
    }
    
    #mainTable_wrapper .dataTables_filter,
    #mainTable_wrapper .dataTables_info,
    #mainTable_wrapper .dataTables_paginate {
        font-size: 0.75rem;
    }
    
    #saldosContainer .card-header {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        font-weight: 600;
    }
    
    #saldosContainer .card-body {
        padding: 0.6rem;
    }
    
    #saldosContainer .card-body h3 {
        font-size: 1.1rem;
        margin: 0;
    }
    
    #saldosContainer .col {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    #mainTable {
        font-size: 0.85rem;
    }
    
    #mainTable th,
    #mainTable td {
        padding: 0.5rem 0.4rem;
    }
    
    .nota {
        font-size: 0.75rem;
        margin-top: 0.2rem;
        opacity: 0.9;
    }
    
    .concepto-link {
        word-break: break-word;
        hyphens: auto;
    }
    
    .dataTables_filter input {
        font-size: 0.85rem;
    }
    
    #saldosContainer .card-header {
        font-size: 0.75rem;
        padding: 0.5rem 0.7rem;
    }
    
    #saldosContainer .card-body {
        padding: 0.8rem;
    }
    
    #saldosContainer .card-body h3 {
        font-size: 1.2rem;
        margin: 0;
    }
    
    #saldosContainer .col {
        margin-bottom: 0.7rem;
    }
}