/*
============================================================
NRW 2.0 – UI CORE CSS
Toast + HardLock
============================================================
*/

/* ============================================================
   UI LAYER
============================================================ */

#ui-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

/* ============================================================
   TOAST LAYER
============================================================ */

#toast-layer {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

/* Toast Base */

.toast {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.25s ease;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    color: #fff;
    pointer-events: auto;
}

/* Visible State */

.toast.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Severity Types */

.toast-info {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
}

.toast-warning {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #222;
}

.toast-error {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

/* ============================================================
   HARD LOCK LAYER
============================================================ */

#lock-layer {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Active State */

#lock-layer.active {
    opacity: 1;
    pointer-events: all;
}

/* Hard Lock Box */

.hardlock-box {
    background: #1c1c1c;
    padding: 40px;
    border-radius: 12px;
    width: 420px;
    max-width: 90%;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.hardlock-box h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
}

.hardlock-box p {
    margin: 0 0 25px 0;
    font-size: 14px;
    color: #ccc;
}

/* Reload Button */

.hardlock-box button {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    border: none;
    color: #fff;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hardlock-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 75, 43, 0.4);
}

.hardlock-box button:active {
    transform: translateY(0);
}

/* ============================================================
   OPTIONAL: DEBUG LAYER BASIS
============================================================ */

#debug-layer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 40vh;
    overflow: auto;
    background: #111;
    color: #0f0;
    font-size: 12px;
    padding: 12px;
    border-top: 1px solid #333;
    font-family: monospace;
}

.dbg-error {
    color: #ff4b4b;
    margin-bottom: 10px;
}

.dbg-debug {
    color: #00d2ff;
    margin-bottom: 10px;
}

.dbg-error pre,
.dbg-debug pre {
    white-space: pre-wrap;
    word-break: break-word;
    margin-top: 5px;
}
