/* OBS Remote - Luxury Minimalist Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root, :root[data-theme="dark"], html[data-theme="dark"] {
  --bg-body: #050507;
  --bg-main: #050507;
  --bg-surface: #0a0a0e;
  --bg-surface-elevated: #101016;
  --bg-subtle: #14141c;
  --bg-hover: #1c1c26;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-hover: rgba(255, 255, 255, 0.25);
  --border-focus: #ffffff;
  --text-main: #f5f5f7;
  --text-muted: #888896;
  --text-dim: #50505e;
  --accent: #ffffff;
  --accent-text: #050507;
  --accent-hover: #eaeaea;
  --accent-btn: #ffffff;
  --accent-btn-text: #050507;
  --accent-btn-hover: #eaeaea;
  --card-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(255, 255, 255, 0.05);
  --input-bg: #0c0c10;
  --input-border: rgba(255, 255, 255, 0.09);
  --success: #10b981;
  --danger: #f43f5e;
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 9999px;
}

:root[data-theme="light"], html[data-theme="light"] {
  --bg-body: #f7f7fa;
  --bg-main: #f7f7fa;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #eeeff3;
  --bg-hover: #e4e5eb;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --border-hover: rgba(0, 0, 0, 0.25);
  --border-focus: #050507;
  --text-main: #0c0c10;
  --text-muted: #585868;
  --text-dim: #8c8c9c;
  --accent: #0c0c10;
  --accent-text: #ffffff;
  --accent-hover: #22222a;
  --accent-btn: #0c0c10;
  --accent-btn-text: #ffffff;
  --accent-btn-hover: #22222a;
  --card-shadow: 0 20px 48px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  --input-bg: #f2f3f7;
  --input-border: rgba(0, 0, 0, 0.09);
  --success: #059669;
  --danger: #e11d48;
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  background-color: var(--bg-body) !important;
  color: var(--text-main) !important;
  min-height: 100vh;
  width: 100%;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.015em;
  line-height: 1.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  background-attachment: fixed;
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] body, html[data-theme="light"] body {
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-main);
  line-height: 1.2;
}

p {
  color: var(--text-muted);
  font-weight: 400;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
}

/* Luxury Buttons */
.btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.btn-secondary {
  background: var(--bg-surface);
  border-color: var(--border);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
}
.btn-danger {
  background: transparent;
  border-color: rgba(244, 63, 94, 0.35);
  color: var(--danger);
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

/* Luxury Input Fields */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.input-wrapper .input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.input-wrapper .input.has-icon {
  padding-left: 40px;
}

.input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(125, 125, 125, 0.12);
  background: var(--bg-surface);
}
.input::placeholder {
  color: var(--text-dim);
  font-weight: 400;
}

/* Minimalist Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-muted);
}
.badge.online {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.badge.offline {
  border-color: var(--border);
  background: var(--bg-subtle);
  color: var(--text-dim);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Luxury Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.16s ease;
  user-select: none;
}
.theme-toggle-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
}

/* Tables (Linear / Stripe Style) */
.data-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  background: var(--bg-subtle);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

.data-table tr:hover td {
  background: var(--bg-subtle);
}

/* Toast Notification */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999999;
}
.toast {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideToast 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideToast {
  from { transform: translateY(10px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
