@font-face {
    font-family: 'Estedad';
    src: url('./fonts/Estedad.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* استایل عمومی */
body {
    font-family: 'Estedad', sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    direction: rtl; /* راست‌چین کردن کل پروژه */
    text-align: right; /* متن‌ها راست‌چین شوند */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

h1, h2, h3, p, a {
    font-family: 'Estedad', sans-serif;
}

/* کانتینر اصلی */
.container {
    background: #ffffff;
    padding: 30px; /* افزایش فضای داخلی */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
    max-width: 800px; /* افزایش عرض کانتینر اصلی */
}

/* عنوان‌ها */
h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* فرم‌ها */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
    transition: box-shadow 0.3s ease;
}

input:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    border-color: #007bff;
}

/* تنظیمات کلی فرم */
.form-row {
    display: flex;
    justify-content: space-between;
    gap: 15px; /* فاصله بین فیلدها */
    margin-bottom: 15px;
}

.form-group {
    flex: 1; /* هر فیلد به طور مساوی فضا می‌گیرد */
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

/* پیام‌های فرم */
.message {
    display: none;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* دکمه‌ها */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: rgb(0, 122, 255);
    color: white;
}

.btn-primary:hover {
    background-color: rgb(0, 102, 204);
}

.btn-submit {
    width: 100%;
    background-color: #28a745;
    color: white;
}

.btn-submit:hover {
    background-color: #218838;
}

/* استایل لینک‌های ارسال و تایید کد */
.verify-link {
    position: absolute;
    left: 10px; /* قرارگیری در سمت چپ */
    transform: translateY(-50%); /* تنظیم دقیق مرکز عمودی */
    font-size: 14px;
    color: #007bff; /* رنگ آبی استاندارد لینک */
    font-weight: bold;
    text-decoration: none; /* حذف خط زیر لینک */
    white-space: nowrap; /* جلوگیری از شکستن متن */
    cursor: pointer;
    transition: color 0.3s ease; /* تغییر رنگ نرم */
    line-height: 1; /* تنظیم ارتفاع خط */
}

.verify-link:hover {
    color: #0056b3;
}

/* کانتینر OTP */
.otp-container {
    position: relative;
    display: flex;
    align-items: center; /* تنظیم مرکز عمودی برای محتوای داخل */
    height: 40px; /* ارتفاع ثابت برای هماهنگی */
}

.otp-container input {
    flex: 1;
    padding-left: 100px; /* فضای کافی برای دکمه */
    height: 100%; /* هماهنگی ارتفاع با کانتینر */
    box-sizing: border-box; /* اطمینان از درستی اندازه */
}

/* جدول‌ها */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

table th {
    background-color: #f4f4f4;
}

/* لینک‌ها */
a {
    text-decoration: none;
    color: #4CAF50;
    font-weight: bold;
}

/* منوی ادمین */
.admin-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #4CAF50;
    padding: 15px 30px; /* افزایش فضای داخلی */
    border-radius: 10px;
    margin-bottom: 20px;
    max-width: 800px; /* افزایش عرض کانتینر */
    margin: 0 auto; /* مرکز کردن کانتینر */
}

.admin-menu a {
    color: white;
    font-weight: bold;
    margin: 0 15px; /* افزایش فاصله بین لینک‌ها */
}

/* پیام‌ها */
.message {
    color: green;
    text-align: center;
    margin-top: 10px;
}

.error {
    color: red;
    text-align: center;
    margin-top: 10px;
}

/* استایل صفحه ورود ادمین */
.login-container {
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-container label {
    text-align: left;
    font-weight: bold;
    color: #555;
}

.login-container input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-container input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.login-container button {
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-container button:hover {
    background-color: #0056b3;
}

.login-container .error {
    color: #d9534f;
    font-size: 14px;
    margin-top: 10px;
}

.hidden {
    display: none;
}