/**
 * Chat Task Creator Styles
 * Styles for task proposal cards in chat messages
 */

.chat-task-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 1rem 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.chat-task-card.task-created {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.chat-task-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.chat-task-header i {
    font-size: 1rem;
}

.chat-task-priority {
    margin-left: auto;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.chat-task-priority.high {
    background: #fef2f2;
    color: #dc2626;
}

.chat-task-priority.medium {
    background: #fefce8;
    color: #ca8a04;
}

.chat-task-priority.low {
    background: #f0fdf4;
    color: #16a34a;
}

.chat-task-content {
    padding: 1rem;
}

.chat-task-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.chat-task-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.chat-task-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.chat-task-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #475569;
}

.chat-task-detail i {
    color: #3b82f6;
    width: 16px;
    text-align: center;
}

.chat-task-actions {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.chat-task-create-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-task-create-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.chat-task-create-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.chat-task-edit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-task-edit-btn:hover {
    background: #f8fafc;
    color: #3b82f6;
    border-color: #3b82f6;
}

.chat-task-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #16a34a;
    font-weight: 600;
    font-size: 0.9rem;
}

.chat-task-success i {
    font-size: 1.1rem;
}

.chat-task-success a {
    color: #3b82f6;
    text-decoration: none;
    margin-left: 0.5rem;
}

.chat-task-success a:hover {
    text-decoration: underline;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .chat-task-card {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border-color: #334155;
    }
    
    .chat-task-card.task-created {
        background: linear-gradient(135deg, #14532d 0%, #166534 100%);
        border-color: #22c55e;
    }
    
    .chat-task-content {
        color: #e2e8f0;
    }
    
    .chat-task-title {
        color: #f1f5f9;
    }
    
    .chat-task-description {
        color: #94a3b8;
    }
    
    .chat-task-detail {
        color: #cbd5e1;
    }
    
    .chat-task-actions {
        background: #1e293b;
        border-color: #334155;
    }
    
    .chat-task-edit-btn {
        background: #334155;
        color: #cbd5e1;
        border-color: #475569;
    }
}
