/* ===================================================
   ZD PORTAL - UI & DASHBOARD STYLES (RTL & Clean)
   =================================================== */

.zd-portal-container,
.zd-portal-dashboard-wrapper {
    max-width: 960px;
    margin: 30px auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    font-family: inherit;
    direction: rtl;
    box-sizing: border-box;
    color: #2c3e50;
}

.zd-portal-container *,
.zd-portal-dashboard-wrapper * {
    box-sizing: border-box;
}

/* --- سربرگ و خوش‌آمدگویی --- */
.zd-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 18px;
    margin-bottom: 25px;
}

.zd-user-welcome h3 {
    margin: 0 0 6px 0;
    font-size: 1.35rem;
    color: #1a202c;
    font-weight: 700;
}

.zd-user-mobile {
    display: inline-block;
    font-size: 0.88rem;
    color: #718096;
    background: #f7fafc;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

/* --- بخش‌ها (Sections) --- */
.zd-dashboard-section {
    margin-bottom: 35px;
}

.zd-dashboard-section h4 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    color: #2d3748;
    position: relative;
    padding-right: 12px;
}

.zd-dashboard-section h4::before {
    content: '';
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: #3182ce;
    border-radius: 2px;
}

/* --- فرم‌ها --- */
.zd-form-section-title {
    font-size: 1.05rem;
    color: #2b6cb0;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 8px;
    margin: 22px 0 14px 0;
}

.zd-form-row {
    margin-bottom: 16px;
}

.zd-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #4a5568;
}

.zd-form-row input[type="text"],
.zd-form-row input[type="tel"],
.zd-form-row input[type="password"],
.zd-form-row select,
.zd-form-row textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    background: #fafafa;
    transition: all 0.2s ease;
}

.zd-form-row input:focus,
.zd-form-row select:focus,
.zd-form-row textarea:focus {
    outline: none;
    border-color: #3182ce;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.zd-form-row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* --- دکمه‌ها --- */
.zd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.zd-btn-primary {
    background: #3182ce;
    color: #fff;
}
.zd-btn-primary:hover {
    background: #2b6cb0;
}

.zd-btn-success {
    background: #38a169;
    color: #fff;
}
.zd-btn-success:hover {
    background: #2f855a;
}

.zd-btn-outline-danger {
    background: transparent;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}
.zd-btn-outline-danger:hover {
    background: #fff5f5;
    border-color: #e53e3e;
}

.zd-btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

/* --- جدول درخواست‌های در انتظار --- */
.zd-table-responsive {
    overflow-x: auto;
}

.zd-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
}

.zd-dashboard-table th {
    background: #f7fafc;
    color: #4a5568;
    padding: 12px;
    border-bottom: 2px solid #e2e8f0;
    text-align: right;
    font-weight: 600;
}

.zd-dashboard-table td {
    padding: 12px;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
}

/* --- نشان‌ها (Badges) --- */
.zd-badge {
    display: inline-block;
    padding: 3px 9px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
}

.zd-badge-warning {
    background: #fefcbf;
    color: #975a16;
}
.zd-badge-danger {
    background: #fed7d7;
    color: #9b2c2c;
}
.zd-badge-gold {
    background: #fffae0;
    color: #b7791f;
    border: 1px solid #f6e05e;
}
.zd-badge-blue {
    background: #ebf8ff;
    color: #2b6cb0;
}
.zd-badge-green {
    background: #f0fff4;
    color: #276749;
}

.zd-block-note {
    display: block;
    margin-top: 4px;
    color: #e53e3e;
    font-size: 0.78rem;
}

/* --- کارت‌های کسب‌وکارهای تایید شده --- */
.zd-biz-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.zd-biz-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    background: #ffffff;
    transition: box-shadow 0.2s ease;
}

.zd-biz-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.zd-biz-card h5 {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
    color: #1a202c;
}

.zd-biz-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    min-height: 24px;
}

.zd-biz-card-footer {
    display: flex;
    gap: 8px;
    border-top: 1px solid #f7fafc;
    padding-top: 12px;
}

/* --- وضعیت‌های خالی (Empty State) و پیام‌ها --- */
.zd-empty-state {
    padding: 30px;
    text-align: center;
    background: #f7fafc;
    border: 1px dashed #cbd5e0;
    border-radius: 10px;
    color: #718096;
}

.zd-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}
.zd-alert-success { background: #f0fff4; color: #22543d; border: 1px solid #c6f6d5; }
.zd-alert-error   { background: #fff5f5; color: #742a2a; border: 1px solid #fed7d7; }
.zd-alert-warning { background: #fffff0; color: #744210; border: 1px solid #fefcbf; }

/* ریسپانسیو */
@media (max-width: 600px) {
    .zd-form-row-group {
        grid-template-columns: 1fr;
    }
    .zd-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}


