/* ========================================
   PULL TO REFRESH - INDICADOR VISUAL
   ======================================== */

.pull-to-refresh-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0) 100%);
  opacity: 0;
  transition: height 0.2s ease-out, opacity 0.2s ease-out;
  z-index: 100;
}

.pull-to-refresh-indicator.ready {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 100%);
}

.pull-to-refresh-indicator.refreshing {
  transition: height 0.3s ease-out;
}

.pull-refresh-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.pull-refresh-icon .refresh-icon {
  width: 24px;
  height: 24px;
  color: #2563eb;
  transition: transform 0.2s ease-out;
}

.pull-to-refresh-indicator.ready .refresh-icon {
  color: #1d4ed8;
}

.pull-refresh-text {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pull-to-refresh-indicator.ready .pull-refresh-text {
  color: #2563eb;
  font-weight: 600;
}

/* Animação de spin para quando estiver carregando */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Ajustar posição do main para acomodar o indicador */
main.cliente-main {
  position: relative;
}
