/* custom-styles.css - تنسيقات إضافية للنموذج */

/* تنسيق بطاقات التاريخ */
.date-card {
    padding: 16px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 100px;
    background-color: #fff;
}

.date-card:hover {
    border-color: #3B82F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

.date-card.active {
    border-color: #3B82F6;
    background-color: #EFF6FF;
}

.date-day {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 4px;
}

.date-number {
    font-size: 24px;
    font-weight: bold;
    color: #1F2937;
    margin-bottom: 4px;
}

.date-card.active .date-number {
    color: #3B82F6;
}

.date-month {
    font-size: 12px;
    color: #9CA3AF;
}

/* تنسيق بطاقات الوقت */
.time-slot-card {
    padding: 16px 24px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 150px;
    background-color: #fff;
}

.time-slot-card:hover {
    border-color: #3B82F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

.time-slot-card.active {
    border-color: #3B82F6;
    background-color: #EFF6FF;
}

.time-slot-time {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 4px;
}

.time-slot-card.active .time-slot-time {
    color: #3B82F6;
}

.time-slot-period {
    font-size: 12px;
    color: #6B7280;
}

/* تنسيق رسائل الخطأ */
.formErrorMessage {
    display: none;
    font-size: 12px;
    color: #DC2626;
    margin-top: 4px;
}

.form-control.is-invalid {
    border-color: #DC2626 !important;
}

/* تنسيق loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.loader-container {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3B82F6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #1F2937;
    font-size: 16px;
    margin: 0;
}

/* تنسيق قسم عدم توفر أوقات */
.not-available-time-slots {
    text-align: center;
    padding: 60px 20px;
}

.not-available-time-slots img {
    max-width: 200px;
    margin-bottom: 20px;
}

.not-available-time-slots h2 {
    color: #6B7280;
}

/* تنسيق بطاقات المراجعة */
.gen-info-card {
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    position: relative;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #EFF6FF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon img {
    width: 20px;
    height: 20px;
}

.info-label {
    font-weight: 500;
    margin-bottom: 4px;
    width: 100%;
}

.info-text {
    color: #6B7280;
}

.edit-icon-yellow {
    top: 24px;
    left: 24px;
    cursor: pointer;
}

.edit-icon-yellow img {
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.edit-icon-yellow:hover img {
    transform: scale(1.1);
}

/* تجاوب */
@media (max-width: 768px) {
    .date-card {
        min-width: 80px;
        padding: 12px 16px;
    }

    .date-number {
        font-size: 20px;
    }

    .time-slot-card {
        min-width: 120px;
        padding: 12px 16px;
    }

    .gen-info-card {
        padding: 16px;
    }
}

/* تنسيق الأزرار */
.btn-grp {
    gap: 12px;
}

@media (max-width: 454px) {
    .btn-grp {
        flex-direction: column;
    }

    .w-100-454 {
        width: 100% !important;
    }

    .order-454-1 {
        order: 1;
    }

    .order-454-2 {
        order: 2;
    }

    .mt-10-454 {
        margin-top: 10px;
    }
}