// 🚛 Fleet Type Card Styles
.fleet-type-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;
  transition: all 0.3s ease;
  max-width: 600px;

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

  &:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
  }

  // ========================================
  // 📋 HEADER
  // ========================================
  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;

    .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);
        color: #8b5cf6;
        font-size: 20px;
      }

      .header-info {
        h3 {
          margin: 0;
          font-size: 20px;
          font-weight: 600;
          color: white;
          line-height: 1.2;
        }

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

    .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(34, 197, 94, 0.1);
        color: #16a34a;
        border: 1px solid rgba(34, 197, 94, 0.2);
      }

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

      &.trend-stable {
        background: rgba(107, 114, 128, 0.1);
        color: #6b7280;
        border: 1px solid rgba(107, 114, 128, 0.2);
      }
    }
  }

  // ========================================
  // 🚑 HELP SECTION
  // ========================================
  .help-section {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;

    .help-info {
      display: flex;
      align-items: center;
      gap: 10px;

      .help-icon {
        color: #ef4444;
        font-size: 16px;
        animation: pulse 2s infinite;
      }

      .help-text {
        font-size: 14px;
        font-weight: 500;
        color: #ef4444;
      }
    }
  }

  // ========================================
  // 🚛 FLEET TYPES GRID
  // ========================================
  .fleet-types-grid {
    display: grid;
    gap: 16px;

    .fleet-type-item {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      padding: 16px;
      transition: all 0.3s ease;
      position: relative;

      &:hover {
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        background: rgba(255, 255, 255, 0.08);
      }

      .fleet-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;

        .fleet-icon {
          width: 36px;
          height: 36px;
          border-radius: 8px;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 16px;
          color: white;

          &.icon-rental {
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
          }

          &.icon-corporate {
            background: linear-gradient(135deg, #8b5cf6, #7c3aed);
          }

          &.icon-aggregate {
            background: linear-gradient(135deg, #10b981, #059669);
          }

          &.icon-fixedRental {
            background: linear-gradient(135deg, #f59e0b, #d97706);
          }

          &.icon-fixedDaily {
            background: linear-gradient(135deg, #ef4444, #dc2626);
          }

          &.icon-other {
            background: linear-gradient(135deg, #6b7280, #4b5563);
          }
        }

        .fleet-info {
          flex: 1;

          h4 {
            margin: 0;
            font-size: 16px;
            font-weight: 600;
            color: white;
            line-height: 1.2;
          }

          .fleet-stats {
            display: flex;
            gap: 12px;
            margin-top: 4px;

            .routes-count,
            .volumes-count,
            .distance-count {
              font-size: 13px;
              color: rgba(255, 255, 255, 0.7);
              font-weight: 500;
            }

            .routes-count::after {
              content: ' •';
              margin-left: 4px;
              color: rgba(255, 255, 255, 0.4);
            }

            .volumes-count::after {
              content: ' •';
              margin-left: 4px;
              color: rgba(255, 255, 255, 0.4);
            }
          }
        }

        .fleet-percentage {
          font-size: 18px;
          font-weight: 700;
          color: white;
        }
      }

      .progress-bar {
        width: 100%;
        height: 6px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
        overflow: hidden;
        margin-bottom: 8px;

        .progress-fill {
          height: 100%;
          border-radius: 3px;
          transition: width 0.8s ease;

          &.fill-rental {
            background: linear-gradient(90deg, #3b82f6, #1d4ed8);
          }

          &.fill-corporate {
            background: linear-gradient(90deg, #8b5cf6, #7c3aed);
          }

          &.fill-aggregate {
            background: linear-gradient(90deg, #10b981, #059669);
          }

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

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

          &.fill-other {
            background: linear-gradient(90deg, #6b7280, #4b5563);
          }
        }
      }

      .ambulance-indicator {
        position: absolute;
        top: -8px;
        right: -8px;
        z-index: 10;

        .ambulance-badge {
          display: flex;
          align-items: center;
          gap: 6px;
          background: linear-gradient(135deg, #ef4444, #dc2626);
          color: white;
          padding: 6px 10px;
          border-radius: 16px;
          font-size: 12px;
          font-weight: 600;
          box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
          border: 1px solid rgba(255, 255, 255, 0.2);
          transition: all 0.3s ease;

          &:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
          }

          i {
            font-size: 14px;
            color: white;
            animation: pulse 2s infinite;
            filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
          }

          .ambulance-count {
            font-size: 14px;
            font-weight: 700;
            min-width: 16px;
            text-align: center;
          }

          .ambulance-label {
            font-size: 11px;
            font-weight: 500;
            opacity: 0.9;
            text-transform: lowercase;
          }
        }
      }
    }
  }
}

// ========================================
// 📱 RESPONSIVE
// ========================================
@media (max-width: 768px) {
  .fleet-type-card {
    padding: 20px;

    .card-header {
      .header-left {
        gap: 12px;

        .icon-container {
          width: 40px;
          height: 40px;
          font-size: 18px;
        }

        .header-info {
          h3 {
            font-size: 18px;
          }

          .total-info {
            font-size: 13px;
          }
        }
      }

      .trend-indicator {
        padding: 6px 10px;
        font-size: 13px;
      }
    }

    .fleet-types-grid {
      gap: 12px;

      .fleet-type-item {
        padding: 14px;

        .fleet-header {
          gap: 10px;

          .fleet-icon {
            width: 32px;
            height: 32px;
            font-size: 14px;
          }

          .fleet-info {
            h4 {
              font-size: 15px;
            }

            .fleet-stats {
              gap: 8px;

              .routes-count,
              .volumes-count,
              .distance-count {
                font-size: 12px;
              }
            }
          }

          .fleet-percentage {
            font-size: 16px;
          }
        }

        .ambulance-indicator {
          top: -6px;
          right: -6px;

          .ambulance-badge {
            padding: 4px 8px;
            gap: 4px;

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

            .ambulance-count {
              font-size: 12px;
            }

            .ambulance-label {
              font-size: 10px;
            }
          }
        }
      }
    }
  }
}

// ========================================
// 🎨 ANIMATIONS
// ========================================
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

// Animação de entrada
.fleet-type-card {
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
