* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%; height: 100%;
    background: #000;
    color: #00f2fe;
    font-family: 'Consolas', 'Courier New', monospace;
    overflow: hidden;
}

.typing-loader {
    display: inline-flex !important;
    gap: 6px;
    margin-left: 10px;
    height: 10px;
    align-items: center;
}

/* Aplicăm animația DOAR primelor 3 buline */
.typing-loader span:nth-child(1),
.typing-loader span:nth-child(2),
.typing-loader span:nth-child(3) {
    width: 6px;
    height: 6px;
    background-color: #00ff41;
    border-radius: 50%;
    animation: wave 1s infinite;
}

.typing-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Stilul pentru secundele care trec */
#timer-count {
    animation: none !important; /* Oprim valul pentru cifre */
    background-color: transparent !important; /* Să nu fie cerc verde */
    width: auto !important;
    height: auto !important;
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    margin-left: 4px;
}

@keyframes wave {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

@keyframes wave {
    0%, 100% { 
        transform: translateY(0); 
        opacity: 0.2; 
    }
    50% { 
        transform: translateY(-6px); 
        opacity: 1; 
    }
}

.glitch-red {
    color: #ff0000 !important;
    text-shadow: 0 0 10px #ff0000;
    font-weight: bold;
    margin-bottom: 5px;
    animation: noise 0.2s infinite;
}

.ai-success {
    color: red !important;
    text-shadow: 0 0 10px #00f2fe;
    margin-bottom: 5px;
}

@keyframes noise {
    0% { transform: skew(2deg); opacity: 1; }
    50% { transform: skew(-2deg); opacity: 0.8; }
    100% { transform: skew(0deg); opacity: 1; }
}

body::before {
    content: "";
    position: absolute;
    width: 300%; height: 300%;
    top: -100%; left: -100%;
    background-image: 
        linear-gradient(rgba(0, 242, 254, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(65deg);
    animation: moveGrid 4s linear infinite;
    z-index: 0; 
}

@keyframes moveGrid {
    0% { transform: perspective(500px) rotateX(65deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(65deg) translateY(60px); }
}

@keyframes textGlitch {
    0% { transform: translate(0); text-shadow: 0 0 8px #00ff41; }
    2% { transform: translate(-2px, 2px); text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff; }
    4% { transform: translate(2px, -2px); text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff; }
    5% { transform: translate(0); text-shadow: 0 0 8px #00ff41; }
    100% { transform: translate(0); }
}

@keyframes scan-mobile {
    0% { transform: translateX(5vw); }
    100% { transform: translateX(95vw); }
}

.ai-text, .glitch-red, .boot-text {
    animation: textGlitch 5s infinite;
}

#log {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: calc(100% - 80px);
    padding: 20px;
    overflow-y: auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

#log::before {
    content: "";
    margin-top: auto;
}

.ai-text, .user-text {
    margin-bottom: 20px;
}

.ai-text { color: #fff; text-shadow: 0 0 10px #00f2fe; }
.user-text { 
    color: #00f2fe; 
    border-left: 4px solid #00f2fe;
    padding-left: 15px;
    background: rgba(0, 242, 254, 0.05);
}

#input-line {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%; height: 80px;
    background: #000;
    border-top: 2px solid #00f2fe;
    display: flex; align-items: center;
    padding: 0 20px; z-index: 100;
}

input {
    flex: 1; background: transparent; border: none;
    color: #00f2fe; font-size: 16px; outline: none;
}

.scanner-line {
    position: fixed;
    top: 0;
    width: 2px;
    height: 100%; 
    height: -webkit-fill-available;
    background: #00ff41;
    box-shadow: 0 0 15px #00ff41;
    z-index: 999999 !important; 
    pointer-events: none;
    opacity: 0.15;
    animation: scan-mobile 8s ease-in-out infinite alternate;
}

