/* style.css نهایی و حرفه‌ای */
@import url('Vazirmatn-font-face.css');

body {
    font-family: 'Vazirmatn', sans-serif;
    background: #1e272e;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    width: 420px;
    box-shadow: 0 0 30px #7efff5;
    color: #fff;
    animation: fadeIn 1s ease;
    direction: rtl;
    text-align: right;
    margin: 3rem 0;
}

.container h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 1.8rem;
    background: linear-gradient(90deg, #7efff5, #00c6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-family: 'Vazirmatn', sans-serif;
}

label {
    display: block;
    /* margin-bottom: 1rem; */
    margin: 1rem 0 1rem 0;
    font-weight: 500;
    color: #cce7ff;
    font-family: 'Vazirmatn', sans-serif;
}

input,
select,
textarea {
    width: 94%;
    /* max-width: 420px !important; */
    padding: 14px;
    /* margin-bottom: .5rem; */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

input::placeholder,
textarea::placeholder {
    color: #87cefa;
    font-family: 'Vazirmatn', sans-serif;
}

input:focus,
select:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    border-color: #4da6ff;
    box-shadow: 0 0 12px #7efff5;
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2196f3, #1565c0);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    margin-top: 1.5rem;
}



button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(77, 166, 255, 0.5);
}

.message {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.8s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.message.success {
    background: rgba(0, 255, 128, 0.15);
    color: #00ff7f;
}

.message.error {
    background: #fff;
    color: #ea0606;
    box-shadow: 0 0 12px #7efff5;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* نسخه حرفه‌ای‌تر و مدرن‌تر برای تقویم */
.pdp-latoja {
    position: absolute;
    direction: rtl;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 0 12px #7efff5;
    z-index: 99999;
    font-size: 15px;
    padding: 12px;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.pdp-latoja:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.pdp-latoja .pdp-header {
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #4da6ff, #1e90ff);
    color: #fff;
    font-weight: bold;
    padding: 8px;
    text-align: center;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.pdp-latoja .dow {
    font: bold 15px Vazirmatn, Tahoma;
    background: #f0f4f8;
    border-radius: 10px;
    margin: 3px;
    padding: 6px;
    color: #333;
}

.pdp-latoja .day {
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.25s ease;
    font-size: 14px;
}

.pdp-latoja .day:hover {
    background: #4da6ff;
    color: #fff;
    transform: scale(1.15);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(77, 166, 255, 0.4);
}

.pdp-latoja .selday,
.pdp-latoja .selday:hover {
    background: #1e90ff;
    color: #fff;
    border-radius: 12px;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.25);
    font-weight: bold;
}

.pdp-latoja .today {
    background: linear-gradient(135deg, #4da6ff, #00c6ff);
    color: #fff;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(77, 166, 255, 0.6), inset 0 2px 6px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    transform: scale(1.05);
}

.pdp-latoja .today:hover {
    background: linear-gradient(135deg, #1e90ff, #4da6ff);
    box-shadow: 0 0 16px rgba(30, 144, 255, 0.7), inset 0 2px 6px rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.pdp-latoja .disday,
.pdp-latoja .disday:hover {
    color: #aaa;
    background: #f5f5f5;
    border-radius: 10px;
    cursor: not-allowed;
}

.pdp-latoja .pdp-footer .goToday {
    font-family: 'Vazirmatn', sans-serif;
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #1e90ff, #4da6ff);
    color: #fff !important;
    padding: 8px 0;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.pdp-latoja .pdp-footer .goToday:hover {
    background: linear-gradient(135deg, #cc0000, #ff4d4d);
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(30, 144, 255, 0.7), inset 0 2px 6px rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

/* استایل منوهای کرکره */
select,
option {
    background-color: #f9f9f9;
    color: #000;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 0 12px #7efff5;
    font-family: 'Vazirmatn', sans-serif;

}

html,
body {
    font-family: 'Vazirmatn', sans-serif !important;
}

select {
    font-family: 'Vazirmatn', sans-serif !important;
    color: #000 !important;
    background-color: #fff !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* کانتینر باید position داشته باشد تا dropdownParent درست کار کند */
.container {
    position: relative;
    /* مهم */
    overflow: visible;
    /* جلوگیری از برش dropdown */
}

/* اطمینان از اینکه والدهای بالاتر overflow:hidden ندارند */
body,
html,
.container,
.container * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* محدود کردن عرض و ظاهر select/Select2 */
.select2-container,
select {
    width: 100% !important;
    max-width: 420px;
    box-sizing: border-box;
    box-shadow: 0 0 12px #7efff5;
}

/* ظاهر بخش انتخاب‌شده */
.select2-container--default .select2-selection--single {
    font-family: 'Vazirmatn', sans-serif !important;
    color: #130f40 !important;
    background: #fff !important;
    padding: 6px 10px !important;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    height: auto !important;
    line-height: 1.4 !important;
    box-shadow: 0 0 12px #7efff5;
}

/* محدود کردن عرض dropdown و جلوگیری از کشیدگی به سمت راست/چپ */
.select2-dropdown {
    max-width: 420px !important;
    box-sizing: border-box;
    position: absolute !important;
    /* اطمینان از موقعیت‌دهی محلی */
    left: 0 !important;
    /* قرارگیری دقیق زیر سلکت */
    right: auto !important;
    z-index: 99999 !important;
    /* بالاتر از سایر المان‌ها */
    box-shadow: 0 0 12px #7efff5;
}

/* اگر Select2 منو را به body الحاق کند، این کلاس‌ها کمک می‌کنند */
.select2-container--open .select2-dropdown--below {
    left: 0 !important;
    right: auto !important;
    transform: none !important;
}

/* گزینه‌ها خواناتر شوند */
.select2-container--default .select2-results__option {
    font-family: 'Vazirmatn', sans-serif !important;
    color: #130f40 !important;
    padding: 5px 8px !important;
    line-height: 1.6 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* box-shadow: 0 0 12px #7efff5; */
}

/* اگر والدها transform دارند، dropdown ممکن است موقعیت اشتباه بگیرد.
   اگر از transform روی والد استفاده می‌کنی، بهتر است dropdownParent را روی body نگذاری
   و از dropdownParent: container استفاده کنی. */

/* برای موبایل یا صفحه‌های کوچک */
@media (max-width: 480px) {
    .select2-dropdown {
        max-width: calc(100% - 20px) !important;
        left: 10px !important;
    }
}

/*
h1 {
  position: relative;
  display: inline-block;
  margin: 0 auto 24px;
  padding: 12px 32px;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  border-radius: 12px;
  z-index: 1;
}


body{
    background:#111;
    font-family:'Vazirmatn',sans-serif;
}
.container{
    max-width:420px;
    margin:60px auto;
    background:#1e1e1e;
    padding:25px;
    border-radius:14px;
    box-shadow:0 0 20px #000;
    color:#fff;
}
input,select,button{
    width:100%;
    padding:12px;
    margin-top:15px;
    border-radius:8px;
    border:none;
    font-family:'Vazirmatn',sans-serif;
}
button{
    background:#0a7;
    color:#fff;
    font-size:16px;
    cursor:pointer;
}
.message{
    padding:10px;
    border-radius:6px;
    margin-bottom:10px;
    text-align:center;
} */
