/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* PWA e Mobile Fullscreen Styles */
@media (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    height: 100vh;
    height: -webkit-fill-available;
  }
}

/* iOS Safari específico */
@supports (-webkit-touch-callout: none) {
  .standalone {
    height: 100vh;
    height: -webkit-fill-available;
    padding-top: env(safe-area-inset-top);
  }
}

/* Esconde scrollbars quando em fullscreen */
body:fullscreen {
  overflow: hidden;
}

body:-webkit-full-screen {
  overflow: hidden;
}

body:-moz-full-screen {
  overflow: hidden;
}

body:-ms-fullscreen {
  overflow: hidden;
}

/* Botão de toggle fullscreen */
.fullscreen-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  transition: all 0.3s ease;
}

.fullscreen-toggle:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

/* Flash Messages Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(100%) scale(0.95);
  }
}

.animate-fade-in {
  animation: fade-in 0.4s ease-out forwards;
}

.flash-message-dismissing {
  animation: fade-out 0.3s ease-in forwards;
}

/* Flash Messages styling */
.flash-message {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  min-width: 280px;
}