/* Popup Window Styles */

.popup-window {
    position: fixed;
    width: 350px;
    min-height: 200px;
    background: #f0f0f0;
    border: 2px outset #c0c0c0;
    font-family: 'Tahoma', Arial, sans-serif;
    font-size: 11px;
    z-index: 1003;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.5);
}

.popup-titlebar {
    background: linear-gradient(to bottom, #0080ff, #0060cc);
    color: white;
    padding: 2px 4px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #0060cc;
}

.popup-title {
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.popup-controls button {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    width: 16px;
    height: 14px;
    font-size: 10px;
    margin-left: 2px;
    cursor: pointer;
}

.popup-controls button:hover {
    background: #d0d0d0;
}

.popup-controls button:active {
    border: 1px inset #c0c0c0;
}

.popup-content {
    padding: 15px;
    text-align: center;
}

.popup-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.popup-message {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 20px;
    text-align: left;
}

.popup-buttons {
    text-align: center;
    margin-top: 15px;
}

.popup-btn {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    padding: 4px 12px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 11px;
}

.popup-btn:hover {
    background: #d0d0d0;
}

.popup-btn:active {
    border: 1px inset #c0c0c0;
}

.popup-btn.primary {
    font-weight: bold;
}

/* Blinking/flashing popup */
.popup-window.urgent {
    animation: flashPopup 0.5s infinite;
}

@keyframes flashPopup {
    0%, 100% { 
        background: #f0f0f0;
        border-color: #c0c0c0;
    }
    50% { 
        background: #fff0f0;
        border-color: #ff0000;
    }
}
