@charset "UTF-8";

/* === Modals & Overlays === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 64, 58, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    backdrop-filter: blur(4px);
    display: none;
}

.modal-content {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e2d9;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-box {
    max-width: 420px;
    text-align: center;
    padding: 40px 44px;
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #2D2318;
    margin: 0 0 12px;
}

.modal-message {
    font-size: 16px;
    color: #8B7355;
    line-height: 1.6;
    margin: 0 0 28px;
}

.modal-btn-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Pretendard', sans-serif;
    transition: all 0.2s ease;
    flex: 1;
}

.modal-btn-confirm {
    background: #5B5FC7;
    color: white;
    box-shadow: 0 4px 12px rgba(91, 95, 199, 0.25);
}
.modal-btn-confirm:hover {
    background: #4a4eb3;
    box-shadow: 0 6px 16px rgba(91, 95, 199, 0.35);
}

.modal-btn-cancel {
    background: #ffffff;
    color: #5D4E37;
    border: 1.5px solid #e8e2d9;
}
.modal-btn-cancel:hover {
    background: #f9f6f1;
}

/* Image Modal */
#image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 11000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#image-modal img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    background: white;
    object-fit: contain;
}

#image-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

/* Context Menu */
#custom-context-menu {
    display: none;
    position: absolute;
    z-index: 10000;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 5px 0;
    min-width: 150px;
}

.ctx-menu-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    display: block;
}

.ctx-menu-item:hover {
    background-color: #f1f3f5;
}

/* Marquee Selection */
.selection-marquee {
    position: fixed;
    border: 1px solid #0078d7;
    background-color: rgba(0, 120, 215, 0.3);
    z-index: 9999;
    pointer-events: none;
}