/* CSS Variables and Base Styles */

:root {
	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--gray-50: #F9FAFB;
	--gray-100: #F3F4F6;
	--gray-200: #E5E7EB;
	--gray-300: #D1D5DB;
	--gray-400: #9CA3AF;
	--gray-500: #6B7280;
	--gray-600: #4B5563;
	--gray-700: #374151;
	--gray-800: #1F2937;
	--gray-900: #111827;

	--blue-50: #EFF6FF;
	--blue-100: #DBEAFE;
	--blue-500: #3B82F6;
	--blue-600: #2563EB;

	--red-500: #EF4444;

	/* Force dark mode colors */
	--bg-primary: #0F1419;
	--bg-secondary: #1A1F29;
	--bg-tertiary: #252B38;
	--bg-inset: #2D3441;
	--bg-interactive: var(--blue-500);
	--bg-interactive-hover: var(--blue-600);
	--bg-danger: var(--red-500);

	--text-primary: #E8EAED;
	--text-secondary: #9CA3AF;
	--text-tertiary: #6B7280;
	--text-interactive: #FFFFFF;
	--text-placeholder: var(--gray-600);

	--border-primary: #2D3441;
	--border-secondary: #374151;
	--border-interactive: var(--blue-500);
	--border-focus-ring: rgba(59, 130, 246, 0.25);
	--border-danger: var(--red-500);

	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.5);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.6), 0 4px 6px -4px rgb(0 0 0 / 0.6);

	color-scheme: dark;
	font-family: var(--font-sans);
	background: var(--bg-primary);
	color: var(--text-primary);
}

/* Force dark mode on all elements */
body {
	color-scheme: dark;
}

html {
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

/* Loading spinner animation */
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Connection Status - Fixed positioning */
#connection-status {
	position: fixed;
	top: 10px;
	left: 10px;
	background: var(--bg-secondary);
	padding: 8px 16px;
	border-radius: 8px;
	border: 1px solid var(--border-primary);
	z-index: 1000;
	font-size: 0.85rem;
}

#connection-icon {
	margin-right: 6px;
}

/* User Bar - Inline in header */
#user-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--bg-tertiary);
	padding: 6px 12px;
	border-radius: 6px;
	border: 1px solid var(--border-primary);
	white-space: nowrap;
	flex-shrink: 0;
}

#user-email {
	color: var(--text-secondary);
	font-size: 0.85rem;
}

#signout-btn {
	padding: 4px 12px;
	font-size: 0.85rem;
	background: var(--bg-primary);
	border: 1px solid var(--border-primary);
	color: var(--text-primary);
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s ease;
}

#signout-btn:hover {
	background: var(--bg-secondary);
}
