/* ===========================================================
   Shell — Office 2010 Blue (clon fiel)
   =========================================================== */

.app-shell {
  display: grid;
  grid-template-rows:
    var(--h-titlebar)
    var(--h-qat)
    var(--h-ribbon-tabs)
    var(--h-ribbon-body)
    1fr
    var(--h-statusbar);
  height: 100vh;
  overflow: hidden;
}

/* ---------- Barra de título (gradiente plata estilo Aero) ---------- */
.titlebar {
  display: flex;
  align-items: center;
  background: var(--bg-title);
  border-bottom: 1px solid var(--border-strong);
  padding: 0 var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
}
.titlebar__logo {
  width: 16px; height: 16px;
  background: linear-gradient(180deg, var(--ofc-blue-500) 0%, var(--ofc-blue-900) 100%);
  border-radius: 2px;
  margin-right: var(--sp-2);
  display: grid; place-items: center;
  color: #fff; font-weight: var(--fw-bold); font-size: 9px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 0 0 1px rgba(0,0,0,0.2);
}
.titlebar__title {
  flex: 1;
  text-align: center;
  color: var(--text);
  font-weight: var(--fw-regular);
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
  font-size: var(--fs-sm);
}
.titlebar__title strong { color: var(--text); font-weight: var(--fw-semi); }
.titlebar__title .version-badge {
  display: inline-block;
  padding: 0 5px;
  margin-left: 4px;
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid #e3c577;
  border-radius: 2px;
  font-size: 10px;
  font-weight: var(--fw-bold);
  vertical-align: middle;
  text-shadow: none;
}
.titlebar__controls { display: flex; gap: 0; }
.titlebar__btn {
  width: 40px; height: var(--h-titlebar);
  display: grid; place-items: center;
  color: var(--text);
  border-radius: 0;
  border-left: 1px solid rgba(0,0,0,0.08);
  transition: background var(--t-fast);
}
.titlebar__btn:hover {
  background: linear-gradient(180deg, #e8efda 0%, #c8d9a8 100%);
  box-shadow: inset 0 0 0 1px #95a879;
}
.titlebar__btn--close:hover {
  background: linear-gradient(180deg, #e88080 0%, #c42c2c 100%);
  color: #fff;
  box-shadow: inset 0 0 0 1px #8a1f1f;
}

/* ---------- QAT (gradiente plateado) ---------- */
.qat {
  display: flex;
  align-items: center;
  background: var(--bg-qat);
  border-bottom: 1px solid var(--border-strong);
  padding: 0 var(--sp-3);
  gap: 1px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset;
}
.qat__btn {
  width: 22px; height: 20px;
  display: grid; place-items: center;
  border-radius: 2px;
  color: var(--text);
  transition: background var(--t-fast), box-shadow var(--t-fast);
  border: 1px solid transparent;
}
.qat__btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
}
.qat__btn:active {
  background: var(--bg-active);
  border-color: #c07c00;
}
.qat__btn svg { width: 13px; height: 13px; }
.qat__sep {
  width: 1px;
  height: 16px;
  background: var(--border-strong);
  margin: 0 var(--sp-1);
  box-shadow: 1px 0 0 rgba(255,255,255,0.6);
}
.qat__dropdown {
  width: 18px; height: 20px;
  display: grid; place-items: center;
  color: var(--text-muted);
  border-radius: 2px;
  border: 1px solid transparent;
}
.qat__dropdown:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
}

/* ---------- Status bar (azul oscuro Office) ---------- */
.statusbar {
  display: flex;
  align-items: center;
  background: var(--bg-status);
  color: var(--text-on-brand);
  font-size: var(--fs-sm);
  padding: 0 var(--sp-3);
  gap: var(--sp-3);
  overflow: hidden;
  border-top: 1px solid #2a3e5a;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.statusbar__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-2);
  white-space: nowrap;
  line-height: 1;
}
.statusbar__item svg { width: 13px; height: 13px; opacity: 0.95; }
.statusbar__item strong { font-weight: var(--fw-semi); color: #fff; }
.statusbar__item .value {
  color: rgba(255,255,255,0.92);
  margin-left: 2px;
  font-weight: var(--fw-regular);
}
.statusbar__sep {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.2);
  box-shadow: 1px 0 0 rgba(0,0,0,0.25);
}
.statusbar__spacer { flex: 1; }
.statusbar__item--link {
  cursor: pointer;
  border-radius: 2px;
  transition: background var(--t-fast);
}
.statusbar__item--link:hover { background: rgba(255,255,255,0.12); }
