/* ==========================================================================
   Krypton-OS - Master Boot & Intel Aptio BIOS Styling (100% Authentic)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Outfit:wght@400;600;800&family=Montserrat:wght@700;900&display=swap');

#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    user-select: none;
    cursor: default;
    font-family: 'VT323', 'Consolas', 'Courier New', monospace;
}

/* --------------------------------------------------------------------------
   PHASE 1: MONITOR SPLASH ONLY (VividDisplay for 1.2s)
   -------------------------------------------------------------------------- */
.vivid-splash-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.vivid-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: vividLogoAppear 0.25s ease-out;
}

.vivid-logo-svg {
    width: min(580px, 85vw);
    height: auto;
    filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.35));
}

.vivid-splash-hint {
    position: absolute;
    bottom: 32px;
    font-family: 'VT323', monospace;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1.5px;
    transition: color 0.2s ease;
}

.vivid-splash-hint:hover {
    color: #00f0ff;
    cursor: pointer;
}

@keyframes vividLogoAppear {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* --------------------------------------------------------------------------
   PHASE 2: AMERICAN MEGATRENDS APTIO CLASSIC BIOS SETUP MENU
   -------------------------------------------------------------------------- */
.aptio-bios-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0000aa; /* Classic Dark Blue */
    color: #aaaaaa; /* Classic Gray */
    font-family: 'VT323', 'Consolas', 'Courier New', monospace;
    font-size: 22px;
    line-height: 1.2;
    padding: 8px 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Top Header Bar */
.aptio-header {
    border-bottom: 2px solid #aaaaaa;
    padding-bottom: 4px;
    display: flex;
    justify-content: space-between;
    color: #ffffff;
}

.aptio-header-title {
    font-weight: bold;
    color: #ffffff;
}

/* Top Navigation Tabs */
.aptio-tabs-bar {
    display: flex;
    gap: 16px;
    margin: 6px 0;
    border-bottom: 2px solid #aaaaaa;
    padding-bottom: 4px;
}

.aptio-tab {
    padding: 2px 10px;
    color: #ffffff;
    cursor: pointer;
}

.aptio-tab.active {
    background-color: #aaaaaa;
    color: #0000aa;
    font-weight: bold;
}

/* Main Content Box & Side Panel */
.aptio-body-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    flex: 1;
    margin: 6px 0;
}

.aptio-main-panel {
    border: 2px solid #aaaaaa;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: #0000aa;
}

.aptio-help-panel {
    border: 2px solid #aaaaaa;
    padding: 10px;
    color: #ffffff;
    font-size: 19px;
    background-color: #0000aa;
}

.aptio-help-title {
    color: #ffff55;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Interactive Option Rows */
.aptio-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 8px;
    color: #ffffff;
    cursor: pointer;
}

.aptio-row.selected {
    background-color: #aaaaaa;
    color: #0000aa;
    font-weight: bold;
}

.aptio-row.selected .aptio-val {
    color: #0000aa;
}

.aptio-label {
    color: inherit;
}

.aptio-val {
    color: #55ffff;
}

.aptio-section-header {
    color: #ffff55;
    font-weight: bold;
    margin-top: 6px;
    border-bottom: 1px dashed #5555ff;
    padding-bottom: 2px;
}

/* Footer Control Legend Bar */
.aptio-footer-bar {
    border-top: 2px solid #aaaaaa;
    padding-top: 6px;
    color: #ffffff;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
}

/* Centered Popup Dialogs */
.aptio-modal-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #0000aa;
    border: 3px double #ffffff;
    padding: 20px 32px;
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.7);
    color: #ffffff;
    text-align: center;
    z-index: 1000;
}

.aptio-modal-title {
    color: #ffff55;
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 12px;
}

.aptio-modal-prompt {
    font-size: 20px;
    color: #ffffff;
}

/* Centered Option Selection Popup (Boot Option Selection) */
.aptio-selection-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #0000aa;
    border: 3px double #ffffff;
    padding: 14px 20px;
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.7);
    color: #ffffff;
    min-width: 360px;
    z-index: 1000;
}

.aptio-popup-title {
    color: #ffff55;
    font-weight: bold;
    font-size: 21px;
    border-bottom: 1px dashed #55ffff;
    padding-bottom: 6px;
    margin-bottom: 10px;
    text-align: center;
}

.aptio-popup-item {
    padding: 4px 10px;
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 2px;
    cursor: pointer;
}

.aptio-popup-item.selected {
    background-color: #aaaaaa;
    color: #0000aa;
    font-weight: bold;
}

/* --------------------------------------------------------------------------
   PHASE 3: AUTHENTIC "REBOOT AND SELECT PROPER BOOT DEVICE"
   -------------------------------------------------------------------------- */
.bios-error-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    color: #c0c0c0;
    font-family: 'VT323', 'Consolas', 'Courier New', monospace;
    font-size: 24px;
    line-height: 1.25;
    padding: 8px 12px;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-break: break-all;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bios-error-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-height: 100vh;
    overflow: hidden;
}

.bios-error-line {
    margin: 0;
    padding: 0;
}

.bios-underscore-cursor {
    display: inline-block;
    width: 12px;
    height: 3px;
    background-color: #c0c0c0;
    vertical-align: bottom;
    animation: biosBlink 0.8s steps(2, start) infinite;
    margin-left: 2px;
}

@keyframes biosBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   PHASE 4: MODERN KRYPTON PLYMOUTH LOADING SCREEN
   -------------------------------------------------------------------------- */
.krypton-boot-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #070912 radial-gradient(circle at center, #10152a 0%, #060810 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    user-select: none;
    font-family: 'Outfit', sans-serif;
}

.krypton-loader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: loaderPulse 2s infinite ease-in-out;
}

.krypton-atom-icon {
    font-size: 64px;
    filter: drop-shadow(0 0 24px rgba(0, 229, 255, 0.6));
    animation: atomSpin 12s linear infinite;
}

.krypton-loader-title {
    font-size: 32px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.krypton-loader-sub {
    font-size: 13px;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-top: -6px;
}

.krypton-progress-bar-container {
    width: 220px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-top: 36px;
    overflow: hidden;
    position: relative;
}

.krypton-progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00e5ff, #3b82f6, #a855f7);
    border-radius: 4px;
    box-shadow: 0 0 12px #00e5ff;
    transition: width 0.3s ease;
}

.krypton-loader-status {
    margin-top: 14px;
    font-size: 12px;
    color: #64748b;
    font-family: 'Fira Code', monospace;
}

@keyframes atomSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.3)); }
    50% { transform: scale(1.03); filter: drop-shadow(0 0 35px rgba(0, 229, 255, 0.6)); }
}
