* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    height: 100vh;
    background: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    color: #fff;
}

.app {
    width: 450px;
    background: #0f0f0f;
    border-radius: 28px;
    padding: 30px;
    border: 1px solid #222;
    box-shadow: 0 40px 100px rgba(0,0,0,0.9);
}

#authBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#loginBtn {
    background: #00e5ff;
    color: #000;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

#userEmail {
    font-size: 12px;
    color: #aaa;
}

header h1 { font-size: 26px; letter-spacing: -1px; }
#currentStatus { font-size: 12px; color: #00e5ff; margin-bottom: 25px; }

.add-task-container { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }

input[type="text"] {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    padding: 14px;
    border-radius: 12px;
    outline: none;
}

.timer-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timer-input-group input {
    width: 60px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #00e5ff;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
}

#addBtn {
    flex-grow: 1;
    background: #00e5ff;
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

#addBtn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,229,255,0.3); }

ul { list-style: none; max-height: 380px; overflow-y: auto; }

li {
    background: #161616;
    border: 1px solid #222;
    padding: 18px;
    border-radius: 18px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #00e5ff;
    width: 100%;
    transition: width 1s linear;
}

.task-info { margin-bottom: 10px; }
.task-name { font-weight: 600; font-size: 16px; display: block; }

.timer-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.countdown { font-family: monospace; font-size: 24px; color: #00e5ff; }

.actions button {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 6px;
}

.start-btn { background: #222; color: #00e5ff; border: 1px solid #00e5ff !important; }
.delete-btn { background: #ff4d4d22; color: #ff4d4d; }

.ringing {
    animation: ring-pulse 0.5s infinite;
    border-color: #ff4d4d;
}

@keyframes ring-pulse {
    0% { background: #161616; }
    50% { background: #331111; }
    100% { background: #161616; }
}
