/* ═══════════════════════════════════════════════════════════
   استایل‌های فرم خروجی اکسل - نسخه 4.0
   ═══════════════════════════════════════════════════════════ */

.gf-export-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    font-family: 'IRANSans', 'Vazir', Tahoma, sans-serif;
    direction: rtl;
}

.gf-export-header {
    text-align: center;
    margin-bottom: 25px;
}

.gf-export-header h3 {
    color: #fff;
    font-size: 24px;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.gf-export-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin: 0;
}

.gf-export-form {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ═══════════════════════════════════════════════════════════
   بخش انتخاب برند
   ═══════════════════════════════════════════════════════════ */

.gf-export-brand-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #e0e0e0;
}

.gf-export-brand-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 15px;
}

.gf-brand-select {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 40px;
}

.gf-brand-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    outline: none;
}

.gf-brand-select:hover {
    border-color: #667eea;
}

/* ═══════════════════════════════════════════════════════════
   بخش تاریخ
   ═══════════════════════════════════════════════════════════ */

.gf-export-date-section {
    margin-bottom: 20px;
}

.gf-export-row {
    display: flex;
    gap: 20px;
}

.gf-export-field {
    flex: 1;
}

.gf-export-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.gf-export-field .field-icon {
    margin-left: 5px;
}

.gf-export-field input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    text-align: center;
    direction: ltr;
}

.gf-export-field input[type="text"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    outline: none;
}

.gf-export-field input[type="text"]::placeholder {
    color: #aaa;
}

/* ═══════════════════════════════════════════════════════════
   اطلاعات و راهنما
   ═══════════════════════════════════════════════════════════ */

.gf-export-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    line-height: 1.8;
}

.gf-export-info small {
    color: #666;
    font-size: 13px;
}

.gf-export-info code {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    margin: 0 3px;
    color: #667eea;
}

/* ═══════════════════════════════════════════════════════════
   دکمه دانلود
   ═══════════════════════════════════════════════════════════ */

.gf-export-button {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gf-export-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.gf-export-button:active {
    transform: translateY(-1px);
}

.gf-export-button .btn-icon {
    font-size: 22px;
}

/* ═══════════════════════════════════════════════════════════
   پیام‌ها
   ═══════════════════════════════════════════════════════════ */

.gf-export-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
}

.gf-export-message.error {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #ef9a9a;
}

.gf-export-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #a5d6a7;
}

.gf-export-error {
    background: #fff3cd;
    color: #856404;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #ffc107;
}

/* ═══════════════════════════════════════════════════════════
   دیباگ
   ═══════════════════════════════════════════════════════════ */

.gf-debug-box {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    direction: rtl;
    text-align: right;
}

.gf-debug-box h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.gf-debug-box p {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
}

.gf-debug-box p strong {
    color: #333;
}

.gf-debug-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 13px;
}

.gf-debug-table th,
.gf-debug-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.gf-debug-table th {
    background: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.gf-debug-table code {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    direction: ltr;
    display: inline-block;
}

/* ═══════════════════════════════════════════════════════════
   ریسپانسیو
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
    .gf-export-container {
        margin: 10px;
        padding: 20px;
    }
    
    .gf-export-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .gf-export-header h3 {
        font-size: 20px;
    }
    
    .gf-export-button {
        font-size: 16px;
        padding: 14px 20px;
    }
}