﻿/* modal.css */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1040;
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: auto;
    max-width: 90%;
    background: #fff;
    border-radius: 0.3rem;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1050;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.modal.show {
    opacity: 1;
    visibility: visible;
    transition: transform .3s ease-out;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header,
.modal-body,
.modal-footer {
    padding: 1rem;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    text-align: right;
}

.cur {
    cursor: pointer;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

@media(min-width: 992px){
    .modal-lg, .modal-xl {
        max-width: 800px;
    }
}