/**
 * base.css
 * ========
 * Global resets and root variables.
 */

:root {
  /* Colors */
  --color-primary:        #6366f1;
  --color-primary-hover:  #4f46e5;
  --color-bg:             #f8fafc;
  --color-surface:        #ffffff;
  --color-surface-dark:   #1e293b;
  --color-border:         #e2e8f0;
  --color-border-light:   #334155;
  --color-text:           #0f172a;
  --color-text-secondary: #64748b;
  --shadow-md:            0 4px 12px rgba(0,0,0,0.1);
  --radius-md:            8px;

  /* Layout */
  --toolbar-height: 56px;
  --status-height:  32px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  overflow: hidden;
  height: 100vh;
}

#app-root {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#app-workspace {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* BUG-19 fix: Toolbar was unstyled — relied on implicit browser layout */
#app-toolbar {
  height: auto;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 16px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  z-index: 100;
  flex-shrink: 0;
  gap: 6px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.toolbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-center,
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* BUG-19 fix: Status bar was unstyled — relied on implicit browser layout */
#app-status-bar {
  height: var(--status-height);
  min-height: var(--status-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  z-index: 100;
}
