/* 🍺 Root Beer Theme — Global Styles */
:root {
	--primary-bg: #3a1f0b;
	--secondary-bg: #1e0e04;
	--tertiary-bg: #5c2f0d;
	--card-bg: #2e1506;
	--text-primary: #f2e9dc;
	--text-secondary: #ffe4b5;
	--text-accent: #fcbf49;
	--text-muted: #a57c4a;
	--border-color: #7b3f00;
	--shadow: 0 0 10px rgba(0, 0, 0, 0.5);
	--transition: all 0.3s ease;
}

* {
	box-sizing: border-box;
}

/* Utility Classes */
.hidden {
	display: none !important;
}

.loading-indicator {
	text-align: center;
	padding: 2rem;
	color: var(--text-muted);
}

/* Dynamic Logo System - Responsive logo containers */
.logo-container {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.logo-container.logo-sm {
	width: 50px;
	height: 40px;
}

.logo-container.logo-md {
	width: 70px;
	height: 60px;
}

.logo-container.logo-lg {
	width: 100px;
	height: 80px;
}

.logo-container.logo-xl {
	width: 140px;
	height: 120px;
}

/* Universal logo styling for consistent appearance */
.brand-logo-universal {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center;

	/* Subtle background for better contrast */
	background: rgba(255, 255, 255, 0.05);
	border-radius: 6px;
	padding: 4px;

	/* Smooth transitions */
	transition: var(--transition);

	/* Border styling */
	border: 1px solid rgba(255, 228, 181, 0.2);
}

.brand-logo-universal:hover {
	transform: scale(1.1);
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--text-accent);
	box-shadow: 0 4px 12px rgba(252, 191, 73, 0.2);
}

/* Specific adaptations for different image formats */
.brand-logo-universal.svg-logo {
	/* SVGs usually scale better with less padding */
	padding: 2px;
}

.brand-logo-universal.png-logo,
.brand-logo-universal.jpg-logo {
	/* Raster images might need more padding */
	padding: 6px;
}

.brand-logo-universal.webp-logo {
	/* WebP images handling */
	padding: 4px;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
	color: var(--text-primary);
	margin: 0;
	padding: 0;
	min-height: 100vh;
	line-height: 1.6;
	font-size: 1.05rem;
	display: flex;
	flex-direction: column;
}

/* Typography */
h1,
h2 {
	color: var(--text-secondary);
	text-align: center;
	font-weight: 700;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
	margin: 0 0 1.5rem;
}

h3 {
	font-size: 1.2rem;
	color: var(--text-secondary);
	margin: 0;
}

h4 {
	font-weight: normal;
	color: var(--text-muted);
	margin: 0.2rem 0 0;
}

a {
	color: var(--text-accent);
	text-decoration: none;
	font-weight: bold;
	transition: var(--transition);
}

a:hover {
	text-decoration: underline;
	color: var(--text-secondary);
}

/* Buttons */
button,
.btn {
	background-color: var(--tertiary-bg);
	color: var(--text-secondary);
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: bold;
	font-size: 1rem;
	transition: var(--transition);
	display: inline-block;
}

button:hover,
.btn:hover {
	background-color: #a0522d;
	transform: translateY(-1px);
}

button:active,
.btn:active {
	transform: translateY(0);
}

.btn.primary {
	background-color: var(--text-accent);
	color: var(--primary-bg);
}

.btn.primary:hover {
	background-color: #e6a835;
}

.btn.secondary {
	background-color: rgba(252, 191, 73, 0.1);
	color: var(--text-accent);
	border: 2px solid var(--text-accent);
}

.btn.secondary:hover {
	background-color: var(--text-accent);
	color: var(--primary-bg);
}

.btn.logout {
	background-color: #d32f2f;
	color: white;
}

.btn.logout:hover {
	background-color: #b71c1c;
}

/* Forms */
form {
	background-color: var(--card-bg);
	padding: 2rem;
	border-radius: 15px;
	box-shadow: var(--shadow);
	margin: 2rem auto;
	max-width: 500px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

fieldset {
	border: 2px solid var(--border-color);
	border-radius: 8px;
	padding: 1rem;
	margin-bottom: 1.5rem;
	background-color: rgba(255, 255, 255, 0.05);
}

legend {
	color: var(--text-accent);
	font-weight: bold;
	padding: 0 0.5rem;
}

label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--text-secondary);
	font-weight: 600;
}

input,
select,
textarea {
	width: 100%;
	padding: 12px;
	border: 2px solid var(--border-color);
	border-radius: 6px;
	background-color: var(--secondary-bg);
	color: var(--text-primary);
	font-size: 1rem;
	margin-bottom: 1rem;
	transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--text-accent);
	box-shadow: 0 0 0 3px rgba(252, 191, 73, 0.2);
}

/* Checkbox and Radio Groups */
.checkbox-group,
.radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1rem;
}

.checkbox-item,
.radio-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem;
	border-radius: 6px;
	transition: var(--transition);
}

.checkbox-item:hover,
.radio-item:hover {
	background-color: rgba(255, 255, 255, 0.05);
}

.checkbox-item input,
.radio-item input {
	width: auto;
	margin: 0;
}

/* Error messages */
.error {
	color: #ff6b6b;
	background-color: rgba(255, 107, 107, 0.1);
	border: 1px solid rgba(255, 107, 107, 0.3);
	padding: 1rem;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.success {
	color: #51cf66;
	background-color: rgba(81, 207, 102, 0.1);
	border: 1px solid rgba(81, 207, 102, 0.3);
	padding: 1rem;
	border-radius: 8px;
	margin-bottom: 1rem;
}

/* Section headers */
.section-header {
	text-align: center;
	margin-bottom: 2rem;
	padding: 1rem;
	background: linear-gradient(135deg, rgba(252, 191, 73, 0.1), rgba(255, 228, 181, 0.05));
	border-radius: 10px;
	box-shadow: var(--shadow);
}

/* Layout utilities */
.flex {
	display: flex;
}

.flex-center {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
}

.flex-wrap {
	flex-wrap: wrap;
}

.gap-sm {
	gap: 0.5rem;
}

.gap-md {
	gap: 1rem;
}

.gap-lg {
	gap: 1.5rem;
}

.text-center {
	text-align: center;
}

/* Cards */
.card {
	background-color: var(--card-bg);
	border-radius: 10px;
	padding: 1.5rem;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
	margin-bottom: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Lists */
.list-unstyled {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	background: var(--card-bg);
	border-radius: 5px;
}

::-webkit-scrollbar-thumb {
	background: var(--border-color);
	border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
	background: #a0522d;
}

/* Responsive */
@media (max-width: 768px) {
	body {
		padding: 1rem;
	}

	form {
		padding: 1.5rem;
		margin: 1rem auto;
	}

	.checkbox-group,
	.radio-group {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.8rem;
	}

	h1,
	h2 {
		font-size: 1.8rem;
	}
}

/* Index Page Specific Styles */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100vh;
}

/* Universal page structures */
.page-header {
	text-align: center;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid rgba(255, 228, 181, 0.2);
}

.page-header h1 {
	color: var(--text-secondary);
	font-size: 2.5rem;
	margin: 0;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.auth-header {
	text-align: center;
	margin-bottom: 2rem;
}

.auth-content,
.profile-content,
.log-content,
.log-display-content,
.error-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.profile-section {
	margin-bottom: 2rem;
}

.error-content {
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 2rem;
}

.hero {
	text-align: center;
	margin-bottom: 3rem;
	padding: 2rem 0;
	flex-shrink: 0;
}

.hero h1 {
	font-size: clamp(2rem, 5vw, 3.5rem);
	margin-bottom: 0.5rem;
	color: var(--text-secondary);
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero h2 {
	font-size: clamp(1.2rem, 3vw, 1.8rem);
	color: var(--text-muted);
	margin-bottom: 1rem;
	font-weight: 400;
}

.tagline {
	font-size: clamp(1rem, 2.5vw, 1.3rem);
	color: var(--text-primary);
	font-style: italic;
	opacity: 0.9;
	max-width: 600px;
	margin: 0 auto;
}

.user-info {
	text-align: center;
	margin-bottom: 2rem;
	padding: 1rem;
	background: linear-gradient(135deg, rgba(252, 191, 73, 0.1), rgba(255, 228, 181, 0.05));
	border-radius: 12px;
	border: 1px solid rgba(252, 191, 73, 0.2);
	backdrop-filter: blur(10px);
	flex-shrink: 0;
}

.user-info p {
	margin: 0;
	font-size: 1.1rem;
	color: var(--text-secondary);
}

.main-nav {
	margin-bottom: 3rem;
	flex-shrink: 0;
}

.nav-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	max-width: 900px;
	margin: 0 auto;
}

.nav-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.8rem;
	padding: 2rem 1.5rem;
	background: linear-gradient(135deg, var(--card-bg), #1a0c02);
	border: 2px solid rgba(255, 228, 181, 0.2);
	border-radius: 15px;
	transition: var(--transition);
	text-decoration: none;
	color: var(--text-primary);
	position: relative;
	overflow: hidden;
	flex: 1;
	min-width: 180px;
	max-width: 220px;
}

.nav-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(252, 191, 73, 0.1), transparent);
	transition: left 0.6s ease;
}

.nav-btn:hover::before {
	left: 100%;
}

.nav-btn:hover {
	transform: translateY(-5px);
	border-color: var(--text-accent);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-btn.primary {
	background: linear-gradient(135deg, var(--text-accent), #e6a835);
	color: var(--primary-bg);
	border-color: var(--text-accent);
}

.nav-btn.primary:hover {
	background: linear-gradient(135deg, #e6a835, var(--text-accent));
}

.btn-icon {
	font-size: 2.5rem;
	transition: var(--transition);
}

.nav-btn:hover .btn-icon {
	transform: scale(1.2);
}

.btn-text {
	font-weight: 600;
	font-size: 1.1rem;
}

.auth-section {
	text-align: center;
	margin-top: auto;
	padding-top: 2rem;
	flex-shrink: 0;
}

.auth-prompt {
	font-size: clamp(1.1rem, 2.5vw, 1.4rem);
	color: var(--text-primary);
	margin-bottom: 2rem;
	opacity: 0.9;
}

.auth-buttons {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

/* Responsive adjustments for all pages */
@media (max-width: 768px) {
	.container {
		padding: 1rem 0.5rem;
		min-height: auto;
	}

	.page-header h1 {
		font-size: 2rem;
	}

	.auth-content,
	.profile-content,
	.log-content,
	.log-display-content {
		gap: 1rem;
	}

	.nav-grid {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		max-width: 400px;
	}

	.nav-btn {
		padding: 1.5rem 1rem;
		min-width: auto;
		max-width: none;
	}

	.btn-icon {
		font-size: 2rem;
	}

	.btn-text {
		font-size: 1rem;
	}

	.auth-buttons {
		flex-direction: column;
		align-items: center;
		gap: 0.8rem;
	}

	.btn.secondary {
		width: 200px;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0.5rem 0.25rem;
	}

	.page-header {
		margin-bottom: 1rem;
	}

	.page-header h1 {
		font-size: 1.8rem;
	}

	.hero {
		padding: 0.5rem 0;
	}

	.nav-btn {
		padding: 1.2rem 0.8rem;
	}

	.tagline {
		padding: 0 1rem;
	}

	.auth-content,
	.profile-content,
	.log-content,
	.log-display-content {
		gap: 0.8rem;
	}
}