﻿:root {
    --green: #6ba132;
    --lime: #a5f553;
    --dark-green: #334b19;
    --wormy: #f7f2df;
    --white: #ffffff;
    --dark-gray: #333333;
    --light-gray: #f5f5f5;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


body {
    user-select: none;
    font-family: 'Vazir', sans-serif !important;
    background-color: var(--wormy) !important;
    color: var(--dark-gray) !important;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(4px);
    }
}

.sidebar {
    position: fixed;
    top: 0;
    right: -250px; 
    width: 250px;
    height: 100%;
    background: linear-gradient(180deg, var(--green), var(--lime));
    color: #fff;
    transition: 0.6s;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

    .sidebar.active {
        right: 0;
    }

    .sidebar h2 {
        text-align: center;
        margin-top: 30px;
        margin-bottom: 30px;
        font-size: 26px;
    }

    .sidebar ul {
        position: absolute;
        list-style: none;
        right: -30px;
        margin-top: 20px;
    }

        .sidebar ul li {
            margin: 10px 0 ;
        }

            .sidebar ul li a {
                color: #fff;
                text-decoration: none;
                font-size: 19px;
                display: flex;
                align-items: center;
                gap: 10px;
                transition: 0.3s;
                cursor: pointer;
                margin-right: 40px;
            }

                .sidebar ul li a:hover {
                    color: var(--dark-green);
                    transform: translateX(-5px);
                }

.sidebar-btn {
    position: absolute;
    left: -40px;
    width: 40px;
    height: 40px;
    background: linear-gradient(-115deg, var(--green), var(--lime));
    border: none;
    color: white;
    border-radius: 5px 0 0 35px;
    cursor: pointer;
    font-size: 20px;
    transition: 0.6s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    outline: none !important;
}

.wormy-line {
    position: absolute;
    margin-top: 5px;
    margin-bottom: 19px;
    border: solid 2px var(--wormy);
    right: 5px;
    left: 5px;
    border-radius: 3px;
}

i.fa.fa-bars {
    position: absolute;
    top: 7px;
    right: 6px;
    font-size: 1.3rem;
    transition: 0.5s;
}

i.fa.fa-bars:hover {
    transform: rotate(360deg)
}

a:hover i {
    transition: 0.8s;
    transform: rotate(360deg)
}


/*Loading*/
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.blur-background {
    position: absolute;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.2);
}

.spinner-container {
    position: relative;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.spinner-step {
    width: 20px;
    height: 20px;
    background: var(--lime);
    border-radius: 50%;
    animation: moveStep 2s infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

@keyframes moveStep {
    0% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(0) translateY(-20px);
    }

    50% {
        transform: translateX(20px) translateY(-20px);
    }

    75% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

#content-wrapper {
    display: none;
}

@media (max-width: 576px) {
    .card-form {
        margin: 15px;
        padding: 20px;
    }

    .btn-success {
        width: 100%;
        padding: 12px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(-5px);
    }

    20% {
        transform: translateX(5px);
    }

    30% {
        transform: translateX(-5px);
    }

    40% {
        transform: translateX(5px);
    }

    50% {
        transform: translateX(-5px);
    }

    60% {
        transform: translateX(5px);
    }

    70% {
        transform: translateX(-5px);
    }

    80% {
        transform: translateX(5px);
    }

    90% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}


@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes fadeOut {
    from {
        opacity: 1
    }

    to {
        opacity: 0
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 4px var(--lime);
    }

    50% {
        box-shadow: 0 0 15px 8px var(--lime);
    }

    100% {
        box-shadow: 0 0 0 4px var(--lime);
    }
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--wormy);
    border-left: solid 0.23589554px var(--lime);
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background-color: var(--lime);
    border-radius: 1px;
}