/* Y2K Thick Skeuomorphic Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #c0c0c0; /* Classic Win98 Gray */
    width: 90%;
    max-width: 500px;
    border-style: solid;
    border-width: 2px;
    border-color: var(--border-skeuo-light);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: all 0.2s ease;
    padding: 3px;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 4px 6px;
    background: linear-gradient(to right, #000080, #1084d0); /* Classic Title Bar */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.modal-title {
    font-size: 13px;
    font-weight: bold;
    margin: 0;
    font-family: var(--font-family);
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
}

.modal-close {
    background-color: #c0c0c0;
    border-style: solid;
    border-width: 1px;
    border-color: var(--border-skeuo-light);
    width: 16px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: black;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    background-color: #d1d5da;
}

.modal-close:active {
    border-color: var(--border-skeuo-dark);
}

.modal-body {
    padding: 20px;
    background-color: #ffffff;
    border: 2px solid #808080;
    margin: 4px;
    max-height: 70vh;
    overflow-y: auto;
    font-size: 14px;
    color: #000;
}

.modal-footer {
    padding: 10px 6px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Modal Lock Body Scroll */
body.modal-open {
    overflow: hidden;
}
