/* /public/css/todo.css */

.todo-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.glass-panel {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.add-item-panel {
    padding: 24px;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(40, 40, 40, 0.6));
    border: 1px solid rgba(100, 181, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.add-item-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #64b5f6, transparent);
    opacity: 0.5;
}

.add-item-form {
    display: flex;
    gap: 12px;
}

#taskInput {
    flex: 1;
}

.items-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.section-title {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    color: white;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: inherit;
    white-space: nowrap;
    font-size: 0.95rem;
}

.game-btn:active {
    transform: scale(0.97);
}

.game-btn:hover {
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.6);
    transform: translateY(-1px);
}

.btn-blue {
    background: linear-gradient(135deg, #2196f3, #1565c0);
}

.items-container {
    margin-top: 20px;
}

.section-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin: 30px 0 15px 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #64b5f6, transparent);
    border-radius: 2px;
}

.todo-item {
    width: 100%;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.7), rgba(30, 30, 30, 0.6));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.todo-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #64b5f6, #42a5f5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.todo-item:hover {
    background: linear-gradient(135deg, rgba(50, 50, 50, 0.8), rgba(40, 40, 40, 0.7));
    transform: translateX(4px);
    box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(100, 181, 246, 0.3);
}

.todo-item:hover::before {
    opacity: 1;
}

.todo-item.completed {
    opacity: 0.5;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.5), rgba(25, 25, 25, 0.4));
    border-color: rgba(255, 255, 255, 0.05);
}

.todo-item.completed::before {
    background: linear-gradient(180deg, #66bb6a, #43a047);
}

.todo-item.completed:hover {
    opacity: 0.7;
    transform: translateX(2px);
}

.item-content {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.checkbox-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.checkbox-btn:hover {
    border-color: #64b5f6;
    background: rgba(100, 181, 246, 0.15);
    transform: scale(1.1);
}

.checkbox-btn.completed {
    background: linear-gradient(135deg, #66bb6a, #43a047);
    border-color: #66bb6a;
}

.checkmark {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
}

.item-name {
    font-size: 1.15rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

.todo-item.completed .item-name {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.4);
}

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-small {
    width: 18px;
    height: 18px;
}

.completed-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.completed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.btn-clear-all {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.25), rgba(255, 152, 0, 0.15));
    border: 1px solid rgba(255, 152, 0, 0.5);
    color: #ffb74d;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-clear-all:hover {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.4), rgba(255, 152, 0, 0.25));
    color: #fff;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(30, 30, 30, 0.3);
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.empty-state p {
    font-size: 1.3rem;
    margin: 12px 0;
    font-weight: 300;
}

.empty-hint {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
}

@media (max-width: 768px) {
    .header-bar h1 { font-size: 2.2rem; }
    .add-item-form { flex-direction: column; }
    .game-btn { width: 100%; }
}
