/* Modernized jQuery Alert Dialogs Styling - Bootstrap 5 Responsive Polish */

#popup_container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    min-width: 290px;
    max-width: 90vw;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1f2937;
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 99999 !important;
}

#popup_title {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    line-height: 1.5;
    color: #0f172a;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 14px;
    margin: 0;
    cursor: default;
}

#popup_content {
    padding: 16px;
    margin: 0;
}

#popup_content.success {
    background-color: #ffffff;
    color: #065f46;
}

#popup_content.warning {
    background-color: #ffffff;
    color: #92400e;
}

#popup_content.error {
    background-color: #ffffff;
    color: #991b1b;
}

#popup_content.info, #popup_content.confirm, #popup_content.prompt {
    background-color: #ffffff;
    color: #1e40af;
}

#popup_message {
    padding: 6px 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
}

#popup_panel {
    text-align: center;
    margin-top: 14px;
}

#popup_ok {
    min-width: 90px;
    border: none;
    background-color: #10b981;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

#popup_ok:hover {
    background-color: #059669;
}

#popup_cancel {
    min-width: 90px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #475569;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    margin-left: 8px;
    transition: background-color 0.15s ease;
}

#popup_cancel:hover {
    background-color: #f1f5f9;
}

#popup_overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(2px);
    z-index: 99998 !important;
}