﻿

@font-face {
    font-family: 'vazir-regular-fd';
    src: url('../assets/font/vazir-regular-fd.ttf') format('truetype');
}
/* استایل‌های کلی */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Vazir-Regular-FD';
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    padding-top: 60px;
    padding-bottom: 60px;
    color: #333;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* نوبار بالا */
.khoshkebijar-top-nav {
    background-color: #06346f;
    height: 60px;
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 500px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    right: 50%;
    transform: translateX(50%);
}

    .khoshkebijar-top-nav .logo {
        color: white;
        font-weight: bold;
        font-size: 18px;
    }

    .khoshkebijar-top-nav .menu-icon {
        color: white;
        font-size: 20px;
        cursor: pointer;
    }

.back-btn {
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: none;
}

    .back-btn.active {
        display: block;
    }

/* منوی کشویی از چپ */
.khoshkebijar-side-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
}

    .khoshkebijar-side-menu.active {
        right: 0;
    }

.khoshkebijar-side-menu-header {
    background-color: #06346f;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .khoshkebijar-side-menu-header .close-btn {
        color: white;
        font-size: 20px;
        cursor: pointer;
    }

.khoshkebijar-side-menu a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
    position: relative;
    overflow: hidden;
}

    .khoshkebijar-side-menu a:hover {
        background-color: #f5f5f5;
        color: #06346f;
    }

    .khoshkebijar-side-menu a i {
        margin-left: 10px;
        width: 20px;
        text-align: center;
    }

/* افکت ریپل */
.ripple {
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}

    .ripple:after {
        content: "";
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        right: 0;
        pointer-events: none;
        background-image: radial-gradient(circle, #000 10%, transparent 10.01%);
        background-repeat: no-repeat;
        background-position: 50%;
        transform: scale(10, 10);
        opacity: 0;
        transition: transform .5s, opacity 1s;
    }

    .ripple:active:after {
        transform: scale(0, 0);
        opacity: .2;
        transition: 0s;
    }

/* محتوای اصلی */
.khoshkebijar-content {
    padding: 5px;
}

/* دکمه‌های اصلی */
.khoshkebijar-main-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.khoshkebijar-main-btn {
    background-color: #06346f;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

    .khoshkebijar-main-btn:hover {
        background-color: #052a5a;
        transform: translateY(-2px);
        text-decoration: none;
        color: white;
    }

    .khoshkebijar-main-btn i {
        margin-left: 10px;
        font-size: 20px;
    }

/* بخش‌های محتوا */
.khoshkebijar-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 10px;
}

    .khoshkebijar-section h2 {
        color: #06346f;
        margin-top: 0;
        font-size: 18px;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .khoshkebijar-section h3 {
        color: #06346f;
        font-size: 16px;
        margin-top: 20px;
    }

/* باتوم نویگیشن بار */
.khoshkebijar-bottom-nav {
    background-color: #06346f;
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    z-index: 1000;
    padding: 0;
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    right: 50%;
    transform: translateX(50%);
}

    .khoshkebijar-bottom-nav a {
        color: #fff;
        text-align: center;
        flex: 1;
        padding: 10px 5px;
        font-size: 12px;
        text-decoration: none;
        transition: background-color 0.3s;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

        .khoshkebijar-bottom-nav a.active {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .khoshkebijar-bottom-nav a i {
            font-size: 18px;
            margin-bottom: 5px;
        }

/* صفحه‌های محتوا */
.page {
    display: none;
}

    .page.active {
        display: block;
    }

/* کارت‌ها */
.khoshkebijar-card {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

    .khoshkebijar-card h3 {
        margin-top: 0;
        color: #06346f;
        font-size: 16px;
    }

/* اعلان‌ها */
.khoshkebijar-alert {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

    .khoshkebijar-alert.info {
        background-color: #e7f3ff;
        color: #06346f;
        border: 1px solid #b3d9ff;
    }

    .khoshkebijar-alert.success {
        background-color: #e7f7e7;
        color: #2d662d;
        border: 1px solid #b3e6b3;
    }

/* لیست‌ها */
.khoshkebijar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .khoshkebijar-list li {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

        .khoshkebijar-list li:last-child {
            border-bottom: none;
        }

/* فرم‌ها */
.khoshkebijar-form-group {
    margin-bottom: 15px;
    position: relative;
}

    .khoshkebijar-form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
        position: absolute;
        top: 15px;
        right: 10px;
        color: #999;
        transition: all 0.3s;
        pointer-events: none;
        background-color: white;
        padding: 0 5px;
    }

    .khoshkebijar-form-group input,
    .khoshkebijar-form-group select,
    .khoshkebijar-form-group textarea {
        width: 100%;
        padding: 15px 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-sizing: border-box;
        font-size: 16px;
        background-color: white;
    }

        .khoshkebijar-form-group input:focus,
        .khoshkebijar-form-group select:focus,
        .khoshkebijar-form-group textarea:focus {
            border-color: #06346f;
            outline: none;
        }

            .khoshkebijar-form-group input:focus + label,
            .khoshkebijar-form-group input:not(:placeholder-shown) + label,
            .khoshkebijar-form-group select:focus + label,
            .khoshkebijar-form-group select:not(:placeholder-shown) + label,
            .khoshkebijar-form-group textarea:focus + label,
            .khoshkebijar-form-group textarea:not(:placeholder-shown) + label {
                top: -10px;
                font-size: 12px;
                color: #06346f;
            }

.khoshkebijar-btn {
    background-color: #06346f;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    width: 100%;
    font-size: 16px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* محتوای آموزشی */
.education-content {
    line-height: 1.6;
}

    .education-content p {
        margin-bottom: 15px;
        text-align: justify;
    }

    .education-content ul {
        padding-right: 20px;
        margin-bottom: 15px;
    }

    .education-content li {
        margin-bottom: 8px;
    }

.step-box {
    background-color: #f0f8ff;
    border-right: 4px solid #06346f;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

.step-title {
    font-weight: bold;
    color: #06346f;
    margin-bottom: 10px;
}

/* overlay برای زمانی که منو باز است */
.khoshkebijar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
    display: none;
}

    .khoshkebijar-overlay.active {
        display: block;
    }

/* فرم ورود چند مرحله‌ای */
.login-steps {
    display: none;
}

    .login-steps.active {
        display: block;
    }

.timer {
    text-align: center;
    margin: 15px 0;
    font-size: 14px;
    color: #666;
}

.resend-code {
    text-align: center;
    margin: 15px 0;
}

    .resend-code a {
        color: #06346f;
        text-decoration: none;
    }

.success-notification {
    background-color: #e7f7e7;
    border: 1px solid #b3e6b3;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    display: none;
}

    .success-notification.active {
        display: block;
    }

.success-icon {
    font-size: 40px;
    color: #2d662d;
    margin-bottom: 10px;
}


