:root {
	--header-height: 80px;
	--footer-height: 100px;
}

body {
	background-color: #f8f9fa;
	height: 100vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-family: sans-serif;
	user-select: none;
}

/* HEADER */
.app-header {
	height: var(--header-height);
	background: white;
	border-bottom: 1px solid #dee2e6;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 15px;
	z-index: 10;
	position: relative; /* Necessário para a barra absoluta */
}

.timer-display {
	font-family: monospace;
	font-weight: bold;
	font-size: 1.6rem;
	color: #333;
}

/* BARRA DE PROGRESSO */
.progress-container {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 6px;
	background-color: #e9ecef;
}

.progress-fill {
	height: 100%;
	background-color: #0d6efd; /* Azul Bootstrap */
	width: 0%;
	transition: width 0.1s linear;
}

/* MAIN GRID */
.main-content {
	flex: 1;
	overflow-y: auto;
	padding: 15px;
	padding-bottom: calc(var(--footer-height) + 10px);
}

.mobile-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.section-btn {
	height: 80px;
	font-size: 1.1rem;
	font-weight: 800;
	text-transform: uppercase;
	border-radius: 12px;
	border: 2px solid #e9ecef;
	background: white;
	transition: 0.1s;
	position: relative;
	overflow: hidden;
}

.section-btn.active {
	background-color: #198754 !important;
	color: white !important;
	border-color: #198754 !important;
	box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.section-btn.queued {
	background-color: #ffc107 !important;
	color: black !important;
	border-color: #ffc107 !important;
	animation: pulse 1s infinite;
}

@keyframes pulse {
	0% { opacity: 1; }
	50% { opacity: 0.7; }
	100% { opacity: 1; }
}

/* FOOTER CONTROLS */
.app-footer {
	height: var(--footer-height);
	background: #212529;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	padding-bottom: env(safe-area-inset-bottom);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.control-btn {
	width: 55px;
	height: 55px;
	border-radius: 50%;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	transition: 0.2s;
	background: #343a40;
	color: white;
}

.control-btn:active { transform: scale(0.9); }

.btn-play-lg {
	width: 80px;
	height: 80px;
	font-size: 2.5rem;
	background: white;
	color: black;
	box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
	z-index: 30;
}

.loop-active {
	background-color: #0d6efd !important;
	color: white !important;
	border: 2px solid white;
}

.fade-active {
	background-color: #fd7e14 !important;
	animation: pulse 0.5s infinite;
}

/* MENU */
.song-item.active-song {
	background-color: #e7f1ff;
	color: #0d6efd;
	font-weight: bold;
	border-left: 5px solid #0d6efd;
}