/* ========================================
   Pardis CRM - Frontend Styles v1.6.1
   RTL-first, Vazirmatn font, beautiful cards
   ======================================== */

.pardis-crm-wrapper {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
    text-align: right;
    color: #334155;
    line-height: 1.7;
}

/* Info Section */
.pardis-info-section {
    margin-bottom: 32px;
}

.pardis-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pardis-info-badge {
    font-size: 28px;
    line-height: 1;
}

.pardis-info-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.pardis-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.pardis-info-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pardis-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.pardis-info-icon {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1;
}

.pardis-info-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
}

.pardis-info-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 2;
}

.pardis-info-content ul li::before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    margin-left: 8px;
}

.pardis-info-content p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.pardis-capacity-number {
    font-size: 40px;
    font-weight: 800;
    color: #2563eb;
    margin: 4px 0;
    line-height: 1.2;
}

.pardis-time-slots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.pardis-time-slot {
    background: #eff6ff;
    color: #2563eb;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* Type Selector */
.pardis-type-selector {
    margin-bottom: 32px;
}

.pardis-type-selector h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    margin-bottom: 20px;
}

.pardis-type-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pardis-type-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pardis-type-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.pardis-type-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59,130,246,0.12);
    transform: translateY(-3px);
}

.pardis-type-card:hover::before {
    background: #3b82f6;
}

.pardis-type-card.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 8px 24px rgba(37,99,235,0.15);
}

.pardis-type-card.active::before {
    background: #2563eb;
}

.pardis-type-icon {
    font-size: 44px;
    margin-bottom: 14px;
    line-height: 1;
    display: block;
}

.pardis-type-card h4 {
    font-size: 17px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px;
}

.pardis-type-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.pardis-type-card .pardis-select-hint {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    color: #3b82f6;
    font-weight: 600;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.25s ease;
}

.pardis-type-card:hover .pardis-select-hint,
.pardis-type-card.active .pardis-select-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Forms */
.pardis-forms-container {
    position: relative;
}

.pardis-form-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    animation: pardisFadeIn 0.35s ease;
}

@keyframes pardisFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pardis-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.pardis-form-icon {
    font-size: 40px;
    margin-bottom: 8px;
    line-height: 1;
    display: block;
}

.pardis-form-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px;
}

.pardis-form-header p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.pardis-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.pardis-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pardis-form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.pardis-required {
    color: #dc2626;
    margin-right: 2px;
}

.pardis-input,
.pardis-select,
.pardis-textarea {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    padding: 12px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    color: #1f2937;
    direction: rtl;
}

.pardis-input:focus,
.pardis-select:focus,
.pardis-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.pardis-input::placeholder,
.pardis-textarea::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

.pardis-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 36px;
}

.pardis-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

/* File Upload */
.pardis-file-upload {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #f9fafb;
}

.pardis-file-upload:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.pardis-file-upload.dragover {
    border-color: #2563eb;
    background: #dbeafe;
    border-style: solid;
}

.pardis-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.pardis-file-label {
    pointer-events: none;
}

.pardis-file-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

.pardis-file-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.pardis-file-name {
    font-size: 13px;
    color: #2563eb;
    margin-top: 10px;
    font-weight: 700;
    display: none;
}

.pardis-file-name.visible {
    display: block;
}

/* Excel Section */
.pardis-excel-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.pardis-excel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pardis-excel-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.pardis-excel-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 14px;
}

.pardis-upload-group {
    margin-top: 16px;
}

/* Buttons */
.pardis-btn {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.5;
}

.pardis-btn-primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.pardis-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}

.pardis-btn-primary:active {
    transform: translateY(0);
}

.pardis-btn-primary:disabled {
    background: #93c5fd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pardis-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.pardis-btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.pardis-btn-outline {
    background: transparent;
    color: #2563eb;
    border: 1.5px solid #2563eb;
}

.pardis-btn-outline:hover {
    background: #eff6ff;
}

.pardis-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
    align-items: center;
}

/* Divider */
.pardis-form-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 700;
}

.pardis-form-divider::before,
.pardis-form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.pardis-form-divider span {
    padding: 0 14px;
    white-space: nowrap;
}

/* Notice */
.pardis-form-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fefce8;
    border: 1px solid #fde047;
    border-radius: 10px;
    padding: 14px;
    margin-top: 16px;
}

.pardis-form-notice p {
    font-size: 13px;
    color: #713f12;
    margin: 0;
    line-height: 1.7;
}

.pardis-notice-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1.4;
}

/* Capacity Status */
.pardis-capacity-status {
    font-size: 12px;
    margin-top: 6px;
    min-height: 20px;
    font-weight: 600;
}

.pardis-capacity-status .available {
    color: #16a34a;
}

.pardis-capacity-status .full {
    color: #dc2626;
    font-weight: 700;
}

/* Response */
.pardis-response {
    margin-top: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    display: none;
    animation: pardisFadeIn 0.3s ease;
}

.pardis-response.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.pardis-response.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Honeypot field (Contact Us form) - hidden from real users, left visible
   to naive bots that don't execute CSS. Off-screen instead of display:none
   so more bot scrapers still "see" and fill it. */
.pardis-hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pardis-recaptcha-notice {
    margin-top: 12px;
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
}

.pardis-recaptcha-notice a {
    color: #6b7280;
    text-decoration: underline;
}

/* Login Required */
.pardis-login-required {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pardis-login-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
    display: block;
}

.pardis-login-required h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px;
}

.pardis-login-required p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px;
}

/* My Visits */
.pardis-my-visits h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
}

.pardis-visits-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.pardis-visits-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}

.pardis-visits-table th,
.pardis-visits-table td {
    padding: 14px 16px;
    text-align: right;
    border-bottom: 1px solid #f1f5f9;
}

.pardis-visits-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #475569;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

.pardis-visits-table tr:last-child td {
    border-bottom: none;
}

.pardis-visits-table tr:hover td {
    background: #f8fafc;
}

.pardis-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-completed { background: #e0e7ff; color: #3730a3; }

.pardis-empty {
    text-align: center;
    color: #9ca3af;
    padding: 40px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 640px) {
    .pardis-crm-wrapper {
        padding: 12px;
    }
    .pardis-type-cards {
        grid-template-columns: 1fr;
    }
    .pardis-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .pardis-info-cards {
        grid-template-columns: 1fr;
    }
    .pardis-form-wrapper {
        padding: 20px 16px;
    }
    .pardis-form-actions {
        flex-direction: column;
    }
    .pardis-btn {
        width: 100%;
    }
}




/* Ensure datepicker popup is above everything */


/* RTL support for datepicker */


/* Date input with calendar icon */


/* If datepicker fails to load, at least show date input nicely */
input[type="date"]


/* ========================================
   Date Dropdown Selects (Year/Month/Day)
   ======================================== */

.pardis-date-selects {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pardis-date-selects .pardis-select {
    flex: 1;
    min-width: 0;
}

.pardis-date-selects .pardis-select:first-child {
    flex: 1.2;
}

/* RTL adjustment for date selects */
.pardis-date-row .pardis-form-group {
    min-width: 0;
}

/* Calendar icon removed - using clean selects */
.pardis-datepicker {
    background-image: none;
    padding-left: 14px;
}

/* Feedback Form */
.pardis-feedback-wrapper { max-width: 600px; margin: 0 auto; }
.pardis-feedback-type-selector { display: flex; gap: 12px; margin-bottom: 20px; }
.pardis-feedback-type-option { flex: 1; padding: 16px; border: 2px solid #e2e8f0; border-radius: 12px; text-align: center; cursor: pointer; transition: all 0.2s; }
.pardis-feedback-type-option:hover { border-color: #3b82f6; }
.pardis-feedback-type-option.active { border-color: #2563eb; background: #eff6ff; }
.pardis-feedback-type-option input { display: none; }


/* ========================================
   Pardis CRM - Feedback Form Styles (v1.4.2)
   RTL-optimized, modern card design
   ======================================== */

.pardis-feedback-wrapper {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    direction: rtl;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

.pardis-feedback-wrapper .pardis-form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.pardis-feedback-wrapper .pardis-form-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0.5rem 0 0.25rem;
}

.pardis-feedback-wrapper .pardis-form-header p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* Feedback Type Selector */
.pardis-feedback-type-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.pardis-feedback-type-option {
    flex: 1;
    padding: 18px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fafafa;
    position: relative;
}

.pardis-feedback-type-option:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.pardis-feedback-type-option.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.pardis-feedback-type-option input {
    display: none;
}

.pardis-feedback-type-option .fb-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.pardis-feedback-type-option strong {
    font-size: 0.95rem;
    color: #374151;
    display: block;
}

.pardis-feedback-type-option.active strong {
    color: #2563eb;
}

/* Character Counter */
.pardis-char-count {
    display: block;
    text-align: left;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* Feedback Response */
#pardis-feedback-response {
    margin-top: 1rem;
}

/* RTL Input for LTR values */
.pardis-input-ltr {
    direction: ltr;
    text-align: left;
}

/* Responsive Feedback */
@media (max-width: 640px) {
    .pardis-feedback-wrapper {
        margin: 1rem;
        padding: 1.25rem;
    }
    .pardis-feedback-wrapper .pardis-form-header h3 {
        font-size: 1.3rem;
    }
    .pardis-feedback-type-selector {
        flex-direction: column;
        gap: 8px;
    }
}


/* ========================================
   Pardis CRM - Front Dashboard (v1.6.1)
   ======================================== */

.pardis-front-dashboard {
    direction: rtl;
    text-align: right;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #334155;
}

.pardis-dashboard-header {
    margin-bottom: 24px;
}

.pardis-dashboard-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.pardis-dashboard-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pardis-tab-btn {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.pardis-tab-btn:hover {
    color: #2563eb;
}

.pardis-tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.pardis-dashboard-content {
    min-height: 300px;
}

/* Front Stats Grid */
.pardis-front-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.pardis-front-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pardis-front-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.pardis-front-stat-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.pardis-front-stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.pardis-front-stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Front Table */
.pardis-front-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.pardis-front-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pardis-front-table th,
.pardis-front-table td {
    padding: 14px 16px;
    text-align: right;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.pardis-front-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #475569;
    font-size: 12px;
    white-space: nowrap;
}

.pardis-front-table tr:last-child td {
    border-bottom: none;
}

.pardis-front-table tr:hover td {
    background: #f8fafc;
}

/* Front Filter */
.pardis-front-filter {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 12px;
    border-radius: 10px;
}

.pardis-front-filter input,
.pardis-front-filter select {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    padding: 8px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
}

.pardis-front-filter button {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.pardis-front-filter button.pardis-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Front Pagination */
.pardis-front-pagination {
    display: flex;
    gap: 6px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pardis-front-pagination button {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    color: #475569;
}

.pardis-front-pagination button.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.pardis-front-pagination button:hover:not(.active) {
    background: #f1f5f9;
}

/* Front Modal */
.pardis-front-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.pardis-front-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    max-width: 720px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.pardis-front-modal-close {
    position: absolute;
    top: 12px;
    left: 16px;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.pardis-front-modal-close:hover {
    color: #334155;
    background: #f1f5f9;
}

/* Front Reports Grid */
.pardis-front-dashboard .pardis-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.pardis-front-dashboard .pardis-report-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.pardis-front-dashboard .pardis-report-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a2e;
}

.pardis-front-dashboard .pardis-report-wide {
    grid-column: 1 / -1;
}

.pardis-front-dashboard .pardis-chart-container {
    text-align: center;
    padding: 10px;
}

.pardis-front-dashboard .pardis-chart-svg {
    max-width: 100%;
    height: auto;
    max-height: 220px;
}

.pardis-front-dashboard .pardis-donut {
    max-width: 200px;
    margin: 0 auto;
}

.pardis-front-dashboard .pardis-chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    font-size: 12px;
    color: #475569;
}

.pardis-front-dashboard .pardis-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 4px;
}

.pardis-front-dashboard .pardis-province-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pardis-front-dashboard .pardis-province-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pardis-front-dashboard .pardis-province-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #475569;
}

.pardis-front-dashboard .pardis-province-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.pardis-front-dashboard .pardis-province-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Front Detail View */
.pardis-front-detail h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.pardis-front-detail h3 {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    margin: 20px 0 10px;
}

.pardis-front-detail p {
    margin: 6px 0;
    font-size: 13px;
    color: #475569;
}

.pardis-front-detail p strong {
    color: #1e293b;
}

.pardis-front-detail hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0;
}

/* Front Form inside modal */
.pardis-front-detail select,
.pardis-front-detail input[type="text"],
.pardis-front-detail textarea {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    padding: 10px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
}

.pardis-front-detail label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.pardis-front-detail .pardis-btn {
    margin-top: 8px;
}

/* Dashboard Link Shortcode */
.pardis-dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
}

.pardis-dashboard-link:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 782px) {
    .pardis-front-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .pardis-front-dashboard .pardis-reports-grid {
        grid-template-columns: 1fr;
    }
    .pardis-front-dashboard .pardis-report-wide {
        grid-column: auto;
    }
    .pardis-front-dashboard .pardis-chart-svg {
        max-height: 180px;
    }
    .pardis-front-filter {
        flex-direction: column;
        align-items: stretch;
    }
    .pardis-front-filter input,
    .pardis-front-filter select,
    .pardis-front-filter button {
        width: 100%;
    }
}
