.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.modern-task-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-task-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.task-card-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.task-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    flex: 1;
}

.task-status-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.badge-secondary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.task-card-body {
    padding: 16px 24px;
    flex: 1;
}

.task-card-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.task-card-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    word-wrap: break-word;
}

.task-card-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #f1f5f9;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    width: 100%;
    justify-content: center;
}

.btn-modern:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
    color: white;
}

.btn-modern svg {
    transition: transform 0.2s ease;
}

.btn-modern:hover svg {
    transform: translateX(2px);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    color: #64748b;
    font-size: 16px;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tasks-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .modern-task-card {
        border-radius: 12px;
    }

    .task-card-header {
        padding: 16px 20px 12px;
    }

    .task-card-title {
        font-size: 16px;
    }

    .task-card-body {
        padding: 12px 20px;
    }

    .task-card-footer {
        padding: 12px 20px 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .tasks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .tasks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.icon-btn-delete.modern {
    background: #fff;
    border: 1px solid #fee2e2;
    color: #ef4444;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.1);
}

.icon-btn-delete.modern:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.assignment-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid #f1f5f9;
}

.assignment-time svg {
    color: #64748b;
}