@charset 'UTF-8';

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: var(--primary-font-family);
}

html {
	scroll-behavior: smooth;
}

body {
	width: 100vw;
	min-height: 100dvh;
	line-height: 1.5;
	background-color: var(--secondary-background-color);
	color: var(--primary-text-color);
	overflow-wrap: break-word;
	transition: var(--color-transition);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas {
	max-width: 100%;
	display: block;
}

/* Controle deslizante */
input[type="range"],
input[type="range"]::-webkit-slider-thumb {
	appearance: none;
	-webkit-appearance: none;
}

input[type="range"]::-moz-range-thumb {
	appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
	width: var(--slider-thumb-size);
	height: var(--slider-thumb-size);
	background-color: var(--active-track-color);
	border: none;
	border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
	width: var(--slider-thumb-size);
	height: var(--slider-thumb-size);
	background-color: var(--active-track-color);
	border: none;
	border-radius: 50%;
}

input[type="range"] {
	width: 100%;
	height: 5px;
	background-image: linear-gradient(to right, var(--active-track-color) 0%, var(--inactive-track-color) 0%);
	border-radius: 15px;
}

.icon {
	width: 1em;
	height: 1em;
	vertical-align: middle;
	pointer-events: none;
	user-select: none;
}

/* Fotos */
.photo {
	user-select: none;
}

/* Estilo padrão para o botão de tema claro e escuro */
#theme-color-button.default {
	width: 50px;
	height: 50px;
	position: fixed;
	bottom: 15px;
	right: 15px;
	z-index: 100;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: var(--primary-text-color);
	color: var(--primary-background-color);
	border: none;
	border-radius: 50%;
}

#theme-color-button.default .icon {
	width: 20px;
	height: 20px;
}

/* Atualização */
.update-banner {
	padding: 15px;
	position: fixed;
	bottom: 20px;
	right: 20px;
	background-color: #3498DB;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
	color: var(--primary-text-color);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	border-radius: 8px;
	z-index: 9999;
}

.update-banner button {
	padding: 10px;
	width: 100%;
	background-color: #3846DE;
	color: var(--primary-text-color);
	border: none;
	border-radius: 24px;
}

/* Mensagem temporária */
.toast-container {
	position: fixed;
	bottom: 20px;
	left: 50%;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transform: translateX(-50%);
}

.toast {
	padding: 12px 24px;
	font-size: 0.9rem;
	background-color: var(--secondary-background-color);
	color: var(--primary-text-color);
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	transition: background-color 0.3s ease, color 0.3s ease;
	animation: slide-up 0.3s ease-out, fade-out 0.3s ease-in 2.7s forwards;
}

.toast.success {
	background-color: var(--success-background-color);
}

.toast.error {
	background-color: var(--error-background-color);
}

/* Leitores de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Melhora o foco de acessibilidade para navegação via teclado (Tab) */
:focus-visible {
  outline: 3px solid var(--primary-accent-color);
  outline-offset: 2px;
}

/* Seleção de texto */
::selection {
	background-color: var(--primary-accent-color);
	color: var(--primary-background-color);
}

/* Remove animações para usuários que ativaram "reduzir movimento" no sistema */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}