/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    direction: rtl;
    text-align: right;
}

/* Header Section */
.header-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.main-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.main-title i {
    margin-left: 1rem;
    color: #ffd700;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 300;
}

.header-stats {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-item i {
    margin-left: 0.5rem;
    color: #ffd700;
}

/* Form Section */
.form-section {
    padding: 0 1rem 3rem;
}

.form-container {
    background: white;
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    max-width: 1200px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.form-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header h2 i {
    margin-left: 1rem;
    color: #667eea;
}

.form-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Photo Upload Section */
.photo-upload-section {
    text-align: center;
    margin-bottom: 2rem;
}

.photo-preview {
    width: 200px;
    height: 250px;
    border: 3px dashed #667eea;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.photo-preview:hover {
    border-color: #764ba2;
    background: #e9ecef;
    transform: translateY(-2px);
}

.photo-preview i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.photo-preview span {
    color: #6c757d;
    font-weight: 600;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.photo-input {
    display: none;
}

.photo-upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.photo-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.photo-upload-btn i {
    margin-left: 0.5rem;
}

/* Form Fields */
.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.form-label i {
    margin-left: 0.5rem;
    color: #667eea;
    width: 20px;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.form-control:hover, .form-select:hover {
    border-color: #764ba2;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Submit Button */
.form-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f8f9fa;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit i {
    font-size: 1.3rem;
}

.loading-spinner {
    display: none;
}

.btn-submit.loading .loading-spinner {
    display: inline-block;
}

.btn-submit.loading span {
    display: none;
}

/* Modals */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-title {
    font-weight: 700;
}

.modal-body {
    padding: 2rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .form-container {
        padding: 1.5rem;
        margin: 0 0.5rem;
        border-radius: 20px;
    }
    
    .photo-preview {
        width: 150px;
        height: 180px;
    }
    
    .btn-submit {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .header-section {
        padding: 1rem 0;
    }
    
    .stat-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .subtitle {
        text-align: center;
        font-size: 1rem;
    }
    
    .header-stats {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .photo-preview {
        width: 120px;
        height: 150px;
    }
    
    .photo-preview i {
        font-size: 2rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Form Validation Styles */
.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid, .form-select.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    display: block;
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
