.volumes-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 16px;
  padding: 24px;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;

  // Efeito de brilho sutil
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  }

  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;

    .header-left {
      display: flex;
      align-items: center;
      gap: 16px;

      .icon-container {
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);

        i {
          font-size: 24px;
          color: #10b981;
        }
      }

      .header-info {
        h3 {
          font-size: 18px;
          font-weight: 600;
          margin: 0 0 4px 0;
          color: white;
        }

        .total-volumes {
          font-size: 14px;
          color: rgba(255, 255, 255, 0.7);
          margin: 0;
        }
      }
    }

    .trend-indicator {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 8px 12px;
      border-radius: 20px;
      font-size: 14px;
      font-weight: 600;

      &.trend-up {
        background: rgba(16, 185, 129, 0.2);
        color: #10b981;
        border: 1px solid rgba(16, 185, 129, 0.3);
      }

      &.trend-down {
        background: rgba(239, 68, 68, 0.2);
        color: #ef4444;
        border: 1px solid rgba(239, 68, 68, 0.3);
      }

      &.trend-stable {
        background: rgba(156, 163, 175, 0.2);
        color: #9ca3af;
        border: 1px solid rgba(156, 163, 175, 0.3);
      }

      i {
        font-size: 12px;
      }
    }
  }

  .metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; // ✨ NOVO: 4 colunas para incluir Prioridade e Help
    gap: 20px; // ✨ Reduzir gap para acomodar 4 colunas
    margin-bottom: 32px;

    .metric-item {
      text-align: left;

      label {
        display: block;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 8px;
        font-weight: 500;
      }

      .metric-value {
        font-size: 32px;
        font-weight: 700;
        color: white;
        line-height: 1;
      }
    }
  }

  .status-section {
    display: flex;
    flex-direction: column;
    gap: 20px;

    .status-item {
      .status-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;

        label {
          font-size: 14px;
          font-weight: 500;
          color: rgba(255, 255, 255, 0.8);
        }

        .status-value {
          font-size: 16px;
          font-weight: 600;
          color: white;
        }
      }

      .status-bar {
        height: 8px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        overflow: hidden;
        position: relative;

        .status-fill {
          height: 100%;
          border-radius: 4px;
          transition: width 0.8s ease-in-out;
          position: relative;

          // Efeito de brilho na barra
          &::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            animation: shimmer 2s infinite;
          }
        }
      }

      // Cores específicas para cada status
      &.concluded .status-fill {
        background: linear-gradient(90deg, #10b981, #059669);
      }

      &.active .status-fill {
        background: linear-gradient(90deg, #3b82f6, #2563eb);
      }

      &.pending .status-fill {
        background: linear-gradient(90deg, #f59e0b, #d97706);
      }

      &.delayed .status-fill {
        background: linear-gradient(90deg, #ef4444, #dc2626);
      }
    }
  }
}

// Animação de brilho
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

// Responsividade
@media (max-width: 768px) {
  .volumes-card {
    padding: 20px;

    .card-header {
      flex-direction: column;
      gap: 16px;
      align-items: flex-start;

      .header-left {
        width: 100%;
      }

      .trend-indicator {
        align-self: flex-end;
      }
    }

    .metrics-row {
      grid-template-columns: 1fr;
      gap: 16px;
      margin-bottom: 24px;

      .metric-item .metric-value {
        font-size: 28px;
      }
    }

    .status-section {
      gap: 16px;
    }
  }
}

// ✨ NOVO: Estilos aprimorados para campo de prioridade
.priority-icon {
  color: #f50bb3;
  margin-right: 6px;
  font-size: 12px;
}

.priority-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  
  .priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f50bed 0%, #e967cd 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    
    i {
      font-size: 8px;
      animation: flicker 2s infinite alternate;
    }
    
    @keyframes flicker {
      0% { opacity: 1; }
      100% { opacity: 0.7; }
    }
  }
  
  .priority-count {
    font-size: 24px;
    font-weight: 700;
    color: #de0bf5;
    line-height: 1;
  }
}

// ✨ NOVO: Estilos aprimorados para campo de help
.help-icon {
  color: #ef4444;
  margin-right: 6px;
  font-size: 12px;
}

.help-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  
  .help-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    
    i {
      font-size: 8px;
      animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.1); }
    }
  }
  
  .help-count {
    font-size: 24px;
    font-weight: 700;
    color: #ef4444;
    line-height: 1;
  }
}

// ✨ NOVO: Estilos para breakdown por tipo de rota
.status-fill-segmented {
  display: flex;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  
  .segment {
    height: 100%;
    transition: all 0.3s ease;
    
    &.first-mile {
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }
    
    &.line-haul {
      background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    }
    
    &.last-mile {
      background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }
    
    &.custom {
      background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    }
    
    &:hover {
      filter: brightness(1.1);
      transform: scaleY(1.05);
    }
  }
}

.type-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  
  .type-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #6b7280;
    
    .type-color {
      width: 8px;
      height: 8px;
      border-radius: 2px;
      
      &.first-mile {
        background: #10b981;
      }
      
      &.line-haul {
        background: #3b82f6;
      }
      
      &.last-mile {
        background: #f59e0b;
      }
      
      &.custom {
        background: #8b5cf6;
      }
    }
    
    .type-label {
      font-weight: 500;
    }
    
    .type-count {
      font-weight: 600;
      color: #374151;
    }
  }
}

// Tema escuro aprimorado
@media (prefers-color-scheme: dark) {
  .volumes-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: rgba(255, 255, 255, 0.05);
  }
  
  .type-breakdown {
    border-top-color: rgba(255, 255, 255, 0.1);
    
    .type-item {
      color: #9ca3af;
      
      .type-count {
        color: #d1d5db;
      }
    }
  }
  
  // ✨ NOVO: Estilos para badges no tema escuro
  .priority-badge, .help-badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .priority-icon, .help-icon {
    filter: brightness(1.2);
  }
}
