/**
 * VirtuBox File Transfer Service - Core Theme & Styles
 * Branding:
 *   Orange: #eb6043
 *   Yellow: #f4bc1f
 *   Blue:   #2b7497
 *   Green:  #009db0
 * Strict zero external image dependencies.
 */

:root {
  /* VirtuBox Brand Colors */
  --vb-orange: #eb6043;
  --vb-orange-rgb: 235, 96, 67;
  --vb-yellow: #f4bc1f;
  --vb-yellow-rgb: 244, 188, 31;
  --vb-blue: #2b7497;
  --vb-blue-rgb: 43, 116, 151;
  --vb-green: #009db0;
  --vb-green-rgb: 0, 157, 176;

  --brand-virtu: #4da6d1;
  --brand-box: #eb6043;

  /* Theme: Dark */
  --bg-app: #0a0e17;
  --bg-surface: #111726;
  --bg-surface-elevated: #182033;
  --bg-surface-hover: #1f2a42;
  --bg-input: #0f1523;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-focus: var(--vb-green);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0e17;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.35), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.45), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
  --shadow-glow-blue: 0 0 24px rgba(43, 116, 151, 0.35);
  --shadow-glow-green: 0 0 24px rgba(0, 157, 176, 0.35);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Light Theme Variables (Default) */
[data-theme="light"] {
  --brand-virtu: #2b7497;
  --brand-box: #eb6043;

  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-input: #f1f5f9;
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: var(--vb-blue);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 10px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 14px 28px -4px rgba(15, 23, 42, 0.09), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow-blue: 0 0 20px rgba(43, 116, 151, 0.15);
  --shadow-glow-green: 0 0 20px rgba(0, 157, 176, 0.15);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  position: relative;
}

/* Ambient Brand Glow Backdrop */
body::before {
  content: "";
  position: fixed;
  top: -15vw;
  left: 20%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(43, 116, 151, 0.12) 0%, rgba(0, 157, 176, 0.06) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
}

body::after {
  content: "";
  position: fixed;
  bottom: -15vw;
  right: 10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(235, 96, 67, 0.08) 0%, rgba(244, 188, 31, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
}

/* App Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px 64px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Links & Buttons */
a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Utility Flex & Grid */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* Hidden utility */
.hidden {
  display: none !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
