:root {
  --bg-0: #0b0b0d;
  --bg-1: #111114;
  --bg-2: #16161a;
  --bg-3: #1c1c22;
  --border-1: #26262d;
  --border-2: #33333c;
  --text-1: #e8e8ea;
  --text-2: #a3a3ad;
  --text-3: #6a6a73;
  --accent: #7c5cff;
  --accent-soft: #2a1f5c;
  --danger: #ff6b6b;
  --danger-soft: #3a1f22;
  --ok: #4ade80;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --shadow-1: 0 1px 0 rgba(255,255,255,0.03), 0 8px 24px rgba(0,0,0,0.4);
}

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

html, body, #root {
  height: 100%;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font-family: inherit; font-size: inherit; }

.boot { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-3); font-size: 13px; }

.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100%; padding: 24px; }
.login-card { width: 100%; max-width: 380px; background: var(--bg-1); border: 1px solid var(--border-1); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-1); }
.login-brand { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.login-sub { color: var(--text-3); font-size: 12px; margin-top: 4px; margin-bottom: 28px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { color: var(--text-2); font-size: 12px; font-weight: 500; }
.field > input { background: var(--bg-2); border: 1px solid var(--border-1); border-radius: var(--radius); color: var(--text-1); padding: 10px 12px; outline: none; transition: border-color 0.15s ease; }
.field > input:focus { border-color: var(--accent); }
.field > input:disabled { opacity: 0.5; }

.login-error { background: var(--danger-soft); border: 1px solid var(--danger); color: var(--danger); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 12px; }

.btn-primary { background: var(--accent); color: white; font-weight: 500; padding: 10px 14px; border-radius: var(--radius); transition: opacity 0.15s ease, transform 0.05s ease; }
.btn-primary:hover:not(:disabled) { opacity: 0.92; }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-ghost { color: var(--text-2); font-size: 12px; padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-1); background: transparent; transition: background 0.15s ease, color 0.15s ease; }
.btn-ghost:hover { background: var(--bg-3); color: var(--text-1); }

.app { display: grid; grid-template-columns: 240px 1fr; height: 100%; }

.sidebar { background: var(--bg-1); border-right: 1px solid var(--border-1); display: flex; flex-direction: column; padding: 20px 12px 16px 12px; gap: 16px; overflow-y: auto; }
.sidebar-brand { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; padding: 0 8px; margin-bottom: 8px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar-item { display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 13px; transition: background 0.12s ease, color 0.12s ease; }
.sidebar-item:hover { background: var(--bg-2); color: var(--text-1); }
.sidebar-item.is-active { background: var(--accent-soft); color: var(--text-1); }
.sidebar-item.is-active .sidebar-item-tag { opacity: 0.7; }
.sidebar-item-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-item-tag { font-size: 10px; color: var(--text-3); background: var(--bg-2); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border-1); flex-shrink: 0; }
.sidebar-item.is-placeholder .sidebar-item-label { color: var(--text-3); }
.sidebar-item.is-placeholder:hover .sidebar-item-label { color: var(--text-2); }

.sidebar-footer { border-top: 1px solid var(--border-1); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.sidebar-user { font-size: 12px; color: var(--text-2); padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.content { overflow-y: auto; padding: 32px 40px; }
.vista { max-width: 1200px; }
.vista-header { margin-bottom: 24px; }
.vista-header h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.vista-sub { color: var(--text-3); font-size: 13px; margin-top: 4px; }

.card-info { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: var(--radius-lg); padding: 20px 22px; max-width: 640px; }
.card-info-title { font-weight: 500; font-size: 14px; color: var(--text-1); margin-bottom: 6px; }
.card-info-body { color: var(--text-2); font-size: 13px; line-height: 1.6; }

.card-placeholder { background: var(--bg-1); border: 1px dashed var(--border-2); border-radius: var(--radius-lg); padding: 48px 32px; text-align: center; max-width: 480px; margin: 0 auto; }
.card-placeholder-icon { font-size: 28px; margin-bottom: 12px; }
.card-placeholder-title { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.card-placeholder-body { color: var(--text-3); font-size: 13px; line-height: 1.6; }
