/* استایل‌های مخصوص پنل ادمین وردپرس */

.staff-admin-page {
    background: #f1f1f1;
    margin: 20px 0 0 -20px;
    padding: 20px;
    min-height: calc(100vh - 32px);
}

.staff-admin-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.staff-admin-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.staff-admin-header p {
    margin: 0;
    opacity: 0.9;
}

/* تنظیمات خاص برای پنل ادمین */
.staff-admin-page .staff-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.staff-admin-page .staff-btn {
    font-family: inherit;
}

.staff-admin-page .staff-table table {
    border-collapse: collapse;
    width: 100%;
}

.staff-admin-page .staff-table th,
.staff-admin-page .staff-table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: right;
}

.staff-admin-page .staff-table th {
    background: #1e3a8a;
    color: white;
    font-weight: 600;
}

.staff-admin-page .staff-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.staff-admin-page .staff-table tr:hover {
    background-color: #f0f8ff;
}

/* مودال‌ها در ادمین */
.staff-admin-page .staff-modal {
    z-index: 160000; /* بالاتر از منوی ادمین وردپرس */
}

/* نوتیفیکیشن‌ها */
.staff-admin-notification {
    position: fixed;
    top: 32px; /* بالای ادمین بار */
    right: 20px;
    z-index: 999999;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.staff-admin-notification.show {
    transform: translateX(0);
}

.staff-admin-notification.success {
    background: #46b450;
}

.staff-admin-notification.error {
    background: #dc3232;
}

.staff-admin-notification.warning {
    background: #ffb900;
}

/* آیکون‌های منو */
.toplevel_page_staff-management .wp-menu-image:before {
    content: '\f307'; /* آیکون groups */
}

/* صفحه‌های فرعی */
.staff-submenu-page {
    padding: 20px 20px 20px 0;
}

/* جدول‌های ادمین */
.staff-admin-page .wp-list-table {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* فرم‌های ادمین */
.staff-admin-form {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 20px;
}

.staff-admin-form table {
    width: 100%;
}

.staff-admin-form th {
    width: 200px;
    text-align: right;
    padding: 15px 10px 15px 0;
    vertical-align: top;
}

.staff-admin-form td {
    padding: 15px 0;
}

.staff-admin-form input[type="text"],
.staff-admin-form input[type="email"],
.staff-admin-form input[type="number"],
.staff-admin-form input[type="date"],
.staff-admin-form select,
.staff-admin-form textarea {
    width: 100%;
    max-width: 400px;
}

/* دکمه‌های ادمین */
.staff-admin-page .button-primary {
    background: #1e3a8a !important;
    border-color: #1e40af !important;
    text-shadow: none !important;
    box-shadow: 0 1px 0 #1e40af !important;
}

.staff-admin-page .button-primary:hover {
    background: #1e40af !important;
    border-color: #1d4ed8 !important;
}

/* تب‌های ادمین */
.staff-admin-tabs {
    margin-bottom: 20px;
}

.staff-admin-tabs .nav-tab {
    border: 1px solid #ddd;
    background: #f7f7f7;
    color: #555;
}

.staff-admin-tabs .nav-tab-active {
    background: #1e3a8a;
    color: white;
    border-color: #1e40af;
}

/* آمار در داشبورد ادمین */
.staff-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.staff-admin-stat-box {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border-top: 4px solid #1e3a8a;
}

.staff-admin-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 5px;
}

.staff-admin-stat-label {
    color: #666;
    font-weight: 600;
}

/* ریسپانسیو برای ادمین */
@media screen and (max-width: 782px) {
    .staff-admin-page {
        margin-left: 0;
        padding: 10px;
    }
    
    .staff-admin-header {
        padding: 1rem;
        text-align: center;
    }
    
    .staff-admin-header h1 {
        font-size: 1.5rem;
    }
    
    .staff-admin-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .staff-admin-notification {
        top: 46px; /* مقدار بیشتر برای موبایل */
        right: 10px;
        max-width: calc(100vw - 20px);
    }
}

/* لودینگ */
.staff-admin-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.staff-admin-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1e3a8a;
    border-radius: 50%;
    animation: staff-admin-spin 1s linear infinite;
}

@keyframes staff-admin-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ویژه موبایل */
@media screen and (max-width: 600px) {
    .staff-admin-page .staff-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .staff-admin-page .staff-table {
        overflow-x: auto;
    }
    
    .staff-admin-page .staff-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}