/**
 * Home Page - Design Moderno
 * Portal do Cliente RP Info
 * Versão: 1.0
 */

/* ============================================
   HERO SECTION - BOAS-VINDAS
   ============================================ */
.home-hero-section {
  background: var(--gradient-primary);
  border-radius: 24px;
  padding: 40px 48px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(30, 64, 175, 0.25);
}

.home-hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.home-hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 40%;
  height: 150%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.home-hero-content {
  position: relative;
  z-index: 1;
}

.home-hero-greeting {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-hero-greeting i {
  font-size: 20px;
  animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-10deg); }
}

.home-hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.home-hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 600px;
  line-height: 1.6;
}

/* ============================================
   STAT CARDS - MÉTRICAS
   ============================================ */
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.home-stat-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

/* Stat cards clicáveis */
.stat-card-clickable {
  cursor: pointer;
  user-select: none;
}

.stat-card-clickable:active {
  transform: translateY(-2px) !important;
}

/* Estado de loading */
.stat-card-clickable.loading {
  opacity: 0.6;
  pointer-events: none;
}

.stat-card-clickable.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: stat-card-spin 0.8s linear infinite;
  z-index: 10;
}

@keyframes stat-card-spin {
  to {
    transform: rotate(360deg);
  }
}

.home-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.home-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.home-stat-card:hover::before {
  opacity: 1;
}

/* Cores específicas para cada card */
.home-stat-card.stat-artigos::before {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.home-stat-card.stat-artigos .stat-icon {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15),
    rgba(96, 165, 250, 0.1)
  );
  color: #3b82f6;
}

.home-stat-card.stat-faqs::before {
  background: linear-gradient(135deg, #8B5CF6, #A78BFA);
}

.home-stat-card.stat-faqs .stat-icon {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.15),
    rgba(167, 139, 250, 0.1)
  );
  color: #8B5CF6;
}

.home-stat-card.stat-implementacoes::before {
  background: linear-gradient(135deg, #16A34A, #22c55e);
}

.home-stat-card.stat-implementacoes .stat-icon {
  background: linear-gradient(
    135deg,
    rgba(22, 163, 74, 0.15),
    rgba(34, 197, 94, 0.1)
  );
  color: #16A34A;
}

.home-stat-card.stat-enrollments::before {
  background: linear-gradient(135deg, #1E40AF, #3B82F6);
}

.home-stat-card.stat-enrollments .stat-icon {
  background: linear-gradient(
    135deg,
    rgba(30, 64, 175, 0.15),
    rgba(59, 130, 246, 0.1)
  );
  color: #1E40AF;
}

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

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: transform 0.3s ease;
}

.home-stat-card:hover .stat-icon {
  transform: scale(1.1);
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

.stat-period {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
}

/* ============================================
   BANNER CAROUSEL MODERNO
   ============================================ */
.home-banner-wrapper {
  margin-bottom: 32px;
}

.home-carousel {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.home-carousel .carousel-item img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.home-carousel .carousel-caption {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    transparent 100%
  );
  padding: 40px 30px 30px;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: left;
}

.home-carousel .carousel-caption h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.home-carousel .carousel-caption h4 {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.9;
}

.home-carousel .carousel-control-prev,
.home-carousel .carousel-control-next {
  width: 56px;
  height: 56px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
  margin: 0 16px;
}

.home-carousel:hover .carousel-control-prev,
.home-carousel:hover .carousel-control-next {
  opacity: 1;
}

.home-carousel .carousel-control-prev:hover,
.home-carousel .carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.home-carousel .carousel-indicators {
  bottom: 16px;
  margin-bottom: 0;
}

.home-carousel .carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.home-carousel .carousel-indicators li.active {
  background: #ffffff;
  transform: scale(1.2);
}

/* ============================================
   SEÇÃO DE TREINAMENTOS EAD
   ============================================ */
.home-trainings-card {
  border: none !important;
  border-radius: 20px !important;
  overflow: hidden;
}

.home-trainings-card .card-header-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-light);
  background: transparent;
}

.home-trainings-card .header-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-trainings-card .header-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(147, 51, 234, 0.15),
    rgba(168, 85, 247, 0.1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-trainings-card .header-icon i {
  font-size: 28px;
  color: #9333ea;
}

.home-trainings-card .header-text .card-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
}

.home-trainings-card .card-subtitle-custom {
  font-size: 14px;
  color: var(--text-muted);
  margin: 4px 0 0 0;
}

.home-trainings-card .btn-ver-todos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: #9333ea;
  border: 2px solid #9333ea;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.home-trainings-card .btn-ver-todos:hover {
  background: #9333ea;
  color: #ffffff;
}

.home-trainings-card .card-body {
  padding: 24px 28px;
}

/* ============================================
   QUICK ACTIONS - AÇÕES RÁPIDAS
   ============================================ */
.home-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--azul-claro);
  color: var(--text-primary);
  text-decoration: none;
}

.quick-action-btn .action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.quick-action-btn.action-ticket .action-icon {
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.15),
    rgba(239, 68, 68, 0.1)
  );
  color: #dc2626;
}

.quick-action-btn.action-docs .action-icon {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15),
    rgba(96, 165, 250, 0.1)
  );
  color: #3b82f6;
}

.quick-action-btn.action-comunicados .action-icon {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.15),
    rgba(52, 211, 153, 0.1)
  );
  color: #10b981;
}

.quick-action-btn.action-visitas .action-icon {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.15),
    rgba(251, 191, 36, 0.1)
  );
  color: #f59e0b;
}

.quick-action-btn .action-text {
  font-weight: 600;
  font-size: 15px;
}

.quick-action-btn .action-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   PENDING CARDS - CARDS DE PENDÊNCIAS
   ============================================ */
.home-pending-section {
  margin-bottom: 32px;
}

.home-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-section-title i {
  font-size: 24px;
  color: var(--azul-primario);
}

.home-pending-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.pending-card-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pending-card-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--text-primary);
}

.pending-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.pending-card-btn:hover .pending-icon {
  transform: scale(1.08);
}

.pending-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pending-text {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.2;
}

.pending-counter {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

/* Cores específicas para cada tipo de pendência */
.pending-card-btn.pending-tickets .pending-icon {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.pending-card-btn.pending-tickets .pending-counter {
  color: var(--text-muted);
}

.pending-card-btn.pending-tickets:hover {
  border-color: rgba(220, 38, 38, 0.3);
  background: linear-gradient(
    135deg,
    var(--bg-card),
    rgba(220, 38, 38, 0.05)
  );
}

.pending-card-btn.pending-attendances .pending-icon {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.pending-card-btn.pending-attendances .pending-counter {
  color: var(--text-muted);
}

.pending-card-btn.pending-attendances:hover {
  border-color: rgba(14, 165, 233, 0.3);
  background: linear-gradient(
    135deg,
    var(--bg-card),
    rgba(14, 165, 233, 0.05)
  );
}

.pending-card-btn.pending-trainings .pending-icon {
  background: linear-gradient(90deg, #001f65, #001f65, #021133);
}

.pending-card-btn.pending-trainings .pending-counter {
  color: var(--text-muted);
}

.pending-card-btn.pending-trainings:hover {
  border-color: rgba(29, 32, 223, 0.432);
  background: linear-gradient(
    135deg,
    var(--bg-card),
    rgba(92, 120, 246, 0.05)
  );
}

.pending-card-btn.pending-informatives .pending-icon {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.pending-card-btn.pending-informatives .pending-counter {
  color: var(--text-muted);
}

.pending-card-btn.pending-informatives:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(
    135deg,
    var(--bg-card),
    rgba(139, 92, 246, 0.05)
  );
}

.pending-card-btn.pending-visits .pending-icon {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.pending-card-btn.pending-visits .pending-counter {
  color: var(--text-muted);
}

.pending-card-btn.pending-visits:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: linear-gradient(
    135deg,
    var(--bg-card),
    rgba(59, 130, 246, 0.05)
  );
}

.pending-card-btn.pending-docs .pending-icon {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
}

.pending-card-btn.pending-docs .pending-counter {
  color: var(--text-muted);
}

.pending-card-btn.pending-docs:hover {
  border-color: rgba(30, 64, 175, 0.3);
  background: linear-gradient(
    135deg,
    var(--bg-card),
    rgba(30, 64, 175, 0.05)
  );
}

.pending-card-btn.pending-deployments .pending-icon {
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
}

.pending-card-btn.pending-deployments .pending-counter {
  color: var(--text-muted);
}

.pending-card-btn.pending-deployments:hover {
  border-color: rgba(14, 165, 233, 0.3);
  background: linear-gradient(
    135deg,
    var(--bg-card),
    rgba(14, 165, 233, 0.05)
  );
}

/* Mensagem quando não há pendências */
.no-pending-message {
  background: var(--bg-card);
  border: 2px dashed var(--border-color);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
}

.no-pending-icon {
  font-size: 64px;
  color: var(--sucesso);
  margin-bottom: 16px;
  animation: pulse 2s ease-in-out infinite;
}

.no-pending-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.no-pending-subtext {
  font-size: 14px;
  color: var(--text-muted);
}

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

/* ============================================
   SECTION WELCOME (para usuários sem acesso)
   ============================================ */
.home-welcome-section {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.home-welcome-section h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.home-welcome-section h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-welcome-section small {
  display: block;
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 8px;
}

.home-welcome-section .subtext {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 24px auto 0;
  line-height: 1.7;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 1200px) {
  .home-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .home-hero-section {
    padding: 32px;
  }

  .home-hero-title {
    font-size: 26px;
  }

  .home-carousel .carousel-item img {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .home-stats-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-section {
    padding: 24px;
    border-radius: 20px;
  }

  .home-hero-title {
    font-size: 22px;
  }

  .home-hero-subtitle {
    font-size: 14px;
  }

  .stat-value {
    font-size: 28px;
  }

  .home-carousel .carousel-item img {
    height: 200px;
  }

  .home-carousel .carousel-caption h1 {
    font-size: 20px;
  }

  .home-carousel .carousel-caption h4 {
    font-size: 14px;
  }

  .home-quick-actions {
    grid-template-columns: 1fr;
  }

  .home-welcome-section {
    padding: 40px 24px;
  }

  .home-welcome-section h1 {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .home-hero-greeting {
    font-size: 12px;
  }

  .home-hero-title {
    font-size: 20px;
  }

  .home-stat-card {
    padding: 20px;
  }

  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .stat-value {
    font-size: 24px;
  }

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

  .home-trainings-card .btn-ver-todos {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   DARK MODE ADJUSTMENTS
   ============================================ */
[data-theme='dark'] .home-hero-section,
.dark-mode .home-hero-section,
body.dark .home-hero-section {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .home-stat-card:hover,
.dark-mode .home-stat-card:hover,
body.dark .home-stat-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

[data-theme='dark'] .home-carousel,
.dark-mode .home-carousel,
body.dark .home-carousel {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .quick-action-btn:hover,
.dark-mode .quick-action-btn:hover,
body.dark .quick-action-btn:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero-section {
  animation: fadeInUp 0.6s ease-out;
}

.home-stat-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.home-stat-card:nth-child(1) {
  animation-delay: 0.1s;
}
.home-stat-card:nth-child(2) {
  animation-delay: 0.2s;
}
.home-stat-card:nth-child(3) {
  animation-delay: 0.3s;
}
.home-stat-card:nth-child(4) {
  animation-delay: 0.4s;
}

.home-banner-wrapper {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.card-artigos-faqs {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.home-trainings-card {
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

/* ============================================
   FLOATING ACTION BUTTON - NOVO TICKET
   ============================================ */
.home-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0;
  background: linear-gradient(135deg, #DC2626, #ef4444);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 0;
  min-width: 60px;
  height: 60px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(220, 38, 38, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  overflow: hidden;
  animation: fabSlideIn 0.6s ease-out 0.8s both;
}

@keyframes fabSlideIn {
  from {
    opacity: 0;
    transform: translateY(100px) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  font-size: 26px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.home-fab-text {
  display: block;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding-right: 0;
}

.home-fab-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.3);
  animation: fabPulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes fabPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Hover: Expande o botão mostrando o texto */
.home-fab:hover {
  padding-right: 0;
  box-shadow: 0 8px 32px rgba(220, 38, 38, 0.5);
  transform: translateY(-2px);
  text-decoration: none;
  color: #ffffff;
}

.home-fab:hover .home-fab-icon {
  transform: rotate(-10deg) scale(1.1);
}

.home-fab:hover .home-fab-text {
  max-width: 150px;
  opacity: 1;
  padding-right: 24px;
}

.home-fab:hover .home-fab-pulse {
  animation: none;
  opacity: 0;
}

/* Active state */
.home-fab:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
}

/* Focus state para acessibilidade */
.home-fab:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3), 0 6px 24px rgba(220, 38, 38, 0.4);
}

/* Mobile responsivo */
@media (max-width: 768px) {
  .home-fab {
    bottom: 24px;
    right: 24px;
    min-width: 56px;
    height: 56px;
  }
  
  .home-fab-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  
  /* No mobile, não expande no hover */
  .home-fab:hover .home-fab-text {
    max-width: 0;
    opacity: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .home-fab {
    bottom: 20px;
    right: 20px;
    min-width: 52px;
    height: 52px;
  }
  
  .home-fab-icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
}

/* Dark Mode Support */
[data-theme='dark'] .home-fab,
.dark-mode .home-fab,
body.dark .home-fab {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .home-fab:hover,
.dark-mode .home-fab:hover,
body.dark .home-fab:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
