/* Todos List Styles */

.todos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.todo-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.todo-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.todo-card.overdue {
    border-left: 4px solid #e74c3c;
}

.todo-card.status-completed {
    opacity: 0.7;
    background: #f8f9fa;
}

.todo-header {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.btn-delete-small {
    background: rgba(231, 76, 60, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.btn-delete-small:hover {
    background: #e74c3c;
}

.todo-status-priority {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-in_progress {
    background: #cfe2ff;
    color: #084298;
}

.status-badge.status-completed {
    background: #d1e7dd;
    color: #0f5132;
}

.status-badge.status-cancelled {
    background: #f8d7da;
    color: #842029;
}

.priority-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.priority-low {
    background: #e7f3ff;
    color: #0c63e4;
}

.priority-badge.priority-medium {
    background: #fff3cd;
    color: #856404;
}

.priority-badge.priority-high {
    background: #ffeaa7;
    color: #d63031;
}

.priority-badge.priority-urgent {
    background: #f8d7da;
    color: #dc3545;
}

.todo-card h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.todo-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 12px;
    line-height: 1.5;
}

.todo-due-date {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.85em;
    color: #666;
}

.todo-due-date.overdue {
    color: #e74c3c;
    font-weight: 600;
}

.days-until {
    display: block;
    margin-top: 4px;
    font-size: 0.9em;
}

.todo-links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.link-badge {
    padding: 4px 8px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.75em;
    color: #495057;
}

.btn-ai {
    margin-top: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-ai:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
    .todos-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .todo-card {
        padding: 15px;
    }
}

