.popup-container {
    position: fixed;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 6px 6px 0 0;
}

.popup-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.popup-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.popup-close:hover {
    color: var(--text-primary);
}

.popup-body {
    flex: 1;
    overflow: auto;
    padding: 20px;
}

.popup-body img {
    width: 100%;
    height: auto;
    display: block;
}

.popup-content {
    margin-top: 15px;
    line-height: 1.6;
    color: var(--text-primary);
}

.popup-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 0 0 6px 6px;
}

.popup-footer label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.popup-footer input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .popup-container {
        width: 90% !important;
        max-width: 400px !important;
        left: 50% !important;
        transform: translateX(-50%);
        top: 50px !important;
    }
}
/* ========================================
   다크 모드
   ======================================== */
body.dark-mode .popup-container {
    background: #16213e;
    border-color: #34495e;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

body.dark-mode .popup-header {
    background: #0f3460;
    border-bottom-color: #34495e;
}

body.dark-mode .popup-header h3 {
    color: #ecf0f1;
}

body.dark-mode .popup-close {
    color: #bdc3c7;
}

body.dark-mode .popup-close:hover {
    color: #ecf0f1;
}

body.dark-mode .popup-content {
    color: #bdc3c7;
}

body.dark-mode .popup-footer {
    background: #0f3460;
    border-top-color: #34495e;
    color: #95a5a6;
}
