.dev-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #050a14;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, transform 0.6s ease;
    font-family: 'Inter', sans-serif;
}

[data-theme="light"] .dev-loading-screen {
    background: #f8fafc;
}

.dev-loading-screen.fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

/* Cyber Reactor Loader */
.reactor-loader {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reactor-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.reactor-ring:nth-child(1) {
    width: 100%;
    height: 100%;
    border-top-color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    animation: reactorSpin 2s linear infinite;
    box-shadow: 0 0 15px var(--accent-glow);
}

.reactor-ring:nth-child(2) {
    width: 75%;
    height: 75%;
    border-left-color: var(--accent-secondary);
    border-right-color: var(--accent-secondary);
    animation: reactorSpin 1.5s linear infinite reverse;
    box-shadow: 0 0 10px var(--accent-glow-secondary);
}

.reactor-ring:nth-child(3) {
    width: 50%;
    height: 50%;
    border-top-color: #fff;
    border-right-color: #fff;
    animation: reactorSpin 1s linear infinite;
    opacity: 0.6;
}

.reactor-core {
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--accent-color), 0 0 60px var(--accent-color);
    animation: reactorPulse 1s ease-in-out infinite alternate;
}

.dev-loading-text {
    margin-top: 3rem;
    position: absolute;
    bottom: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.dev-loading-text span:first-child {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlowDark 2s ease-in-out infinite;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

/* Terminal Window */
.terminal-window {
    width: 90%;
    max-width: 600px;
    height: 350px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

[data-theme="light"] .terminal-window {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Header */
.terminal-header {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    position: relative;
}

[data-theme="light"] .terminal-header {
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close {
    background: #ff5f56;
}

.control.minimize {
    background: #ffbd2e;
}

.control.maximize {
    background: #27c93f;
}

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

[data-theme="light"] .terminal-title {
    color: rgba(0, 0, 0, 0.5);
}

/* Body */
.terminal-body {
    padding: 16px;
    flex-grow: 1;
    overflow-y: auto;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
}

[data-theme="light"] .terminal-body {
    color: #334155;
}

.terminal-line {
    margin-bottom: 4px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(5px);
    animation: lineFadeIn 0.3s forwards;
}

.prompt {
    color: var(--accent-color);
}

.command {
    color: #fff;
}

[data-theme="light"] .command {
    color: #000;
}

.output {
    color: #94a3b8;
}

.success {
    color: #27c93f;
}

/* Animations */
@keyframes lineFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background: var(--accent-color);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .terminal-window {
        width: 95%;
        height: 300px;
    }

    .terminal-line {
        font-size: 0.8rem;
    }
}