/**
 * 팝업 관리 시스템 스타일
 */

/* 팝업 오버레이 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    animation: fadeIn 0.3s ease-in-out;
}

/* 팝업 컨테이너 */
.popup-container {
    position: fixed;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideDown 0.3s ease-in-out;
    overflow: hidden;
}

/* 팝업 헤더 */
.popup-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.popup-header button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.popup-header button:hover {
    color: #333;
}

/* 팝업 본문 */
.popup-body {
    padding: 20px;
    overflow-y: auto;
}

/* 팝업 푸터 */
.popup-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.popup-footer label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.popup-footer label input[type="checkbox"] {
    margin-right: 5px;
    cursor: pointer;
}

.popup-footer button {
    padding: 8px 20px;
    background: #E06D0F;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.popup-footer button:hover {
    background: #C85A00;
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .popup-container {
        width: 90% !important;
        max-width: 400px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .popup-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .popup-footer label {
        margin-bottom: 10px;
    }
}

/* 팝업 내용 스타일 */
.popup-body h1,
.popup-body h2,
.popup-body h3,
.popup-body h4,
.popup-body h5,
.popup-body h6 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.popup-body p {
    margin: 0;
    line-height: 1;
}

.popup-body img {
    max-width: 100%;
    height: auto;
}

.popup-body a {
    color: #007bff;
    text-decoration: none;
}

.popup-body a:hover {
    text-decoration: underline;
}

/* 스크롤바 스타일 */
.popup-body::-webkit-scrollbar {
    width: 8px;
}

.popup-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.popup-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.popup-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}
