/* Ensure modal is properly styled and centered */
.modal {
    display: none; /* Hide modal by default */
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100%; /* Full width to center properly */
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.modal.fade.show {
    display: block; /* Show modal when triggered */
}

/* Center the modal on both desktop and mobile */
.modal-dialog {
    position: relative;
    margin: auto; /* Center horizontally */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for vertical centering */
    max-width: 600px; /* Set a maximum width for the modal */
    width: 90%; /* Ensure it fits on smaller screens */
    pointer-events: none;
    border-style: groove;
}

/* Ensure modal content is responsive */
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%; /* Full width of the modal */
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
    padding: 20px; /* Add padding inside the modal content */
}

/* Optional: Add padding specifically to the modal body */
.modal-body {
    padding: 10px; /* Add padding to the modal body */
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================== */
/* Animation of popup appearing and disappearing */

/* Custom animation for modal opening */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom animation for modal closing */
@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20%);
    }
}

/* Apply the animation to the modal */
.modal.fade.show {
    animation: modalFadeIn 0.3s ease-out; /* Opening animation */
}

.modal.fade:not(.show) {
    animation: modalFadeOut 0.3s ease-in; /* Closing animation */
}



/* This part is for search icon in input field */
.search-container-font {
position: relative;
}

.search-container-font i {
position: absolute;
left: 10px;
top: 50%;
transform: translateY(-50%);
color: #aaa; /* Style the icon color */
}

.search-input-font {
padding-left: 30px; /* Adjust based on icon size */
width: 200px; /* Adjust as needed */
}
