/* Message Box - Estilos para el prompt/input */
.msgbox-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.msgbox {
    background: #fff;
    border-radius: 14px;
    width: 360px;          /* un poco más ancho para que quepa bien el input */
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
}

.msgbox .titlebar {
    background: var(--primary); /* tu color principal, ej: #dc3545 */
    color: #fff;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 1.1rem;
}

.msgbox .body {
    padding: 24px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.msgbox .body input[type="text"],
.msgbox .body input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-top: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.msgbox .body input[type="text"]:focus,
.msgbox .body input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2); /* sombra suave con tu color principal */
}

.msgbox .footer {
    text-align: right;
    padding: 12px 18px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.msgbox button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.msgbox button:hover {
    background: #c00000; /* un tono más oscuro para hover - ajusta según tu --primary */
}

.msgbox button.cancel {
    background: #6c757d; /* gris para el botón Cancel */
}

.msgbox button.ok {
    background: #fa3535; /* gris para el botón Cancel */
}

.msgbox button.cancel:hover {
    background: #5a6268;
}
