/* تنسيق عام */
body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f5ff;
    background-image: linear-gradient(to bottom, #f0f5ff, #ffffff);
    color: #333;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* تنسيق الهيدر */
.header {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.header:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* تنسيق البطاقات */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background-color: #ffffff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: bold;
    padding: 15px 20px;
}

/* تنسيق الأزرار */
.btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 68, 148, 0.3);
}

.btn-secondary {
    border-radius: 30px;
    transition: all 0.3s ease;
}

/* تنسيق حقول الإدخال */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background-color: #f9fafc;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.15);
    background-color: #ffffff;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

/* تنسيق التحقق من الصحة */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
}

/* تنسيق رسائل النجاح والخطأ */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* تنسيق الفوتر */
.footer {
    padding: 25px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    font-size: 0.9em;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.footer p {
    margin-bottom: 5px;
    color: #555;
}

.footer img {
    transition: transform 0.3s ease;
}

.footer img:hover {
    transform: scale(1.05);
}

/* تنسيق كابتشا */
.captcha-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

#captchaImage {
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 40px;
}

/* تنسيق للشاشات الصغيرة */
@media (max-width: 768px) {
    .header img {
        max-height: 60px !important;
    }
    
    .header h2 {
        font-size: 1.5rem;
    }
    
    .header h4 {
        font-size: 1.2rem;
    }
    
    .card-header {
        padding: 10px 15px;
    }
    
    .btn {
        padding: 8px 16px;
    }
    
    .table {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .header img {
        max-height: 50px !important;
    }
    
    .header h2 {
        font-size: 1.3rem;
    }
    
    .header h4 {
        font-size: 1rem;
    }
    
    .card-header h3, .card-header h5 {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}