﻿ 
.modal-backdrop.show {
    opacity: 0.5;
    opacity: 0.1;
}

.modal-backdrop {
    background-color: rgba(245, 245, 245, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* ====== المودال ====== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

    .modal.show {
        display: block;
    }

    .modal.fade .modal-dialog {
        transition: transform 0.3s ease-out;
        transform: translateY(-25%);
    }

    .modal.show .modal-dialog {
        transform: translateY(0);
    }

/* ====== خلفية المودال ====== */
/*    .modal::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1040;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
    }*/
.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* ====== حاوية المودال ====== */
.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100% - 3.5rem);
}

/* ====== محتوى المودال ====== */
.modal-content {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    background-color: #fff;
    padding: 4rem;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    width: 100%;
    max-width: 500px;
}

@media (max-width: 768px) {
    .modal-content {
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%);
        width: 90%;
        max-width: 400px;
    }
}

/* ====== زر الإغلاق ====== */
.modal .btn-close,
.modal-close {
    position: absolute;
    top: 10px;
    left: 1rem;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #333;
    cursor: pointer;
}

    .modal .btn-close:hover {
        color: #000;
    }

/* ====== العناوين والحقول ====== */
.modal-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 600 !important;
    margin-bottom: 1.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s;
}

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-color: #007bff;
        outline: none;
    }


.btn-primary {
    background-color: #007bff;
    color: #fff;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

/* ====== حركة فتح المودال ====== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

 
