* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #0f0;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    position: relative;
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    padding: 15px 20px;
    border-bottom: 1px solid #0f0;
    background: rgba(0, 20, 0, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.header h1 {
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #0f0;
}

.status {
    font-size: 11px;
    margin-top: 5px;
    opacity: 0.7;
}

#editor {
    flex: 1;
    background: transparent;
    color: #0f0;
    border: none;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    resize: none;
    outline: none;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    line-height: 1.6;
}

#editor::placeholder {
    color: #0a0;
    opacity: 0.5;
}

.cursor-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.footer {
    padding: 10px 20px;
    border-top: 1px solid #0f0;
    background: rgba(0, 20, 0, 0.8);
    font-size: 11px;
    display: flex;
    justify-content: left;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 0%,
        rgba(0, 255, 0, 0.02) 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}
