/* ============================================================
   DIALOGS & SHUTDOWN SCREENS
   ============================================================ */

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8000;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-window {
    position: relative;
    z-index: 8001;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
}

.dialog-body {
    display: flex;
    gap: 12px;
    padding: 16px;
}

.dialog-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* Dialog icons */
.dialog-icon-info {
    position: relative;
    border-radius: 50%;
    background: #0000ff;
}
.dialog-icon-info::after {
    content: 'i';
    color: white;
    font-weight: bold;
    font-size: 22px;
    font-family: serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dialog-icon-warning {
    position: relative;
    background: #ffcc00;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.dialog-icon-warning::after {
    content: '!';
    color: black;
    font-weight: bold;
    font-size: 16px;
    font-family: var(--win95-font), sans-serif;
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dialog-icon-error {
    position: relative;
    border-radius: 50%;
    background: #ff0000;
}
.dialog-icon-error::after {
    content: 'X';
    color: white;
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dialog-icon-question {
    position: relative;
    border-radius: 50%;
    background: #0000ff;
}
.dialog-icon-question::after {
    content: '?';
    color: white;
    font-weight: bold;
    font-size: 22px;
    font-family: serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dialog-content {
    flex: 1;
    min-width: 0;
    font-family: var(--win95-font);
    font-size: var(--win95-font-size);
    line-height: 1.4;
}

.dialog-message {
    margin-bottom: 8px;
}

.dialog-buttons {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0 16px 12px;
}

/* ============================================================
   SHUTDOWN SCREEN
   ============================================================ */

#shutdown-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.shutdown-phase1 {
    background: #000000;
}

.shutdown-text {
    color: #ffffff;
    font-family: var(--win95-font);
    font-size: 16px;
    text-align: center;
}

.shutdown-phase2 {
    background: #c86400;
}

.shutdown-safe-text {
    color: #ffffff;
    font-family: var(--win95-font);
    font-size: 16px;
    text-align: center;
    line-height: 1.6;
}

.shutdown-hint {
    color: rgba(255,255,255,0.65);
    font-family: var(--win95-font);
    font-size: 11px;
    text-align: center;
    margin-top: 8px;
    animation: blink-cursor 1.2s steps(2, start) infinite;
}

/* ---- Shutdown dialog radio buttons ---- */
.shutdown-radio-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    font-family: var(--win95-font);
    font-size: var(--win95-font-size);
    cursor: default;
    white-space: nowrap;
}

.shutdown-radio-row input[type="radio"] {
    flex-shrink: 0;
    margin: 0;
    cursor: default;
    width: 13px;
    height: 13px;
}

.shutdown-radio-row span {
    line-height: 1.3;
}
