/* Atlas Demo Kit — estilos da camada de demonstração (mobile-first) */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

.atlas-demo-faixa {
	background: #ed544a;
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
	padding: 8px 14px;
	text-align: center;
}

.atlas-demo-faixa--dashboard {
	background: #7a1f1f;
}

/* ---------- Hub ---------- */

.atlas-demo-hub {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 420px;
	margin: 24px auto;
	padding: 0 16px;
}

.atlas-demo-hub__botao {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #1a2b4c;
	color: #fff;
	text-decoration: none;
	padding: 18px 20px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	transition: transform .15s ease, opacity .15s ease;
}

.atlas-demo-hub__botao:hover,
.atlas-demo-hub__botao:focus {
	opacity: .9;
	transform: translateY(-2px);
	color: #fff;
}

.atlas-demo-hub__icone {
	font-size: 24px;
}

.atlas-demo-voltar {
	position: fixed;
	bottom: 14px;
	left: 14px;
	z-index: 9999;
	background: #1a2b4c;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	padding: 8px 14px;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* ---------- Botão "Simular chegada novo pedido" ---------- */

.atlas-demo-simular-wrap {
	position: fixed !important;
	right: 14px !important;
	bottom: 14px !important;
	z-index: 9998 !important;
}

.atlas-demo-simular-btn {
	position: relative !important;
	background: #e0a30a !important;
	color: #1a2b4c !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 12px 18px 12px 46px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	box-shadow: 0 2px 10px rgba(0,0,0,.3) !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	transition: opacity .25s ease !important;
}

/* Anel de progresso — fica encostado à esquerda do texto, dentro do
   próprio botão. Gira -90deg pra começar do topo (12h), como um
   cronômetro visual do cooldown. */
.atlas-demo-simular-anel {
	position: absolute !important;
	left: -3px !important;
	top: 50% !important;
	transform: translateY(-50%) rotate(-90deg) !important;
	pointer-events: none !important;
}

.atlas-demo-simular-anel__trilho {
	fill: none !important;
	stroke: rgba(26,43,76,.18) !important;
	stroke-width: 3 !important;
}

.atlas-demo-simular-anel__progresso {
	fill: none !important;
	stroke: #1a2b4c !important;
	stroke-width: 3 !important;
	stroke-linecap: round !important;
}

.atlas-demo-simular-btn__badge {
	font-size: 10px !important;
	background: #1a2b4c !important;
	color: #fff !important;
	padding: 2px 6px !important;
	border-radius: 999px !important;
	text-transform: uppercase !important;
	letter-spacing: .03em !important;
}

/* Em cooldown: esmaecido + cursor bloqueado. O anel (sempre visível)
   é quem comunica o tempo restante, o esmaecimento reforça "não clique". */
.atlas-demo-simular-btn--cooldown {
	opacity: .55 !important;
	cursor: not-allowed !important;
}

/* Limite de 5 simulações atingido — estado permanente até F5. */
.atlas-demo-simular-btn--esgotado {
	opacity: .4 !important;
	cursor: not-allowed !important;
	background: #9a9a9a !important;
	color: #333 !important;
}

.atlas-demo-simular-btn--esgotado .atlas-demo-simular-btn__badge {
	background: #333 !important;
}

.atlas-demo-simular-btn--esgotado .atlas-demo-simular-anel__progresso {
	stroke: #333 !important;
}

.atlas-demo-toast {
	position: fixed;
	right: 14px;
	bottom: 68px;
	z-index: 9998;
	background: #1a2b4c;
	color: #fff;
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 8px;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
}

.atlas-demo-toast--visivel {
	opacity: 1;
	transform: translateY(0);
}

/* ---------- Tutorial ---------- */

.atlas-demo-tutorial__botao {
	position: fixed;
	left: 14px;
	bottom: 14px;
	z-index: 9997;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #1a2b4c;
	color: #fff;
	border: none;
	font-size: 18px;
	font-weight: 700;
	box-shadow: 0 2px 10px rgba(0,0,0,.3);
	cursor: pointer;
}

.atlas-demo-tutorial__painel {
	position: fixed;
	left: 14px;
	right: 14px;
	bottom: 64px;
	z-index: 9997;
	max-width: 340px;
	margin: 0 auto;
	background: #fff;
	color: #1a1a1a;
	border-radius: 12px;
	box-shadow: 0 6px 24px rgba(0,0,0,.3);
	overflow: hidden;
	font-size: 14px;
}

.atlas-demo-tutorial__cabecalho {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #1a2b4c;
	color: #fff;
	padding: 10px 14px;
	font-weight: 600;
	font-size: 13px;
}

.atlas-demo-tutorial__fechar {
	background: none;
	border: none;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.atlas-demo-tutorial__corpo {
	padding: 14px;
}

.atlas-demo-tutorial__titulo {
	font-weight: 700;
	margin-bottom: 6px;
}

.atlas-demo-tutorial__texto {
	line-height: 1.5;
	color: #333;
}

.atlas-demo-tutorial__rodape {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	border-top: 1px solid #eee;
}

.atlas-demo-tutorial__rodape button {
	background: none;
	border: none;
	color: #1a2b4c;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.atlas-demo-tutorial__rodape button:disabled {
	opacity: .35;
	cursor: default;
}

.atlas-demo-tutorial__contador {
	font-size: 12px;
	color: #888;
}

/* Destaque do elemento que o tutorial está explicando */
.atlas-demo-highlight {
	outline: 3px solid #e0a30a !important;
	outline-offset: 3px !important;
	border-radius: 6px;
	animation: atlas-demo-pulso 1.4s ease-in-out infinite;
}

@keyframes atlas-demo-pulso {
	0%, 100% { outline-color: #e0a30a; }
	50% { outline-color: #f5c451; }
}

@media (min-width: 700px) {
	.atlas-demo-hub {
		flex-direction: row;
	}
}

/* ---------- Header / Footer (mobile-first, se adapta em telas maiores) ---------- */

.atlas-demo-header {
	background: #0d0d0d;
	color: #fff;
	padding: 20px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
}

.atlas-demo-header__marca {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.atlas-demo-header__logo {
	max-width: 110px;
	height: auto;
	border-radius: 50%;
}

.atlas-demo-header__nome {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.atlas-demo-header__nav {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
}

.atlas-demo-header__nav a {
	color: #e0e04a;
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
}

.atlas-demo-header__nav a:hover {
	text-decoration: underline;
}

.atlas-demo-header__status {
	font-size: 13px;
}

.atlas-demo-header__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	color: #ddd;
}

.atlas-demo-footer {
	background: #0d0d0d;
	color: #fff;
	padding: 24px 16px;
	max-width: 480px;
	margin: 0 auto;
	text-align: left;
	font-size: 14px;
	font-family: 'Poppins', sans-serif;
}

.atlas-demo-footer__frase {
	color: #ccc;
	line-height: 1.6;
	margin-bottom: 18px;
}

.atlas-demo-footer__bloco {
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.atlas-demo-footer__redes {
	display: flex;
	gap: 14px;
}

.atlas-demo-footer__redes a {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

.atlas-demo-footer hr {
	border: none;
	border-top: 1px solid #333;
	margin: 18px 0;
}

.atlas-demo-footer__creditos {
	text-align: center;
	font-weight: 700;
}

.atlas-demo-footer__creditos span {
	color: #e0a30a;
}

.atlas-demo-footer__creditos-link {
	text-decoration: none;
	color: inherit;
	font-weight: inherit;
}

.atlas-demo-footer__copy {
	text-align: center;
	color: #999;
	font-size: 12px;
}

@media (min-width: 700px) {
	.atlas-demo-header {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
		padding: 16px 32px;
	}
	.atlas-demo-header__marca {
		flex-direction: row;
	}
}
