/* Legacy styles commented out to prevent conflict with Tailwind
body {
	padding: 2rem;
	font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
}

h1 {
	font-size: 16px;
	margin-top: 0;
}

p {
	color: rgb(107, 114, 128);
	font-size: 15px;
	margin-bottom: 10px;
	margin-top: 5px;
}

.card {
	max-width: 620px;
	margin: 0 auto;
	padding: 16px;
	border: 1px solid lightgray;
	border-radius: 16px;
}

.card p:last-child {
	margin-bottom: 0;
} 
*/

/* Styles moved from index.php */
.gradient-bg {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
}

.lobby-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.countdown {
	font-family: 'Courier New', monospace;
}

.flake-score {
	transition: all 0.3s ease;
}

.flake-score.good {
	color: #10b981;
}

.flake-score.medium {
	color: #f59e0b;
}

.flake-score.bad {
	color: #ef4444;
}

.tab-active {
	border-bottom: 3px solid #7c3aed;
	font-weight: 600;
}

/* Extracted Components */
.tab-btn {
	padding: 0.5rem 1rem;
	/* px-4 py-2 */
	color: #4b5563;
	/* text-gray-600 */
	transition: color 150ms ease-in-out;
}

.tab-btn:hover {
	color: #7e22ce;
	/* text-purple-700 */
}

.tab-btn.active {
	color: #7e22ce;
	/* text-purple-700 */
	border-bottom: 3px solid #7c3aed;
	font-weight: 600;
}

.btn-primary {
	background-color: #7c3aed;
	/* bg-purple-600 */
	color: white;
	font-weight: 700;
	padding: 0.5rem 1rem;
	/* py-2 px-4 */
	border-radius: 0.5rem;
	/* rounded */
	transition: background-color 0.3s ease;
}

.btn-primary:hover {
	background-color: #6d28d9;
	/* hover:bg-purple-700 */
}

/* Form Elements */
.input-field {
	width: 100%;
	padding: 0.75rem 1rem;
	/* py-3 px-4 */
	border-radius: 0.5rem;
	/* rounded-lg */
	color: #7e22ce;
	/* text-purple-700 */
	border: 1px solid #d1d5db;
	/* border-gray-300 */
	outline: none;
	transition: box-shadow 0.2s;
}

.input-field:focus {
	box-shadow: 0 0 0 2px #a855f7;
	/* ring-purple-500 */
}

.border-red-500 {
	border-color: #ef4444 !important;
}


/* Navigation */
.nav-link {
	color: #e5e7eb;
	/* text-gray-200 (approx) */
	transition: color 0.2s;
}

.nav-link:hover {
	color: white;
}

/* Glassmorphism Cards */
.card-base {
	background-color: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 0.75rem;
	/* rounded-xl */
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
	overflow: hidden;
}

/* Modals */
.modal-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 50;
}

.modal-content {
	background-color: white;
	border-radius: 0.75rem;
	/* rounded-xl */
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	/* shadow-xl */
	width: 100%;
	max-width: 28rem;
	/* max-w-md */
	margin: 1rem;
	max-height: 90vh;
	overflow-y: auto;
}

/* Dropdown */
.dropdown-menu {
	position: absolute;
	right: 0;
	margin-top: 0.5rem;
	width: 12rem;
	/* w-48 */
	background-color: white;
	border-radius: 0.5rem;
	/* rounded-lg */
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
	/* shadow-xl */
	padding: 0.5rem 0;
	z-index: 50;
}

.dropdown-item {
	display: block;
	padding: 0.5rem 1rem;
	color: #1f2937;
	/* text-gray-800 */
	transition: background-color 0.2s, color 0.2s;
}

.dropdown-item:hover {
	background-color: #f3e8ff;
	/* hover:bg-purple-50 */
	color: #7e22ce;
	/* hover:text-purple-700 */
}

.dropdown-item-danger {
	color: #dc2626;
	/* text-red-600 */
}

.dropdown-item-danger:hover {
	background-color: #fef2f2;
	/* hover:bg-red-50 */
}

/* Fix for date inputs not showing full text / being cut off */
input[type="datetime-local"].input-field {
	min-width: 100%;
	display: block;
	/* Ensure content box sizing doesn't shrink it unexpectedly if padding weirdness occurs */
	box-sizing: border-box;
}

/* Lobby Background */
.lobby-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	transition: background-image 0.5s ease-in-out;
}

.lobby-bg-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
	position: absolute;
	z-index: 100;
	background: white;
	width: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	margin-top: 0.25rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	max-height: 200px;
	overflow-y: auto;
}

.autocomplete-item {
	padding: 0.75rem 1rem;
	cursor: pointer;
	transition: background-color 0.2s;
	color: #374151;
}

.autocomplete-item:hover {
	background-color: #f3e8ff;
	color: #7e22ce;
}

.autocomplete-item:not(:last-child) {
	border-bottom: 1px solid #f3f4f6;
}