@font-face {
    font-family: 'BTRAFFIC';
    src: url('assets/fonts/Btraffic/BTRAFFIC.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'BTRAFFICB';
    src: url('assets/fonts/Btraffic/BTRAFB.woff2') format('woff2');
    font-weight: bold; 
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'BTRAFFICB';
}

body, input, button, select {
    font-family: 'BTRAFFIC', sans-serif;
    font-weight: normal;
}

body {
    font-family: 'BTRAFFICB';
    direction: rtl;
    text-align: right;
    background-color: #f0f4f8;
    display: flex;
    justify-content: flex-start;
    height: 100vh;
    padding: 1rem;
    flex-direction: column;
    flex-wrap: nowrap;
}

/*select:focus {
  height: 30px;
  max-height: 150px; /* ارتفاع معادل حدود ۵ آیتم */
  overflow-y: auto; /* فعال کردن اسکرول هنگام فوکوس */
  position: absolute;
  z-index: 1000;
}*/

.fixed-height-dropdown .select2-results__options {
    max-height: 150px; /* معادل حدود ۵ آیتم */
    overflow-y: auto;
}

.select2-container--default .select2-selection--single {
    /*height: 42px;
    padding: 8px 24px 8px 12px;*/
    text-align: right;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #2c3e50 !important;
    transition: border-color 0.3s ease;
    height: 1% !important;
    border: 1px solid #ddd !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    left: 10px;
    right: auto;
}

.select2-container--default .select2-results__option {
    text-align: right;
    padding: 8px 12px;
    font-family: 'BTRAFFIC', sans-serif;
    color: #2c3e50;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #3498db;
}

body .login {
    justify-content: space-evenly;
    display: flex;
    width: 100%;
    height: 71vh;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
}

.auth-btn {     padding: 0.75rem;
    background-color: #ff9900;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'BTRAFFIC', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
    text-decoration: none;
}

.auth-btn:hover {
    background-color: #e68a00;
}

.tab-content { padding: 20px; display: none; }
.btn { padding: 5px 10px; color: #fff; text-decoration: none; }
.green { background: green; }
.red { background: red; }
.btn.blue {
    background-color: blue;
    color: white;
}
.user-details {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.user-details p {
    margin: 5px 0;
}

.user-details ul {
    margin: 5px 0;
    padding-left: 20px;
}

#payments-list {
    list-style-type: none;
    padding: 0;
}

#payments-list li {
    background-color: #f9f9f9;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.login-container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

.login-container .error {
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.login-container form {
    display: flex;
    flex-direction: column;
}

.login-container input {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #2c3e50;
    transition: border-color 0.3s ease;
}

.login-container input:focus {
    border-color: #3498db;
    outline: none;
}

.login-container button {
    padding: 0.75rem;
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-container button:hover {
    background-color: #2980b9;
}

.login-container p {
    margin-top: 1rem;
    color: #2c3e50;
    font-size: 0.9rem;
}

.login-container a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-container a:hover {
    color: #2980b9;
}

.register-container {
    font-family: 'BTRAFFIC', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 2rem auto;
}

.register-container h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.register-container .error {
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.register-container .success {
    color: #2ecc71;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.register-container form {
    display: flex;
    flex-direction: column;
}

.register-container input, select {
    padding: 0.6rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #2c3e50;
    transition: border-color 0.3s ease;
}

.register-container input:focus {
    border-color: #3498db;
    outline: none;
}

.register-container button {
    padding: 0.75rem;
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.register-container button:hover {
    background-color: #2980b9;
}

.register-container p {
    margin-top: 1rem;
    color: #2c3e50;
    font-size: 0.9rem;
}

.register-container a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-container a:hover {
    color: #2980b9;
}

/* Media Queries برای صفحه‌های کوچک (موبایل) */
@media (max-width: 480px) {
    body {
        padding: 0.5rem; /* کاهش padding برای موبایل */
    }

    .register-container {
        padding: 1.5rem; /* کاهش padding برای موبایل */
    }

    .register-container h2 {
        font-size: 1.3rem; /* کاهش سایز فونت برای موبایل */
    }

    .register-container input {
        /*padding: 0.5rem; /* کاهش padding برای موبایل */
        /*font-size: 0.9rem; /* کاهش سایز فونت برای موبایل */
    }

    .register-container button {
        padding: 0.5rem; /* کاهش padding برای موبایل */
        font-size: 0.9rem; /* کاهش سایز فونت برای موبایل */
    }

    .register-container p {
        font-size: 0.8rem; /* کاهش سایز فونت برای موبایل */
    }
}


header {
    background-color: #310707;
    color: #ffffff;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
}

header h1 {
    font-size: 1.5rem;
    margin: 2.5rem;
}

header p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

header .verified {
    color: #16e327;
    font-weight: bold;
}

header .not-verified {
    color: #e74c3c;
    font-weight: bold;
}

header .auth-btn, header .logout-btn, header .auth-request-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

header .auth-btn {
    background-color: #2ecc71;
    color: #ffffff;
}

header .auth-btn:hover {
    background-color: #27ae60;
}

header .logout-btn {
    background-color: #e74c3c;
    color: #ffffff;
}

header .logout-btn:hover {
    background-color: #c0392b;
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
}

.tabs button {
    padding: 0.75rem 1rem;
    background-color: #31072c;
    color: #bac2cb;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1;
    margin: 0 0.5rem;
}

.tabs button:hover {
    background-color: #2980b9;
}

.tabs button.active {
    background-color: #4CAF50; /* رنگ پس‌زمینه تب فعال */
    color: white; /* رنگ متن تب فعال */
}

.tab-content {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.tab-content h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.tab-content form {
    display: flex;
    flex-direction: column;
}

.tab-content input {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #2c3e50;
    transition: border-color 0.3s ease;
}

.tab-content input:focus {
    border-color: #3498db;
    outline: none;
}

.tab-content button {
    padding: 0.75rem;
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tab-content button:hover {
    background-color: #2980b9;
}

.tab-content ul {
    list-style-type: none;
    padding: 0;
}

.tab-content ul li {
    background-color: #f9f9f9;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}

.tab-content ul li button {
    padding: 0.5rem;
    margin-left: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tab-content ul li button.green {
    background-color: #2ecc71;
    color: #ffffff;
}

.tab-content ul li button.green:hover {
    background-color: #27ae60;
}

.tab-content ul li button.red {
    background-color: #e74c3c;
    color: #ffffff;
}

.tab-content ul li button.red:hover {
    background-color: #c0392b;
}

.tab-content ul li button.blue {
    background-color: #3498db;
    color: #ffffff;
}

.tab-content ul li button.blue:hover {
    background-color: #2980b9;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Media Queries برای صفحه‌های کوچک (موبایل) */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.3rem; /* کاهش سایز فونت برای موبایل */
    }

    header p {
        font-size: 0.9rem; /* کاهش سایز فونت برای موبایل */
    }

    .tabs button {
        padding: 0.5rem; /* کاهش padding برای موبایل */
        font-size: 0.9rem; /* کاهش سایز فونت برای موبایل */
    }

    .tab-content {
        padding: 1rem; /* کاهش padding برای موبایل */
    }

    .tab-content h2 {
        font-size: 1.1rem; /* کاهش سایز فونت برای موبایل */
    }

    .tab-content input {
        padding: 0.5rem; /* کاهش padding برای موبایل */
        font-size: 0.9rem; /* کاهش سایز فونت برای موبایل */
    }

    .tab-content button {
        padding: 0.5rem; /* کاهش padding برای موبایل */
        font-size: 0.9rem; /* کاهش سایز فونت برای موبایل */
    }

    .tab-content ul li {
        padding: 0.75rem; /* کاهش padding برای موبایل */
        font-size: 0.8rem; /* کاهش سایز فونت برای موبایل */
    }
}

.container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

form {
    display: flex;
    flex-direction: column;
}

input {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #2c3e50;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: #3498db;
    outline: none;
}

button {
    padding: 0.75rem;
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #95b0cb;
}

.error-message {
    color: #e74c3c;
    background-color: #fdecea;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.success-message {
    color: #2ecc71;
    background-color: #e8f5e9;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Media Queries برای صفحه‌های کوچک (موبایل) */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem; /* کاهش padding برای موبایل */
    }

    h2 {
        font-size: 1.3rem; /* کاهش سایز فونت برای موبایل */
    }

    input {
        padding: 0.5rem; /* کاهش padding برای موبایل */
        font-size: 0.9rem; /* کاهش سایز فونت برای موبایل */
    }

    button {
        padding: 0.5rem; /* کاهش padding برای موبایل */
        font-size: 0.9rem; /* کاهش سایز فونت برای موبایل */
    }

    p {
        font-size: 0.8rem; /* کاهش سایز فونت برای موبایل */
    }
}

/* استایل modal */
.modal {
    display: none; /* به طور پیش‌فرض مخفی است */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* پس‌زمینه تیره */
    overflow: auto;
}

.modal-box {
    display: none; /* به طور پیش‌فرض مخفی است */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* پس‌زمینه تیره */
    overflow: hidden;
}

.body-no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.msgModal {
    position: fixed;
    display: none;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    justify-content: center;
    align-items: center;
    padding: 5%;
}


.modal-content {
    background-color: #fff;
    margin: 30% auto;
    padding: 20px;
    border: 2px solid #ff4444; /* حاشیه قرمز */
    border-radius: 10px;
    width: 60%;
    max-width: 500px;
    position: relative;
}

.modal-content-box {
    width: 100%; /* پر کردن کامل عرض merchant-box */
    padding: 15px;
}

.modal-msgContent {
    background-color: #fff;
    padding: 30px;
    border: 2px solid #ff4444;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    position: relative;
    /* جدید: محاسبه داینامیک حاشیه */
    max-height: 80vh;
    overflow-y: auto;
}

/* وقتی محتوا کم است (حاشیه بیشتر) */
@media (max-height: 400px) {
    .msgModal {
        padding: 20%;
    }
}

.close-msgBtn {
    position: absolute;
    right: 15px;
    top: 7px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #ff4444;
}

/* دکمه بستن */
.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: #ff4444;
}

.close-btn:hover {
    color: #cc0000;
}

/* نوار پیشرفت */
#progress-bar {
    height: 5px;
    background-color: #ff4444;
    width: 100%;
    margin-top: 10px;
    animation: progress 15s linear;
}

@keyframes progress {
    0% { width: 100%; }
    100% { width: 0%; }
}

/* استایل overlay */
.overlay {
    display: none; /* به طور پیش‌فرض مخفی است */
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* پس‌زمینه تیره */
}

.overlay-box {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* پس‌زمینه تیره */
}

.verification-status {
    list-style: none; /* حذف بولت‌های لیست */
    padding: 0;
    margin: 25px;
    display: flex; /* نمایش افقی */
    gap: 15px; /* فاصله بین آیکون‌ها */
    justify-content: center;
}

.verification-status li {
    position: relative;
    display: inline-block;
}

.verification-status i {
    font-size: 24px; /* اندازه آیکون‌ها */
    cursor: pointer; /* تغییر شکل موس به اشاره‌گر */
}

.verified {
    color: green; /* رنگ آیکون‌های احراز شده */
}

.not-verified {
    color: gray; /* رنگ آیکون‌های احراز نشده */
}

/* نمایش توضیحات هنگام هاور */
.verification-status li:hover::after {
    content: attr(title); /* نمایش متن title */
    position: absolute;
    top: 100%; /* نمایش زیر آیکون */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 10;
}

.user-id::before {
    content: "- ";
    color: #000; /* رنگ خط تیره */
}

/* استایل کلی جدول */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: center;
    overflow-x: auto; /* برای جلوگیری از بیرون زدن جدول در گوشی */
    display: table; /* برای اسکرول افقی در گوشی */
    table-layout: fixed;
}

table th, table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

table th {
    background-color: #4CAF50; /* سبز */
    color: white;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

/* استایل دکمه‌ها */
.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 2px;
}

.btn.green {
    background-color: #4CAF50; /* سبز */
    color: white;
}

.btn.red {
    background-color: #f44336; /* قرمز */
    color: white;
}

.btn.blue {
    background-color: #008CBA; /* آبی */
    color: white;
}

.btn:hover {
    opacity: 0.8;
}

/* استایل برای گوشی‌ها */
@media (max-width: 768px) {
    table {
        width: 100vw;
        max-width: 100%;
        display: block;
        overflow-x: auto;
        white-space: nowrap; /* جلوگیری از شکستن خطوط */
    }

    table th, table td {
        padding: 8px 10px; /* کاهش padding برای گوشی‌ها */
    }
}

.status-pending {
    color: orange;
}

.status-approved {
    color: green;
}

.status-rejected {
    color: red;
}

.phone-landline-container {
    display: flex;
    gap: 10px; /* فاصله بین فیلدها */
    width: 100%;
}

.city-code {
    width: 30%; /* عرض پیش‌شماره */
    text-align: center;
}

.landline-number {
    width: 70%; /* عرض شماره ثابت */
    text-align: center;
}

.status-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
}

.status-btn.verified {
    background-color: green;
}

.status-btn.not-verified {
    background-color: gray;
}

#merchant-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; /* عرض 80% از صفحه */
    height: 100%;
    max-width: 1000px; /* حداکثر عرض برای مانیتورهای بزرگ */
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
    max-height: 100vh; /* حداکثر ارتفاع */
    overflow-y: auto; /* اسکرول عمودی در صورت نیاز */
}

#profile-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; /* عرض 80% از صفحه */
    max-width: 1000px; /* حداکثر عرض برای مانیتورهای بزرگ */
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
    max-height: 100vh; /* حداکثر ارتفاع */
    overflow-y: auto; /* اسکرول عمودی در صورت نیاز */
    height: fit-content;
}

#add-user-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; /* عرض 80% از صفحه */
    max-width: 1000px; /* حداکثر عرض برای مانیتورهای بزرگ */
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
    max-height: 100vh; /* حداکثر ارتفاع */
    overflow-y: auto; /* اسکرول عمودی در صورت نیاز */
    height: fit-content;
}


#user-image-container {
    text-align: center;
    margin-bottom: 20px;
}

#user-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    cursor: pointer;
}

.input-field {
    margin-bottom: 15px;
}

.input-field label {
    display: block;
    margin-bottom: 5px;
}

.input-field input {
    width: calc(100% - 100px);
    padding: 5px;
    margin-right: 10px;
}

.input-field button {
    padding: 5px 10px;
    cursor: pointer;
}

.close-btn {
    float: right;
    cursor: pointer;
    font-size: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.page-link {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}

.page-link.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.page-link.disabled {
    pointer-events: none;
    opacity: 0.5;
}

    footer {
        text-align: center;
        padding: 20px;
        background-color: #f8f9fa;
        margin-top: 20px;
        border-top: 1px solid #ddd;
    }
    footer p {
        margin: 5px 0;
        font-size: 14px;
        color: #333;
    }
    footer a {
        color: #007bff;
        text-decoration: none;
    }
    footer a:hover {
        text-decoration: underline;
    }

/* اضافه کردن به فایل styles.css */
.gateway-management-group {
    margin-top: 20px;
    background-color: #f8fff8;
}

#merchants-list img {
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: transform 0.3s;
}

#merchants-list img:hover {
    transform: scale(1.1);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.user-info-group, .access-group, .gateway-management-group {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#merchant-box .btn {
    padding: 8px 15px;
    font-size: 14px;
    margin: 5px;
}

@media (max-width: 768px) {
    #merchant-box {
        width: 95%; /* در موبایل عرض بیشتری بگیرد */
        padding: 10px;
    }
    
    .input-field {
        margin-bottom: 10px;
    }
    
    .input-field input {
        width: 100%; /* در موبایل فیلدها عرض کامل بگیرند */
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .input-field button {
        width: 100%;
    }
    
    .d-flex.flex-md-row-reverse {
        flex-direction: column !important; /* در موبایل ستون‌ها عمودی شوند */
    }
}

@media (max-width: 768px) {
    select {
        font-size: 16px; /* جلوگیری از زوم در iOS */
    }
    
    select:focus {
        max-height: 200px; /* ارتفاع بیشتر برای موبایل */
    }
}

.form-group {
    margin-bottom: 1rem;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'BTRAFFIC', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: #3498db;
    outline: none;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 1rem;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #2c3e50;
}

.login-link a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.login-link a:hover {
    color: #2980b9;
}

@media (max-width: 768px) {
    .register-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 1rem;
    }
    
    .form-row .form-group:last-child {
        margin-bottom: 0;
    }
}

.profile-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.profile-btn:hover {
    background-color: #45a049;
}

.status-ended {
    color: #666;
    background-color: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.management-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.management-actions input[type="text"] {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#add-user-form .input-field {
    margin-bottom: 15px;
}

#add-user-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.loading-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    color: red;
    font-size: 0.8em;
    display: block;
    margin-top: 5px;
}

.user-details-modal {
    background: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 600px;
    margin: 50px auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.user-details-modal h3, .user-details-modal h4 {
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.user-details-modal p {
    margin: 10px 0;
}