@font-face {
    font-family: 'IransansFont';
    src: url('../fonts/IRANSansXFaNum-Regular.woff2') format('woff2');
    font-weight: 400; /* یا normal */
    font-style: normal;
}

@font-face {
    font-family: 'IransansFont';
    src: url('../fonts/IRANSansXFaNum-Bold.woff2') format('woff2');
    font-weight: 700; /* یا bold */
    font-style: normal;
}
body {
    font-family: 'IransansFont', sans-serif; !important;
}

button, input, optgroup, select, textarea {
    font-family: inherit; /* فونت را از والد به ارث ببر */
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

.px-6 .py-4{
    font-family: inherit;
}


/* برای مخفی کردن المان‌های Alpine.js تا زمان بارگذاری کامل */
[x-cloak] {
    display: none !important;
}

/* استایل لینک‌های سایدبار */
.sidebar-link:hover, .sidebar-link.active {
    background-color: #4a5568; /* gray-700 */
    color: #ffffff;
}

/* استایل زیرمنوهای سایدبار */
.sidebar-submenu-link:hover {
    background-color: #2d3748; /* gray-800 */
}
.custom-scrollbar::-webkit-scrollbar { width: 8px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #1e3a8a; }
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #3b82f6;
    border-radius: 10px;
    border: 2px solid #1e3a8a;
}
[x-cloak] { display: none !important; }


     /* استایل‌های اصلی */
 .admin-requests-container {
     font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     direction: rtl;
     color: #333;
     background-color: #f8f9fa;
     min-height: 100vh;
 }

/* استایل هدر */
.page-header {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.breadcrumb-container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
}

.breadcrumb {
    margin-bottom: 0;
    padding-right: 0;
}

.breadcrumb-item {
    display: inline-block;
    margin-left: 0.5rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: rgba(255, 255, 255, 0.5);
    margin-right: 0.5rem;
}

/* استایل محتوای اصلی */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* استایل کارت */
.request-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: 1.25rem 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4e73df;
    margin-bottom: 0;
}

.card-body {
    padding: 1.5rem;
}

/* استایل جستجو */
.search-box {
    margin-bottom: 1.5rem;
}

.search-input {
    border-radius: 0.35rem;
    border: 1px solid #d1d3e2;
    padding: 0.375rem 0.75rem;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.input-group-text {
    background-color: #f8f9fc;
    border: 1px solid #d1d3e2;
    border-right: none;
}

/* استایل جدول */
.requests-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.requests-table thead th {
    background-color: #4e73df;
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.requests-table tbody tr {
    transition: all 0.2s;
}

.requests-table tbody tr:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

.requests-table td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid #e3e6f0;
}

.tracking-code {
    color: #4e73df;
    font-weight: 600;
}

/* استایل دکمه‌ها */
.btn-view {
    border-radius: 5px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.btn-view:hover {
    background-color: #4e73df;
    color: white;
}

/* استایل وضعیت خالی */
.no-requests {
    padding: 3rem;
}

.empty-state {
    text-align: center;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d1d3e2;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* استایل مودال */
.request-modal .modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-title {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #4e73df;
}

.modal-title i {
    margin-left: 0.5rem;
}

/* استایل جزئیات درخواست */
.request-details {
    padding: 1rem;
}

.detail-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fc;
    border-radius: 8px;
    border: 1px solid #e3e6f0;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4e73df;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e3e6f0;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.detail-value {
    color: #333;
    word-break: break-word;
}

.website-link {
    color: #4e73df;
    text-decoration: none;
    transition: color 0.3s;
}

.website-link:hover {
    color: #224abe;
    text-decoration: underline;
}

.status-active {
    color: #1cc88a;
}

.status-pending {
    color: #f6c23e;
}

/* استایل فوتر مودال */
.modal-footer-actions {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #e3e6f0;
}

.btn-approve {
    background-color: #1cc88a;
    border-color: #1cc88a;
}

.btn-approve:hover {
    background-color: #17a673;
    border-color: #169b6b;
}

.btn-create-user {
    background-color: #36b9cc;
    border-color: #36b9cc;
}

.btn-create-user:hover {
    background-color: #2c9faf;
    border-color: #2a96a5;
}

.btn-reject {
    background-color: #e74a3b;
    border-color: #e74a3b;
}

.btn-reject:hover {
    background-color: #d52a1a;
    border-color: #ca2616;
}

.btn-close {
    background-color: #858796;
    border-color: #858796;
}

.btn-close:hover {
    background-color: #6c6d7d;
    border-color: #666776;
}

/* استایل مودال ایجاد کاربر */
.user-creation-modal .modal-content {
    border-radius: 10px;
}

.user-form {
    padding: 1rem;
}

.form-label {
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border-radius: 5px;
    border: 1px solid #d1d3e2;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
}

.error-message {
    color: #e74a3b;
    font-size: 0.8rem;
}

.mt-bench {
    margin-top: 39rem;
}

/* رسپانسیو */
@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .requests-table thead {
        display: none;
    }

    .requests-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e3e6f0;
        border-radius: 5px;
    }

    .requests-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
        border-top: none;
    }

    .requests-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #5a5c69;
        margin-left: 1rem;
    }

    .requests-table td.actions {
        justify-content: center;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .modal-footer-actions {
        flex-wrap: wrap;
    }

    .modal-footer-actions button {
        flex: 1 0 auto;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.1rem;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }

    .card-body {
        padding: 1rem;
    }

    .modal-footer-actions button {
        flex: 1 0 100%;
    }
}

