/* Modern Grid Layout for Tasks */
.tasks-container {
    padding: 10px;
}

.kanban-columns {
    display: flex;
    justify-content: center;
    gap: 25px;
    height: auto;
}

.column {
    width: 100%;
    max-width: 600px;
}

.column {
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--glass-border);
    height: fit-content;
    box-shadow: var(--glass-shadow);
}

.column h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.column h4::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Task Card Styling */
.task-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s ease;
    position: relative;
    backdrop-filter: blur(5px);
}

.task-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.task-item-content {
    flex: 1;
}

.task-title {
    font-weight: 600;
    font-size: 1rem;
    color: white;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.task-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.task-actions {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.action-btn.delete:hover {
    background: #ef4444;
}

/* Tags Styling */
.task-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Checkbox Style */
.task-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--text-secondary);
    background: transparent;
    cursor: pointer;
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.task-checkbox:hover {
    border-color: var(--accent-primary);
}

.task-checkbox.checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.task-checkbox.checked::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    color: white;
}

@media (max-width: 900px) {
    .kanban-columns {
        flex-direction: column;
        align-items: center;
    }
}

/* Floating Action Button (FAB) */
.fab-add-task {
    position: fixed;
    bottom: 90px;
    /* Above the sidebar nav on mobile if needed, or higher */
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.fab-add-task:hover {
    transform: scale(1.1) rotate(90deg);
}

.fab-add-task:active {
    transform: scale(0.9);
}

/* Pulsing effect for the button */
.fab-pulse {
    animation: fab-pulse 2s infinite;
}

@keyframes fab-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}