

/* =================================================================
   11. ADMIN LAYOUT STYLES
   ================================================================= */

/* Admin layout specific styles */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row ::deep a, .top-row ::deep .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
            text-decoration: underline;
        }

        .top-row ::deep a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

/* Admin nav menu */
.bi {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type {
        padding-top: 1rem;
    }

    .nav-item:last-of-type {
        padding-bottom: 1rem;
    }

    .nav-item ::deep a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

        .nav-item ::deep a.active {
            background-color: rgba(255,255,255,0.37);
            color: white;
        }

        .nav-item ::deep a:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

/* Admin wallet icons */
.bi-wallet-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-wallet-fill' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 2A1.5 1.5 0 0 0 0 3.5v2h6a.5.5 0 0 1 .5.5c0 .253.08.644.306.958.207.288.557.542 1.194.542.637 0 .987-.254 1.194-.542.226-.314.306-.705.306-.958a.5.5 0 0 1 .5-.5h6v-2A1.5 1.5 0 0 0 14.5 2h-13z'/%3E%3Cpath d='M16 6.5h-5.551a2.678 2.678 0 0 1-.443 1.042C9.613 8.088 8.963 8.5 8 8.5c-.963 0-1.613-.412-2.006-.958A2.679 2.679 0 0 1 5.551 6.5H0v6A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-6z'/%3E%3C/svg%3E");
}

.bi-gear-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-gear-fill' viewBox='0 0 16 16'%3E%3Cpath d='M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z'/%3E%3C/svg%3E");
}

/* =================================================================
   12. ERROR HANDLING & LOADING COMPONENTS
   ================================================================= */

/* Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Loading Progress */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/* =================================================================
   13. ANIMATIONS
   ================================================================= */
@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(10px, -15px);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-15px, 10px);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(5px, -20px);
    }
}

@keyframes float4 {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-10px, 15px);
    }
}

@keyframes float5 {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -10px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Classes */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    [data-aos="fade-up"].aos-animate {
        opacity: 1;
        transform: translateY(0);
    }

.donations-table tbody tr {
    animation: fadeInUp 0.4s ease-out;
}

    .donations-table tbody tr:nth-child(1) {
        animation-delay: 0.05s;
    }

    .donations-table tbody tr:nth-child(2) {
        animation-delay: 0.1s;
    }

    .donations-table tbody tr:nth-child(3) {
        animation-delay: 0.15s;
    }

    .donations-table tbody tr:nth-child(4) {
        animation-delay: 0.2s;
    }

    .donations-table tbody tr:nth-child(5) {
        animation-delay: 0.25s;
    }

    .donations-table tbody tr:nth-child(6) {
        animation-delay: 0.3s;
    }

.navbar-collapse.collapsing,
.navbar-collapse.show {
    animation: slideDown 0.3s ease-out;
}

/* =================================================================
   14. RESPONSIVE DESIGN
   ================================================================= */

/* Mobile navbar adjustments */
@media (max-width: 991.98px) {
    body {
        padding-top: 80px;
    }

    .main-section {
        padding-top: 100px !important;
    }

        .main-section .centerized-box {
            padding-top: 40px;
        }

    .enhanced-navbar {
        padding: 0.5rem 0;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(20px);
    }

    .enhanced-navbar .nav-link {
        font-size: 1.1rem;
        padding: 1rem 1.5rem !important;
        margin: 0.25rem 0;
        border-radius: 12px;
        justify-content: flex-start;
    }

    .mobile-nav-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(67, 147, 111, 0.1);
    }

        .mobile-nav-section:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

    .mobile-nav-title {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--bs-primary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.75rem;
        padding: 0 1.5rem;
    }

    .projects-dropdown .dropdown-menu {
        position: static !important;
        display: block;
        transform: none !important;
        box-shadow: none;
        background: rgba(67, 147, 111, 0.05);
        border-radius: 12px;
        margin-top: 0.75rem;
        padding: 1rem;
    }

    .projects-dropdown .dropdown-toggle {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .enhanced-dropdown-menu .dropdown-item {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .navbar-brand.d-lg-none img {
        height: 60px !important;
    }

    .navbar-toggler {
        border: 2px solid var(--bs-primary);
        border-radius: 8px;
        padding: 0.5rem;
        background: rgba(67, 147, 111, 0.1);
    }

        .navbar-toggler:focus {
            box-shadow: 0 0 0 0.2rem rgba(67, 147, 111, 0.25);
        }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2343936f' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .min-navbar .navbar-collapse {
        padding: 20px;
    }

    .steps-section {
        padding: 30px;
    }

        .steps-section .step-item {
            padding: 0 5%;
            width: 100%;
            display: flex;
            align-items: center;
            padding: 10px 0;
        }

            .steps-section .step-item span {
                display: inline-block;
                min-width: 90%;
            }

    .projects-types-section {
        padding: 40px 0;
    }

    .project-type-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .main-section {
        padding-top: 80px !important;
    }

        .main-section .centerized-box {
            padding-top: 30px;
            padding-top: 150px;
        }

            .main-section .centerized-box h1 {
                font-size: 40px;
                padding: 30px 0;
            }

            .main-section .centerized-box .action-container {
                margin-bottom: 50px;
            }

        .main-section .circle-img {
            width: 150px;
            height: 150px;
            display: none;
        }

        .main-section .floating-start-box,
        .main-section .floating-end-box {
            width: 100%;
        }

    .about-section {
        padding: 30px;
    }

        .about-section .content {
            gap: 30px;
        }

            .about-section .content p {
                font-size: 18px;
            }

        .about-section .logo {
            max-width: 200px;
            margin-bottom: 40px;
        }

    .form-section {
        padding: 30px 0;
    }

        .form-section .search-form {
            flex-direction: column;
            gap: 10px;
        }

            .form-section .search-form label {
                font-size: 18px;
            }

            .form-section .search-form input {
                font-size: 18px;
            }

        .form-section .send-form h2 {
            font-size: 18px;
        }

        .form-section .logo {
            max-width: 200px;
            margin-bottom: 40px;
        }

    .min-navbar .navbar-collapse {
        flex-grow: 1;
    }

    /* Project pages responsive */
    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .projects-section {
        padding-top: 120px;
    }

    .project-card-image {
        height: 180px;
    }

    .project-card-body {
        padding: 20px;
    }

    .project-card-footer {
        padding: 16px 20px;
    }

    .organization-projects-page {
        padding-top: 120px;
    }

    .project-card-image {
        height: 200px;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .cta-illustration {
        margin-right: 0;
        margin-top: 20px;
    }

    .cta-actions {
        justify-content: center;
    }

    /* Project details responsive */
    .project-hero {
        height: 300px;
    }

    .project-title {
        font-size: 2rem;
    }

    .project-meta-info {
        flex-direction: column;
        gap: 10px;
    }

    .section-card .card-header,
    .section-card .card-body {
        padding: 16px;
    }

    .images-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .gallery-item {
        height: 150px;
    }

    /* Donations responsive */
    .donations-section .centerized-box {
        padding-top: 60px;
    }

    .donations-section h1 {
        font-size: 2.5rem;
    }

    .donations-content-section {
        padding: 40px 0;
    }

    .summary-card {
        padding: 1.5rem;
    }

    .summary-header {
        gap: 1rem;
    }

    .currency-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .total-amount {
        font-size: 1.4rem;
    }

    .wallet-header {
        padding: 1.5rem;
    }

        .wallet-header h2 {
            font-size: 1.4rem;
        }

    .donations-grid {
        padding: 1.5rem;
    }

    .table-container {
        max-height: 400px;
        border-radius: 12px;
    }

    .donations-table {
        font-size: 0.85rem;
    }

        .donations-table thead th {
            padding: 0.75rem 1rem;
            font-size: 0.9rem;
        }

        .donations-table td {
            padding: 0.75rem 1rem;
        }

    .donation-code {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .donation-amount {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .donations-section h1 {
        font-size: 2rem;
    }

    .summary-header {
        flex-direction: column;
        text-align: center;
    }

    .table-container {
        max-height: 350px;
        border-radius: 10px;
    }

    .donations-table {
        font-size: 0.8rem;
    }

        .donations-table thead th {
            padding: 0.6rem 0.8rem;
            font-size: 0.85rem;
        }

        .donations-table td {
            padding: 0.6rem 0.8rem;
        }

    .donation-code {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        flex-direction: column;
        gap: 0.2rem;
        text-align: center;
    }

        .donation-code i {
            font-size: 0.7rem;
        }

    .donation-amount {
        font-size: 0.9rem;
    }

    .donation-date {
        flex-direction: column;
        gap: 0.2rem;
        text-align: center;
    }

        .donation-date i {
            font-size: 0.7rem;
        }

    .wallet-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .donations-badge {
        align-self: flex-end;
    }
}

/* Animation for loading */
.donations-table tbody tr {
    animation: fadeInUp 0.4s ease-out;
}

    /* Stagger animation for table rows */
    .donations-table tbody tr:nth-child(1) {
        animation-delay: 0.05s;
    }

    .donations-table tbody tr:nth-child(2) {
        animation-delay: 0.1s;
    }

    .donations-table tbody tr:nth-child(3) {
        animation-delay: 0.15s;
    }

    .donations-table tbody tr:nth-child(4) {
        animation-delay: 0.2s;
    }

    .donations-table tbody tr:nth-child(5) {
        animation-delay: 0.25s;
    }

    .donations-table tbody tr:nth-child(6) {
        animation-delay: 0.3s;
    }

/* =================================================================
   16. ADMIN COMPONENT STYLES
   ================================================================= */

/* Admin form styles */
.admin-form {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    direction: rtl;
    text-align: right;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border-radius: 5px;
    padding: 10px;
    height: auto;
}

.generated-files {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 20px;
}

.list-group-item {
    direction: rtl;
    text-align: right;
}

/* Project form styles */
.project-form {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* =================================================================
   17. MODAL STYLES
   ================================================================= */

/* Modal general styles */
.modal {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

    .modal.show.d-block {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

.modal-dialog {
    margin: 0;
    max-width: 90%;
    width: auto;
}

.modal-content {
    direction: rtl;
    text-align: right;
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
}

/* =================================================================
   18. WALLET COMPONENT STYLES
   ================================================================= */

/* Wallet section styles */
.wallet-section {
    direction: rtl;
    text-align: right;
}

.wallet-header {
    background: var(--bs-primary);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.transaction-card {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

    .transaction-card:hover {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.transaction-search {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

    .transaction-search input {
        border-radius: 50px;
        padding: 8px 15px;
        border: 1px solid #ddd;
        width: 100%;
    }

.transaction-form {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 20px;
}

    .transaction-form label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }

    .transaction-form input,
    .transaction-form select {
        width: 100%;
        padding: 10px;
        border-radius: 5px;
        border: 1px solid #ddd;
        margin-bottom: 15px;
    }

.transaction-table {
    width: 100%;
    border-collapse: collapse;
}

    .transaction-table th,
    .transaction-table td {
        border: 1px solid #ddd;
        padding: 12px;
        text-align: right;
    }

    .transaction-table th {
        background-color: var(--bs-primary);
        color: white;
    }

    .transaction-table tr:nth-child(even) {
        background-color: #f2f2f2;
    }

.btn-wallet {
    background: var(--bs-primary);
    color: white;
    font-size: 18px;
    padding: 8px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-wallet:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }

.btn-wallet-danger {
    background: var(--bs-secondary);
}

/* Modal styling for wallet */
.wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.wallet-modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
}

.wallet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .wallet-modal-header h3 {
        margin: 0;
    }

.wallet-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Stats widgets */
.wallet-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.wallet-stat-card {
    flex: 1;
    min-width: 200px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

    .wallet-stat-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .wallet-stat-card .amount {
        font-size: 24px;
        font-weight: bold;
        color: var(--bs-primary);
    }

    .wallet-stat-card.deposit .amount {
        color: var(--bs-primary);
    }

    .wallet-stat-card.withdrawal .amount {
        color: var(--bs-secondary);
    }

/* =================================================================
   19. LOADING COMPONENT STYLES
   ================================================================= */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    max-width: 200px;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.spinner-container {
    margin: 20px auto;
}

.spinner {
    width: 60px;
    height: 60px;
    position: relative;
    margin: 0 auto;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--bs-primary);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    background-color: var(--bs-secondary);
    animation-delay: -1.0s;
}

.loading-text {
    font-size: 18px;
    margin-top: 20px;
    color: #333;
}

@keyframes sk-bounce {
    0%, 100% {
        transform: scale(0.0);
    }

    50% {
        transform: scale(1.0);
    }
}

/* =================================================================
   20. FILE UPLOAD COMPONENT STYLES
   ================================================================= */

/* Image Upload */
.image-upload-container {
    margin-bottom: 1rem;
}

.upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

    .upload-zone:hover, .upload-zone.dragging {
        border-color: #43936f;
        background-color: rgba(67, 147, 111, 0.05);
    }

.hidden-file-input {
    display: none;
}

.upload-label {
    display: block;
    width: 100%;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .upload-placeholder i {
        font-size: 2rem;
        color: #43936f;
        margin-bottom: 1rem;
    }

.image-preview-container {
    margin-top: 1rem;
}

.image-preview {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 150px;
}

    .image-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.btn-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,255,255,0.7);
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Document Upload */
.document-upload-container {
    margin-bottom: 1rem;
}

.upload-zone.dragging {
    border-color: var(--bs-primary);
    background-color: rgba(67, 147, 111, 0.05);
}

.document-list {
    margin-top: 1rem;
}

/* =================================================================
   21. ADDITIONAL RESPONSIVE BREAKPOINTS
   ================================================================= */

/* Extra small devices */
@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }

    .main-section {
        padding-top: 70px !important;
    }

        .main-section .centerized-box h1 {
            font-size: 1.8rem;
        }

    .enhanced-navbar {
        padding: 0.25rem 0;
    }

    .btn.btn-mata {
        font-size: 18px;
        min-width: 150px;
        padding: 10px 20px;
    }

    .wallet-stats {
        flex-direction: column;
    }

    .transaction-table {
        display: block;
        overflow-x: auto;
    }
}

/* Large devices and up */
@media (min-width: 1200px) {
    .container-fluid.project-container {
        max-width: 1400px;
        margin: 0 auto;
    }

    .projects-grid .row {
        margin: 0 -20px;
    }

    .projects-grid .col-md-6,
    .projects-grid .col-lg-4 {
        padding: 0 20px;
    }
}

/* Extra large devices */
@media (min-width: 1400px) {
    .section-title {
        font-size: 3.5rem;
    }

    .project-title {
        font-size: 3.5rem;
    }

    .main-section .centerized-box {
        max-width: 1000px;
    }
}

/* =================================================================
   22. PRINT STYLES
   ================================================================= */

@media print {
    .enhanced-navbar,
    .min-navbar,
    .floating-start-box,
    .floating-end-box,
    .floating-back-box,
    .btn,
    .modal,
    .preloader {
        display: none !important;
    }

    body {
        padding-top: 0 !important;
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }

    .main-section {
        padding-top: 0 !important;
    }

    .project-card,
    .section-card,
    .wallet-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .donations-table,
    .transaction-table {
        width: 100%;
        border-collapse: collapse;
    }

        .donations-table th,
        .donations-table td,
        .transaction-table th,
        .transaction-table td {
            border: 1px solid #000;
            padding: 8px;
        }
}

/* =================================================================
   23. HIGH CONTRAST MODE
   ================================================================= */

@media (prefers-contrast: high) {
    .project-card,
    .section-card,
    .wallet-section {
        border: 2px solid #000;
    }

    .btn-mata,
    .btn-project,
    .btn-project-org {
        border: 2px solid #000;
    }

    .enhanced-navbar {
        border-bottom: 2px solid #000;
    }

    .status-badge {
        border: 2px solid #000;
    }
}

/* =================================================================
   24. REDUCED MOTION
   ================================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .floating-start-box .circle-img,
    .floating-end-box .circle-img,
    .floating-back-box .circle-img {
        animation: none;
    }

    .preloader-logo {
        animation: none;
    }
}

 