:root {
  /* Customs SaaS Palette - Navy & Slate */
  --bg-app: #0f172a; /* Slate 900 */
  --bg-card: #1e293b; /* Slate 800 */
  --bg-card-hover: #334155; /* Slate 700 */
  --bg-element: #475569; /* Slate 600 */
  
  /* Form Theme Colors */
  --form-bg: #ffffff;
  --form-text: #0f172a;
  --form-border: #e2e8f0;
  --form-focus: #10b981;
  
  /* Text Colors */
  --text-main: #f1f5f9; /* Slate 100 */
  --text-muted: #94a3b8; /* Slate 400 */
  --text-inverse: #ffffff;

  /* Accent Colors */
  --accent-primary: #10b981; /* Success Green (Emerald 500) */
  --accent-secondary: #334155;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-info: #3b82f6;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 32px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #020617;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: grayscale(100%) brightness(0.6);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-app) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: var(--space-xl);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: #fff;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Landing Navigation */
.nav-landing {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.btn {
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--bg-element);
  color: var(--text-main);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-tag {
  color: var(--accent-primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: var(--text-xs);
  margin-bottom: var(--space-sm);
  display: block;
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: var(--bg-card);
  padding: var(--space-xl);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

/* Typography Utilities */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--accent-success); }
.text-danger { color: var(--accent-danger); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

/* Sidebar Layout */
.sidebar {
  width: 64px;
  background-color: var(--bg-card);
  border-right: 1px solid var(--bg-element);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--space-lg);
  gap: var(--space-lg);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
}

.nav-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background-color: var(--bg-element);
  color: var(--text-main);
}

.nav-item.active {
  background-color: #EFF6FF; /* Very light blue bg */
  color: var(--accent-primary);
}

.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-scrollable {
  flex: 1;
  background-color: var(--bg-app);
}

/* Layout Utilities */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-lg);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* Components */

/* Header */
.header {
  background-color: var(--bg-card);
  height: 64px;
  padding: 0 var(--space-lg);
  border-bottom: 1px solid var(--bg-element);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 40;
}

.hamburger-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--text-muted);
}
.hamburger-btn:hover {
  color: var(--text-main);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-live {
  background-color: #ECFDF5;
  color: var(--accent-success);
  border: 1px solid var(--accent-success);
}

/* Removed pseudo-element dot as it is now in HTML text */

/* Cards */
.card {
  background-color: var(--bg-card);
  padding: var(--space-lg);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.placeholder-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-element);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.placeholder-image::after {
  content: attr(data-label);
  font-size: var(--text-sm);
  font-weight: 500;
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.metric-label {
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-main);
}

.metric-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Charts (Simulated) */
.chart-container {
  height: 200px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: var(--space-md);
}

.chart-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

/* CSS-only simple line chart visualization using SVG logic would be hard to inline perfectly without SVG tag, so we will use an SVG tag in HTML */

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  padding: var(--space-sm) 0;
  color: var(--text-muted);
  font-size: var(--text-xs);
  border-bottom: 1px solid var(--bg-element);
  font-weight: 500;
}

.table td {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--bg-element);
  font-size: var(--text-sm);
}

.table tr:last-child td {
  border-bottom: none;
}

/* Seating Map */
.seating-map {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin-top: var(--space-md);
  position: relative;
  padding-top: 40px; /* Space for stage */
}

.stage-area {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background-color: var(--bg-element);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.seat {
  aspect-ratio: 1;
  background-color: var(--bg-element);
  border-radius: 0;
}

.seat.occupied { background-color: var(--accent-danger); opacity: 1; }
.seat.selected { background-color: var(--accent-warning); opacity: 1; }
.seat.available { background-color: var(--accent-success); opacity: 1; }
.seat.vip { border: 1px solid var(--text-muted); }

/* Activity List */
.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--bg-element);
}
.activity-item:last-child { border-bottom: none; }

.activity-icon {
  width: 36px;
  height: 36px;
  background-color: var(--bg-element);
  border-radius: 8px; /* Softer edges */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base); /* Slightly larger icon */
}

.icon-success-bg {
  background-color: #ECFDF5;
  color: var(--accent-success);
}

.icon-danger-bg {
  background-color: #FEF2F2;
  color: var(--accent-danger);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-element);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Progress Bar */
.progress-bar {
  height: 6px;
  background-color: var(--bg-element);
  border-radius: 0;
  overflow: hidden;
  margin-top: 4px;
}

.progress-fill {
  height: 100%;
  background-color: var(--accent-primary);
}

/* Auth / Registration Layout */
.auth-split-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.auth-side-art {
  flex: 1;
  background-color: #020617;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-side-form {
  width: 100%;
  max-width: 600px;
  background-color: var(--form-bg);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  color: var(--form-text);
}

.auth-art-container {
  position: relative;
  width: 80%;
  height: 80%;
  z-index: 1;
}

.abstract-industrial-svg {
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.auth-progress-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.auth-progress-container {
  height: 4px;
  background-color: #f1f5f9;
  border-radius: 2px;
  overflow: hidden;
}

.auth-progress-fill {
  height: 100%;
  background-color: var(--accent-primary);
  width: 50%;
  transition: width 0.3s ease;
}

.auth-form-container {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.form-header {
  margin-bottom: var(--space-xl);
}

.form-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--form-text);
  margin-bottom: var(--space-xs);
}

.form-subtitle {
  color: #64748b;
  font-size: var(--text-base);
}

/* Floating Labels */
.floating-input-group {
  position: relative;
  margin-bottom: var(--space-lg);
}

.floating-input {
  width: 100%;
  padding: var(--space-lg) var(--space-md) var(--space-sm);
  font-size: var(--text-base);
  border: 1px solid var(--form-border);
  border-radius: 12px;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font-family);
  color: var(--form-text);
}

.floating-input:focus {
  outline: none;
  border-color: var(--form-focus);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.floating-label {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-md);
  color: #94a3b8;
  font-size: var(--text-base);
  pointer-events: none;
  transition: all 0.2s ease;
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
  top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--form-focus);
  text-transform: uppercase;
}

.auth-footer {
  margin-top: var(--space-xl);
  text-align: center;
  font-size: var(--text-sm);
  color: #64748b;
}

.auth-footer a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .auth-side-art {
    display: none;
  }
  .auth-side-form {
    max-width: 100%;
  }
}
