@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(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    z-index: 2;
    position: relative;
}

.window {
    background: #c0c0c0;
    border: 2px solid #ffffff;
    box-shadow: 
        inset -1px -1px 0 #808080,
        inset 1px 1px 0 #dfdfdf,
        5px 5px 0 rgba(0, 0, 0, 0.3);
}

.title-bar {
    background: linear-gradient(90deg, #000080, #1084d0);
    padding: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-bar-text {
    color: white;
    font-size: 18px;
    padding-left: 5px;
    letter-spacing: 1px;
}

.title-bar-controls {
    display: flex;
    gap: 2px;
}

.title-bar-controls button {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 1px solid #ffffff;
    box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #dfdfdf;
    font-size: 10px;
    cursor: pointer;
}

.window-body {
    padding: 20px;
    background: #008080;
    min-height: 500px;
}

.header {
    text-align: center;
    margin-bottom: 25px;
}

.neon-text {
    font-size: 36px;
    color: #ffff00;
    text-shadow: 
        0 0 5px #ffff00,
        0 0 10px #ffff00,
        0 0 15px #ff00ff,
        0 0 20px #ff00ff;
    letter-spacing: 3px;
    animation: neon-flicker 2s infinite;
}

@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.date-display {
    color: #00ffff;
    font-size: 20px;
    margin-top: 10px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

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

#todo-input {
    flex: 1;
    padding: 10px;
    font-size: 20px;
    font-family: 'VT323', monospace;
    background: #000000;
    color: #00ff00;
    border: 2px solid #00ffff;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.3);
}

#todo-input::placeholder {
    color: #008080;
}

.btn-3d {
    padding: 10px 20px;
    font-size: 18px;
    font-family: 'VT323', monospace;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    color: #000000;
    border: 2px solid #ffffff;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 
        3px 3px 0 #000000,
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.1s;
}

.btn-3d:hover {
    transform: translate(1px, 1px);
    box-shadow: 
        2px 2px 0 #000000,
        inset 0 0 10px rgba(255, 255, 255, 0.7);
}

.btn-3d:active {
    transform: translate(3px, 3px);
    box-shadow: 
        0 0 0 #000000,
        inset 0 0 10px rgba(255, 255, 255, 0.9);
}

.stats {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00ffff;
    margin-bottom: 20px;
}

.stat-item {
    color: #00ff00;
    font-size: 20px;
    text-shadow: 0 0 5px #00ff00;
}

.todo-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 5px;
}

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

.todo-list::-webkit-scrollbar-track {
    background: #004040;
    border: 1px solid #00ffff;
}

.todo-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff00ff, #00ffff);
    border: 1px solid #ffffff;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
    animation: slide-in 0.3s ease-out;
}

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

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

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

.todo-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #00ff00;
}

.todo-text {
    flex: 1;
    color: #00ffff;
    font-size: 20px;
    text-shadow: 0 0 3px #00ffff;
}

.delete-btn {
    padding: 5px 10px;
    background: #ff0000;
    color: #ffffff;
    border: 1px solid #ffffff;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 16px;
    box-shadow: 2px 2px 0 #000000;
    transition: all 0.1s;
}

.delete-btn:hover {
    background: #ff3333;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 #000000;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 2px solid #00ffff;
}

.btn-small {
    padding: 5px 10px;
    font-size: 16px;
    font-family: 'VT323', monospace;
    background: #ff00ff;
    color: #ffffff;
    border: 1px solid #ffffff;
    cursor: pointer;
    box-shadow: 2px 2px 0 #000000;
    transition: all 0.1s;
}

.btn-small:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 #000000;
}

.copyright {
    color: #00ff00;
    font-size: 16px;
    text-shadow: 0 0 3px #00ff00;
}

@media (max-width: 600px) {
    .neon-text {
        font-size: 28px;
    }
    
    .window-body {
        padding: 15px;
    }
    
    .input-section {
        flex-direction: column;
    }
    
    .btn-3d {
        width: 100%;
    }
}