/* CSS Reset and Variables */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --bg-dark: #0f172a;
  --bg-medium: #1e293b;
  --bg-light: #334155;
  --bg-surface: #111827;
  --bg-page: #030712;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --border-color: rgba(148, 163, 184, 0.35);
  --panel-border: rgba(15, 23, 42, 0.6);
  --panel-glow: rgba(59, 130, 246, 0.25);
  --success-color: #10b981;
  --error-color: #ef4444;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(180deg, rgba(5, 12, 28, 0.9), rgba(2, 6, 20, 0.95));
  color: var(--text-primary);
  line-height: 1.5;
  overflow: hidden;
}

body {
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/images/bg.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  transform: scale(1.05);
  z-index: -1;
}

.unsupported-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl);
  gap: var(--spacing-md);
  height: 100%;
}

.unsupported-message svg {
  width: 72px;
  height: 72px;
  fill: var(--primary-dark);
}

.unsupported-message h1 {
  margin: 0;
  font-size: 28px;
}

.unsupported-message p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 320px;
}

button {
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
}

button:not(.control-button):not(.sidebar-tab) {
  background: #297db5;
  border: 1px solid rgba(41, 125, 181, 0.9);
  color: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.45);
  transition: box-shadow 0.4s ease;
}

button:not(.control-button):not(.sidebar-tab):hover,
button:not(.control-button):not(.sidebar-tab):focus-visible {
  color: #fff;
  background: #297db5;
  box-shadow: 0 0 0 3px rgba(41, 125, 181, 0.4);
}

button:not(.control-button):not(.sidebar-tab):disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

video {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

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

.app-content {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  z-index: 1;
}

.app-content--full {
  align-items: stretch;
  justify-content: center;
  padding: 0;
  width: 100%;
  height: 100vh;
}
