@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'VT323', monospace;
    background: linear-gradient(180deg, #0a0a0a 0%, #2a1a0a 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff8800;
    font-size: 20px;
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 600px;
    background: #0f0f0f;
    border: 3px solid #ff8800;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    box-shadow: 
        0 0 20px rgba(255, 136, 0, 0.5),
        inset 0 0 20px rgba(255, 136, 0, 0.1),
        0 0 40px rgba(255, 136, 0, 0.3);
    animation: flicker 0.15s infinite alternate;
}

@keyframes flicker {
    0% {
        opacity: 0.97;
    }
    100% {
        opacity: 1;
    }
}

.crt-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 2px;
    pointer-events: none;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 10px;
    }
}

header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #ff8800;
    padding-bottom: 20px;
}

.title {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 10px;
}

.neon-text {
    font-size: 48px;
    text-shadow: 
        0 0 10px #ff8800,
        0 0 20px #ff8800,
        0 0 30px #ff8800,
        0 0 40px #ff8800;
    letter-spacing: 3px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 10px #ff8800,
            0 0 20px #ff8800,
            0 0 30px #ff8800,
            0 0 40px #ff8800;
    }
    to {
        text-shadow: 
            0 0 20px #ff8800,
            0 0 30px #ff8800,
            0 0 40px #ff8800,
            0 0 50px #ff8800;
    }
}

.version {
    font-size: 18px;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

.date-display {
    font-size: 18px;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.todo-input {
    flex: 1;
    background: #000;
    border: 2px solid #ff8800;
    color: #ff8800;
    padding: 12px;
    font-size: 18px;
    font-family: inherit;
    text-transform: uppercase;
    outline: none;
    transition: all 0.3s;
}

.todo-input:focus {
    box-shadow: 0 0 15px rgba(255, 136, 0, 0.5);
    background: rgba(255, 136, 0, 0.05);
}

.todo-input::placeholder {
    color: rgba(255, 136, 0, 0.5);
}

.add-btn {
    background: #ff8800;
    color: #000;
    border: none;
    padding: 12px 30px;
    font-size: 20px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.add-btn:hover {
    background: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transform: scale(1.05);
}

.add-btn:active {
    transform: scale(0.95);
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: rgba(255, 136, 0, 0.1);
    border: 1px solid #ff8800;
    margin-bottom: 20px;
    font-size: 16px;
}

.stats-bar span {
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
}

.todo-list {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

.todo-list::-webkit-scrollbar {
    width: 8px;
}

.todo-list::-webkit-scrollbar-track {
    background: #000;
    border: 1px solid #ff8800;
}

.todo-list::-webkit-scrollbar-thumb {
    background: #ff8800;
    border-radius: 4px;
}

.todo-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 136, 0, 0.05);
    border: 1px solid #ff8800;
    transition: all 0.3s;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.todo-item:hover {
    background: rgba(255, 136, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.3);
}

.todo-item.completed {
    opacity: 0.6;
    border-color: #808080;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #808080;
}

.checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #ff8800;
    background: transparent;
    margin-right: 15px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.checkbox:hover {
    background: rgba(255, 136, 0, 0.2);
}

.checkbox.checked {
    background: #ff8800;
}

.checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 18px;
    font-weight: bold;
}

.todo-text {
    flex: 1;
    font-size: 20px;
    text-transform: uppercase;
}

.todo-date {
    font-size: 14px;
    color: #00ffff;
    margin-right: 15px;
}

.delete-btn {
    background: #ff0040;
    color: #fff;
    border: none;
    padding: 5px 15px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}

.delete-btn:hover {
    background: #ff0080;
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.5);
    transform: scale(1.1);
}

.footer {
    border-top: 2px solid #ff8800;
    padding-top: 20px;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.control-btn {
    background: transparent;
    color: #ff00ff;
    border: 2px solid #ff00ff;
    padding: 8px 20px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}

.control-btn:hover {
    background: #ff00ff;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: #808080;
    text-shadow: 0 0 3px #808080;
}

@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 20px;
    }
    
    .neon-text {
        font-size: 36px;
    }
    
    .todo-item {
        flex-wrap: wrap;
    }
    
    .todo-date {
        width: 100%;
        margin-top: 5px;
        margin-right: 0;
    }
}