/* animations.css
 * Estilos adicionais para animações e efeitos visuais do sistema
 */

/* Efeito de ondulação (ripple) para botões */
.btn {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  animation: ripple-animation 0.6s;
  opacity: 0;
}

@keyframes ripple-animation {
  from {
    transform: scale(0);
    opacity: 1;
  }
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* Efeito de entrada suave para páginas */
.page-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

/* Animações de notificações toast - REMOVIDO
 * Agora usando toast-notifications.css com #toast-container
 */

/* Efeitos de hover em cards e elementos clicáveis */
.card,
.clickable-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.clickable-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Efeito de input flutuante */
.form-group.floating-label {
  position: relative;
  margin-bottom: 25px;
}

.form-group.floating-label label {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  transition: all 0.2s ease;
  pointer-events: none;
  opacity: 0.7;
  margin: 0;
}

.form-group.floating-label.focused label {
  top: 0;
  font-size: 12px;
  transform: translateY(-50%);
  background-color: white;
  padding: 0 5px;
  opacity: 1;
  color: var(--primary-color);
}

.form-group.floating-label input,
.form-group.floating-label textarea,
.form-group.floating-label select {
  padding: 12px 15px;
  height: auto;
}

/* Animações para o menu */
.sidebar {
  transition: left 0.3s ease, width 0.3s ease;
}

.main-content {
  transition: margin-left 0.3s ease, width 0.3s ease;
}

.menu-link .menu-arrow i {
  transition: transform 0.3s ease;
}

.menu-link[aria-expanded="true"] .menu-arrow i {
  transform: rotate(-180deg);
}

.submenu {
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.submenu.open {
  opacity: 1;
}

/* Skeletons para carregamento */
.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.skeleton-box {
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Vista previa de imagem */
.image-preview {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 10px auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview .upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.image-preview:hover .upload-overlay {
  opacity: 1;
}

.image-preview .upload-icon {
  color: white;
  font-size: 24px;
}

/* Widget de aniversáriantes do dia */
.birthday-widget {
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.birthday-widget-header {
  background-color: var(--primary-color);
  color: white;
  padding: 15px;
  display: flex;
  align-items: center;
}

.birthday-widget-header .icon {
  font-size: 24px;
  margin-right: 10px;
}

.birthday-widget-body {
  padding: 15px;
}

.birthday-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.birthday-item:last-child {
  border-bottom: none;
}

.birthday-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.birthday-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.birthday-info {
  flex-grow: 1;
}

.birthday-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.birthday-date {
  font-size: 12px;
  color: #999;
}

/* Animações para dashboard */
.counter-box {
  position: relative;
  overflow: hidden;
  background-color: white;
  border-radius: 6px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.counter-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.counter-icon {
  position: absolute;
  right: -15px;
  top: -15px;
  font-size: 80px;
  color: rgba(0, 0, 0, 0.05);
  transform: rotate(15deg);
}

.counter-value {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.counter-label {
  font-size: 14px;
  color: #777;
}

.counter-trend {
  display: flex;
  align-items: center;
  font-size: 12px;
  margin-top: 10px;
}

.counter-trend.up {
  color: var(--secondary-color);
}

.counter-trend.down {
  color: var(--danger-color);
}

.counter-trend i {
  margin-right: 5px;
}