/**
 * Cabeçalho Aprimorado para Orçamento Individual
 * Estilo crm-welcome-hero
 */

/* Header Elementor com fundo preto nas páginas de orçamento */
.elementor-location-header {
    background-color: #000000 !important;
}

.elementor-764.elementor-location-header {
    background-color: #000000 !important;
}

.elementor-location-header .elementor-section,
.elementor-location-header .elementor-container {
    background-color: transparent !important;
}

/* Sombras nos containers de itens e resumo */
.crm-card.p-4,
.lg\:col-span-2.crm-card.p-4 {
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Valorizar botão Voltar ao CRM */
.crm-action-bar a,
.crm-action-bar button {
    padding: 14px 32px !important;
    font-size: 13px !important; /* Reduzido de 16px para 13px */
    font-weight: 600 !important;
    min-width: 200px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.crm-action-bar a:hover,
.crm-action-bar button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Cabeçalho do Orçamento - Estilo Welcome Hero */
.quote-enhanced-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    border-radius: 16px;
    padding: 40px;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

/* Botão Voltar ao CRM no cabeçalho */
.quote-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.quote-back-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-4px);
    color: white;
    text-decoration: none;
}

.quote-back-button svg {
    flex-shrink: 0;
}

.quote-enhanced-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.quote-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.quote-header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.quote-header-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.quote-header-icon svg {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.quote-header-text h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    color: white;
}


.quote-header-right {
    text-align: right;
}


.quote-header-value {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.quote-header-value-label {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline de Status */
.quote-header-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.timeline-step.clickable {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.timeline-step.clickable:hover {
    transform: scale(1.05);
}

.timeline-step.clickable:hover .timeline-dot {
    background: rgba(99, 102, 241, 0.5);
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.timeline-step.loading .timeline-dot {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.timeline-step.status-changed .timeline-dot {
    animation: statusChanged 0.6s ease;
}

@keyframes statusChanged {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); box-shadow: 0 0 20px rgba(34, 197, 94, 0.8); }
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.timeline-step.active .timeline-dot {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.timeline-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.timeline-step.active .timeline-label {
    color: white;
    font-weight: 600;
}

.timeline-line {
    width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.timeline-line.active {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

/* Tags/Etiquetas com Expansão Horizontal */
.quote-header-tags {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
}

.quote-tag-selector {
    display: none !important; /* Removido - não é mais necessário */
}

.quote-tag-selector[data-expanded="true"] {
    max-width: 400px;
}

.tag-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    opacity: 0.5;
    transform: scale(0.9);
    line-height: 1;
}

.tag-option svg {
    color: currentColor;
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.tag-option span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Estado ativo */
.tag-option.active {
    opacity: 1;
    transform: scale(1);
    color: white;
}

.tag-option.tag-vip.active {
    background: rgba(234, 179, 8, 0.3);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.2);
}

.tag-option.tag-urgente.active {
    background: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.tag-option.tag-normal.active {
    background: rgba(148, 163, 184, 0.3);
    box-shadow: 0 0 15px rgba(148, 163, 184, 0.2);
}

/* Quando expandido, mostrar todas as opções */
.quote-tag-selector[data-expanded="true"] .tag-option {
    opacity: 1;
    transform: scale(1);
    color: white;
}

/* Hover apenas quando expandido */
.quote-tag-selector[data-expanded="true"] .tag-option:hover {
    transform: scale(1.05);
}

.quote-tag-selector[data-expanded="true"] .tag-option.tag-vip:hover {
    background: rgba(234, 179, 8, 0.2);
}

.quote-tag-selector[data-expanded="true"] .tag-option.tag-urgente:hover {
    background: rgba(239, 68, 68, 0.2);
}

.quote-tag-selector[data-expanded="true"] .tag-option.tag-normal:hover {
    background: rgba(148, 163, 184, 0.2);
}

/* Quando fechado, esconder span dos inativos */
.quote-tag-selector[data-expanded="false"] .tag-option:not(.active) {
    width: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
}

.quote-tag-selector[data-expanded="false"] .tag-option:not(.active) span {
    display: none;
}

/* Responsivo */
@media (max-width: 768px) {
    .quote-enhanced-header {
        padding: 24px 20px;
    }
    
    .quote-header-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .quote-header-left {
        flex-direction: column;
        text-align: center;
    }
    
    .quote-header-text h1 {
        font-size: 24px;
    }
    
    .quote-header-right {
        text-align: center;
    }
    
    .quote-header-timeline {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .timeline-line {
        width: 40px;
    }
    
    .timeline-label {
        font-size: 11px;
    }
}
