/* استایل‌های سیستم تیکت */
.ticket-section {
    padding: 40px 0;
}

.ticket-header {
    text-align: center;
    margin-bottom: 40px;
}

.ticket-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.ticket-header p {
    font-size: 1.1rem;
    color: #666;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.ticket-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* فرم تیکت */
.form-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.form-card h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.5rem;
    border-bottom: 2px solid #D32F2F;
    padding-bottom: 10px;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #D32F2F;
    outline: none;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* آپلود فایل */
.file-upload {
    margin-top: 8px;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.file-upload-label:hover {
    border-color: #D32F2F;
    background: #fff5f5;
}

.file-list {
    margin-top: 10px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 5px;
    font-size: 14px;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

/* دکمه ثبت */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #B71C1C 0%, #8B0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

.submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* راهنمای تیکت */
.guide-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.guide-card h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #D32F2F;
    padding-bottom: 10px;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.guide-items {
    space-y: 15px;
}

.guide-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.guide-item:hover {
    background: #ffeaea;
    transform: translateX(-5px);
}

.guide-icon {
    font-size: 24px;
    margin-left: 15px;
    flex-shrink: 0;
}

.guide-content h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1rem;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.guide-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

/* راهنمای اولویت */
.priority-guide {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.priority-guide h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.priority-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.priority-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
    min-width: 60px;
    text-align: center;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.priority-badge.low {
    background: #d1fae5;
    color: #065f46;
}

.priority-badge.medium {
    background: #fef3c7;
    color: #d97706;
}

.priority-badge.high {
    background: #fed7aa;
    color: #ea580c;
}

.priority-badge.urgent {
    background: #fecaca;
    color: #dc2626;
}

/* پیام‌ها */
.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message.error {
    background: #fecaca;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .ticket-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .ticket-header h1 {
        font-size: 2rem;
    }
}

/* استایل‌های وضعیت تیکت در پنل مدیریت */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.ticket-open { background-color: #ffebee; color: #D32F2F; }
.ticket-in_progress { background-color: #fff3e0; color: #EF6C00; }
.ticket-waiting_customer { background-color: #f3e5f5; color: #7B1FA2; }
.ticket-resolved { background-color: #e8f5e8; color: #2E7D32; }
.ticket-closed { background-color: #f5f5f5; color: #424242; }

.priority-badge-small {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.priority-low { background-color: #e8f5e8; color: #2E7D32; }
.priority-medium { background-color: #fff3e0; color: #EF6C00; }
.priority-high { background-color: #ffebee; color: #D32F2F; }
.priority-urgent { background-color: #fce4ec; color: #C2185B; }

/* استایل‌های پنل مدیریت */
.admin-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.admin-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: right;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #D32F2F;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.admin-table tr:hover {
    background: #fff5f5;
}