/* iService - Estilos Globais */

:root {
  --primary: #5d52ba;
  --primary-light: #7c6ed4;
  --secondary: #3b8dff;
  --background: #ffffff;
  --foreground: #1a1a1a;
  --card-bg: #f8f9fb;
  --border-color: #e0e0e6;
  --muted: #6b6b7b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(93, 82, 186, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(93, 82, 186, 0.35);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(93, 82, 186, 0.25);
  transition: all 0.1s ease;
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: #2a7dd7;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: transparent;
  border: none;
}

.btn-icon:hover {
  background-color: var(--card-bg);
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1rem;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.card-header {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.card-text {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Input */
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(93, 82, 186, 0.1);
}

.form-control::placeholder {
  color: var(--muted);
}

/* Header */
.header {
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  /* padding: 0.75rem 0; */
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 700;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 4rem;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.logo-img:hover {
  opacity: 0.9;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

/* Search Bar */
.search-container {
  flex: 1;
  max-width: 600px;
  margin: 0 2rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  background-color: var(--card-bg);
  font-family: 'Poppins', sans-serif;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-fluid {
  width: 100%;
  padding: 0 1rem;
}

/* Grid */
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.row-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Subcategorias */
.subcategory-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
}

.subcategory-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(93, 82, 186, 0.15);
  border-color: var(--primary) !important;
  background: linear-gradient(135deg, rgba(93, 82, 186, 0.03) 0%, rgba(93, 82, 186, 0.08) 100%);
}

.subcategory-btn:active {
  transform: translateY(-2px) scale(0.98);
}

/* Animação de entrada para subcategorias */
.subcategory-btn.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.col {
  display: flex;
  flex-direction: column;
}

/* Spacing */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.px-2 { padding: 0 1rem; }
.py-2 { padding: 1rem 0; }
.py-4 { padding: 2rem 0; }
.py-6 { padding: 3rem 0; }

/* Flex */
.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-center {
  justify-content: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Text */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fw-medium { font-weight: 500; }

.fs-sm { font-size: 0.85rem; }
.fs-base { font-size: 0.95rem; }
.fs-lg { font-size: 1.1rem; }

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-primary {
  background-color: rgba(93, 82, 186, 0.1);
  color: var(--primary);
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

/* Rating */
.rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.star {
  color: #fbbf24;
  font-size: 1rem;
}

.star.empty {
  color: var(--border-color);
}

/* Avatar */
.avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.avatar-lg {
  width: 4rem;
  height: 4rem;
}

.avatar-sm {
  width: 2rem;
  height: 2rem;
}

.avatar-status {
  position: relative;
}

.avatar-status::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--success);
  border: 2px solid white;
  border-radius: 50%;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 0;
  z-index: 50;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

.bottom-nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 1rem;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.7rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-item:hover {
  color: var(--primary);
  background-color: rgba(93, 82, 186, 0.05);
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 0 0 4px 4px;
}

.nav-item svg {
  width: 1.75rem;
  height: 1.75rem;
  transition: all 0.3s ease;
}

.nav-item.active svg {
  transform: scale(1.1);
}

/* Main Content */
main {
  padding-bottom: 6rem;
  min-height: calc(100vh - 4rem);
}

/* Responsive */
@media (max-width: 768px) {
  .row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .row-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }

  .search-container {
    max-width: 100%;
    margin: 0;
  }

  .header-container {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .row-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  .card {
    padding: 0.75rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

/* Transições de página */
.page-content {
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.page-content[data-transition="slide-out"] {
  animation: slideOutLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-content[data-transition="slide-in"] {
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animação para subcategorias ao aparecer */
.subcategory-btn {
  animation: slideInFromBottom 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.subcategory-btn:nth-child(1) { animation-delay: 0.05s; }
.subcategory-btn:nth-child(2) { animation-delay: 0.1s; }
.subcategory-btn:nth-child(3) { animation-delay: 0.15s; }
.subcategory-btn:nth-child(4) { animation-delay: 0.2s; }
.subcategory-btn:nth-child(5) { animation-delay: 0.25s; }
.subcategory-btn:nth-child(6) { animation-delay: 0.3s; }
.subcategory-btn:nth-child(7) { animation-delay: 0.35s; }
.subcategory-btn:nth-child(8) { animation-delay: 0.4s; }
.subcategory-btn:nth-child(9) { animation-delay: 0.45s; }
.subcategory-btn:nth-child(10) { animation-delay: 0.5s; }

/* Utility Classes */
.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: 0.5rem; }
.rounded-lg { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.cursor-pointer { cursor: pointer; }

.hidden { display: none !important; }
.visible { display: block !important; }

.overflow-hidden { overflow: hidden; }


/* Sidebar */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0);
  z-index: 99;
  transition: background-color 0.3s ease;
}

.sidebar-overlay.active {
  background-color: rgba(0, 0, 0, 0.5);
}

.sidebar {
  position: fixed;
  right: -400px;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background-color: white;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  overflow-y: auto;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
}

.sidebar.active {
  right: 0;
}

.close-sidebar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.close-sidebar:hover {
  background-color: var(--card-bg);
  color: var(--foreground);
}

.sidebar-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  object-fit: cover;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.sidebar-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--card-bg);
  border-radius: 0.75rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.sidebar-section {
  margin-bottom: 1.5rem;
}

.sidebar-section h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--muted);
  font-weight: 500;
}

.info-value {
  color: var(--foreground);
  font-weight: 600;
}

.sidebar-actions {
  position: sticky;
  bottom: 0;
  background-color: white;
  padding: 1rem 0 0 0;
  margin: 1.5rem -1.5rem 0 -1.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Responsive Sidebar */
@media (max-width: 480px) {
  .sidebar {
    max-width: 100%;
    right: -100%;
  }
}


/* Portfolio Gallery */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.portfolio-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-image:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(93, 82, 186, 0.2);
  border-color: var(--primary);
}

/* Modal para visualizar imagem em tamanho grande */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.image-modal.active {
  opacity: 1;
  pointer-events: all;
}

.image-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.image-modal-content img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.image-modal-close {
  position: absolute;
  top: -2rem;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.image-modal-close:hover {
  transform: rotate(90deg);
}

/* ===== ESTILOS PARA TELA DE BUSCA EM TEMPO REAL ===== */

/* Mapa com bordas arredondadas */
.map-container {
  border-radius: 0 0 1.5rem 1.5rem;
  overflow: hidden;
  position: relative;
}

/* Faixa informativa estilizada */
.estimate-card {
  background-color: white;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.estimate-card-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.estimate-title {
  flex: 1;
}

.estimate-title-main {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.estimate-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.estimate-time {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
}

.estimate-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.25rem 0 0 0;
}

/* Cards de profissionais melhorados */
.provider-option-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.provider-option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(93, 82, 186, 0.15);
  border-color: rgba(93, 82, 186, 0.3);
}

.provider-option-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(93, 82, 186, 0.03) 0%, rgba(93, 82, 186, 0.08) 100%);
  box-shadow: 0 4px 16px rgba(93, 82, 186, 0.2);
  transform: translateY(-2px);
}

.provider-option-card.selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
}

.provider-option-card input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.provider-option-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(93, 82, 186, 0.2);
}

.provider-option-card.selected .provider-option-avatar {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(93, 82, 186, 0.15);
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(93, 82, 186, 0.15);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(93, 82, 186, 0.08);
  }
}

.provider-option-info {
  flex: 1;
  min-width: 0;
}

.provider-option-name {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.25rem 0;
  color: var(--foreground);
}

.provider-option-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.provider-option-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.provider-option-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-left: auto;
  flex-shrink: 0;
}

/* Botão de escolher prestador melhorado */
.accept-provider-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(93, 82, 186, 0.25);
  position: relative;
  overflow: hidden;
}

.accept-provider-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(93, 82, 186, 0.35);
}

.accept-provider-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(93, 82, 186, 0.25);
}

.accept-provider-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.accept-provider-btn.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Animações suaves */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: var(--foreground);
  font-weight: 500;
  font-size: 1rem;
}

