/* تحسينات لنظام الرقم القومي */

/* تأثيرات الانتقال السلس */
.col-md-3,
.form-control,
.form-select {
    transition: all 0.3s ease;
}

/* تأثير الإخفاء والظهور للحالة العسكرية */
.military-status-fade {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.military-status-show {
    opacity: 1;
    transform: translateY(0);
}

/* تحسين شكل رسائل الخطأ */
.invalid-feedback.dynamic {
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين شكل حقل الرقم القومي */
#national_id {
    font-family: 'cairo', sans-serif;
    letter-spacing: 1px;
    direction: ltr;
    text-align: left;
}

/* تأثير التركيز على الحقول المملوءة تلقائياً */
.auto-filled {
    background-color: #e8f5e8 !important;
    border-color: #28a745 !important;
    animation: autoFillHighlight 2s ease;
}

@keyframes autoFillHighlight {
    0% {
        background-color: #fff3cd;
        border-color: #ffc107;
    }

    100% {
        background-color: #e8f5e8;
        border-color: #28a745;
    }
}

/* تحسين شكل التنبيهات */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

/* تحسين شكل الأيقونات */
.fas {
    margin-left: 8px;
}

/* تحسين تجاوب العناصر */
@media (max-width: 768px) {

    .col-md-3,
    .col-md-6 {
        margin-bottom: 1rem;
    }

    #national_id {
        font-size: 14px;
    }
}

/* تأثير hover على العناصر المحددة */
.form-select:hover,
.form-control:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* تحسين شكل التسميات */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

/* تأثير خاص للحقول المطلوبة */
.form-label .text-danger {
    font-size: 1.1em;
    margin-right: 2px;
}

/* تحسين شكل الرسائل التوضيحية */
.text-muted {
    font-size: 0.85rem;
    font-style: italic;
}


/* تحسينات إضافية لنظام رفع الصور */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



.upload-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.upload-title {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.image-upload-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.image-preview-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px dashed #667eea;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-preview-container:hover {
    border-color: #764ba2;
    transform: scale(1.02);
}

.image-preview-container.has-image {
    border-style: solid;
    border-color: #28a745;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: none;
}

.upload-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #667eea;
    pointer-events: none;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.upload-text {
    font-size: 16px;
    color: #666;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #1976d2;
}

.upload-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    display: none;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    display: none;
}

.file-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    text-align: right;
    display: none;
}

.file-details h4 {
    color: #333;
    margin-bottom: 10px;
}

.file-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.file-info .label {
    font-weight: bold;
    color: #666;
}

.file-info .value {
    color: #333;
}

@media (max-width: 480px) {
    .upload-container {
        padding: 20px;
    }

    .image-preview-container {
        width: 150px;
        height: 150px;
    }

    .upload-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

.recaptcha-container {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}
