﻿body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, #2196F3, #0D47A1);
    font-family: 'IRANSansWeb', sans-serif;
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    box-sizing: border-box;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #0D47A1;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

    .tab.active {
        border-bottom: 2px solid #2196F3;
        color: #2196F3;
    }

/* تنظیمات برای انیمیشن تب‌ها */
@keyframes slideOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(-100%) scale(0.9);
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

    .tab-content.active {
        display: block;
        opacity: 1;
        transform: translateX(0);
    }

    .tab-content.slide-out {
        animation: slideOut 0.5s forwards;
    }

    .tab-content.slide-in {
        display: block;
        animation: slideIn 0.5s forwards;
    }

    .tab-content label {
        font-size: 22px;
        font-weight: bold;
        color: #0D47A1;
        margin-bottom: 15px;
        display: block;
        text-align: center;
    }

.entry-style-light {
    margin: 15px 0;
    width: 100%;
}

.txt-username-light,
.txt-password-light {
    font-family: 'IRANSansWeb', sans-serif;
    font-size: 18px;
    text-align: center;
    color: #0D47A1;
    background-color: #f0f0f0;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #2196F3;
    border-radius: 30px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

    .txt-username-light::placeholder,
    .txt-password-light::placeholder {
        color: #90A4AE;
    }

    .txt-username-light:focus,
    .txt-password-light:focus {
        border-color: #0D47A1;
        background-color: white;
        outline: none;
        box-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
    }

.button-style-light {
    font-family: 'IRANSansWeb', sans-serif;
    padding: 15px;
    color: white;
    background-color: #2196F3;
    font-weight: bold;
    font-size: 20px;
    border: none;
    border-radius: 40px;
    margin-top: 20px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .button-style-light:hover {
        background-color: #1976D2;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(33, 150, 243, 0.3);
    }

@font-face {
    font-family: 'IransansWeb';
    src: url('../Fonts/IRANSansWeb(FaNum).ttf') format('woff2'), url('../Fonts/IRANSansWeb(FaNum).woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.swal2-popup, .swal2-title, .swal2-content {
    font-family: 'IransansWeb', sans-serif;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally */
    margin-top: 10px;
}

    .checkbox-container input[type="checkbox"] {
        display: none; /* Hide the default checkbox */
    }

.checkbox-custom {
    position: relative;
    margin-left: 10px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    background-color: #e0e0e0;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-10px); /* Move checkbox 5 units up */
}

    .checkbox-custom::before {
        content: '';
        position: absolute;
        width: 12px;
        height: 12px;
        background-color: #237d26;
        transform: scale(0);
        border-radius: 2px;
        transition: transform 0.2s ease;
    }

.checkbox-container input[type="checkbox"]:checked + .checkbox-custom::before {
    transform: scale(1);
}

.checkbox-container label {
    margin-left: 8px; /* Adjust spacing between checkbox and label */
    font-size: 16px;
    color: #1976D2;
}


/* انیمیشن‌های پیشرفته برای دکمه‌ها */
.button-style-light {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

    .button-style-light::before,
    .button-style-light::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        border-radius: 40px;
        transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    }

    /* لایه گرادیانت پشت */
    .button-style-light::before {
        background: linear-gradient(135deg, #1976D2, #0D47A1);
        opacity: 0;
        transform: scale(0.9);
    }

    /* افکت نور */
    .button-style-light::after {
        background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
        opacity: 0;
        transform: scale(1.5);
    }

    /* حالت hover */
    .button-style-light:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 25px rgba(33, 150, 243, 0.35);
        color: white;
        border-color: rgba(255,255,255,0.2);
    }

        .button-style-light:hover::before {
            opacity: 1;
            transform: scale(1);
        }

        .button-style-light:hover::after {
            opacity: 0.4;
            transform: scale(1);
        }

/* پالس انیمیشن هنگام hover */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(33, 150, 243, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
    }
}

.button-style-light:hover {
    animation: pulse 1.5s infinite;
}

/* انیمیشن برای موبایل غیرفعال شود */
@media (max-width: 480px) {
    .button-style-light:hover {
        transform: none;
        box-shadow: none;
        animation: none;
    }

    .button-style-light::before,
    .button-style-light::after {
        display: none;
    }
}

/* رسپانسیو برای موبایل */
@media (max-width: 480px) {
    body {
        padding: 20px;
        background: linear-gradient(to right, #1976D2, #0D47A1);
    }

    .container {
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .tab {
        padding: 10px 0;
        font-size: 16px;
    }

    .tab-content {
        padding: 15px;
    }

    label {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .txt-username-light,
    .txt-password-light {
        padding: 12px 15px;
        font-size: 16px;
        border-radius: 25px;
    }

    .button-style-light {
        padding: 12px;
        font-size: 18px;
        border-radius: 30px;
        margin-top: 15px;
    }

    .checkbox-container {
        margin-top: 8px;
    }

    .checkbox-custom {
        width: 20px;
        height: 20px;
        transform: translateY(-8px);
    }

        .checkbox-custom::before {
            width: 10px;
            height: 10px;
        }

    .checkbox-container label {
        font-size: 14px;
    }
}

/* استایل مودال SweetAlert برای موبایل با تم جدید */
.swal2-popup {
    width: 90% !important;
    max-width: 380px !important;
    font-family: 'IRANSansWeb', sans-serif !important;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    direction: rtl !important;
    padding: 20px !important;
}

.swal2-title {
    font-size: 18px !important;
    color: #0D47A1 !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
}

.swal2-content {
    font-size: 15px !important;
    color: #424242 !important;
    line-height: 1.6 !important;
}

.swal2-confirm {
    background-color: #2196F3 !important;
    font-family: 'IRANSansWeb', sans-serif !important;
    font-size: 16px !important;
    padding: 10px 25px !important;
    border-radius: 30px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 auto !important;
}

    .swal2-confirm:hover {
        background-color: #1976D2 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4) !important;
    }

.swal2-backdrop {
    background: rgba(13, 71, 161, 0.5) !important;
}

/* انیمیشن‌های مودال برای موبایل */
@media (max-width: 480px) {
    .swal2-container {
        animation: none !important;
    }

    .swal2-show {
        animation: mobileModalIn 0.4s ease forwards !important;
    }

    .swal2-hide {
        animation: mobileModalOut 0.3s ease forwards !important;
    }

    @keyframes mobileModalIn {
        0% {
            transform: scale(0.95);
            opacity: 0;
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    @keyframes mobileModalOut {
        0% {
            transform: scale(1);
            opacity: 1;
        }

        100% {
            transform: scale(0.95);
            opacity: 0;
        }
    }
}










/* استایل‌های سفارشی برای پاندا */
.custom-swal-popup {
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
}

.custom-swal-title {
    color: #0D47A1 !important;
    font-size: 22px !important;
    font-weight: bold !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #eee !important;
}

.custom-swal-confirm {
    background: linear-gradient(135deg, #2196F3, #0D47A1) !important;
    border-radius: 30px !important;
    padding: 10px 25px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3) !important;
}

    .custom-swal-confirm:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 15px rgba(33, 150, 243, 0.4) !important;
    }

/* تنظیمات تصویر پس‌زمینه برای دسکتاپ */
.swal2-container .swal2-backdrop {
    background: rgba(0,0,123,0.4) url("/AdminPanel/images/EatwJZRUIv41G.webp") left top no-repeat !important;
    background-size: auto !important;
}

/* تنظیمات تصویر پس‌زمینه برای موبایل */
@media (max-width: 480px) {
    .swal2-container .swal2-backdrop {
        background: rgba(0,0,123,0.4) url("/AdminPanel/images/EatwJZRUIv41G.webp") center center/cover !important;
    }

    .custom-swal-popup {
        border-radius: 12px !important;
    }

    .custom-swal-title {
        font-size: 18px !important;
    }

    .swal2-html-container {
        font-size: 14px !important;
    }
}
