/* =========================================================
   Legacy Compatibility Bridge
   Maps old class names to the new Executive Ops system
   so non-migrated templates continue to render.
   ========================================================= */

/* Layout shell aliases */
.app-shell { min-height: 100vh; display: flex; }
.app-main  { margin-left: var(--eh-sidebar-width); width: calc(100% - var(--eh-sidebar-width)); min-height: 100vh; display: flex; flex-direction: column; }
.app-content { padding: 1.5rem; flex: 1; }
.app-footer { text-align: center; padding: 1.5rem 0; border-top: 1px solid var(--eh-border); color: var(--eh-muted); font-size: 0.82rem; font-weight: 650; }
@media (max-width: 991.98px) { .app-main { margin-left: 0; width: 100%; } }

/* Legacy cards */
.app-card { background: var(--eh-card); border: 1px solid var(--eh-border); border-radius: var(--eh-radius-xl); box-shadow: var(--eh-shadow-soft); }
.app-card-header { padding: 1.25rem 1.25rem 0; }
.app-card-title { margin: 0; font-size: 1.05rem; font-weight: 950; letter-spacing: -0.04em; }

/* Legacy stat card (non-dashboard pages) */
.stat-card { background: var(--eh-card); border: 1px solid var(--eh-border); border-radius: var(--eh-radius-xl); box-shadow: var(--eh-shadow-soft); padding: 1.25rem; }

/* Legacy icon-badge system */
.icon-badge { width: 44px; height: 44px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.15rem; }
.icon-sm { width: 32px; height: 32px; border-radius: 11px; font-size: 0.95rem; }
.icon-lg { width: 56px; height: 56px; border-radius: 22px; font-size: 1.45rem; }
.icon-blue { background: var(--eh-soft-blue); color: var(--eh-blue); }
.icon-cyan { background: var(--eh-soft-cyan); color: #0891b2; }
.icon-teal { background: var(--eh-soft-teal); color: #0f9f8f; }
.icon-green { background: var(--eh-soft-green); color: #16a34a; }
.icon-amber { background: var(--eh-soft-amber); color: #d97706; }
.icon-orange { background: var(--eh-soft-orange); color: #ea580c; }
.icon-red { background: var(--eh-soft-red); color: #dc2626; }
.icon-purple { background: var(--eh-soft-purple); color: #7c3aed; }
.icon-pink { background: var(--eh-soft-pink); color: #db2777; }
.icon-slate { background: var(--eh-soft-slate); color: #475569; }

/* Legacy sidebar nav (for any template that might still reference it directly) */
.sidebar-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: 16px; color: rgba(255,255,255,0.72); font-weight: 800; margin-bottom: 0.25rem; transition: 0.16s ease; text-decoration: none; }
.sidebar-link:hover { color: #ffffff; background: rgba(255,255,255,0.08); }
.sidebar-link.active { color: #ffffff; background: linear-gradient(135deg, rgba(6,182,212,0.22), rgba(15,111,255,0.24)); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.sidebar-section-title { margin: 1.1rem 0 0.4rem; padding: 0 0.65rem; color: rgba(255,255,255,0.42); font-size: 0.7rem; font-weight: 950; text-transform: uppercase; letter-spacing: 0.08em; }
.sidebar-icon { width: 32px; height: 32px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.08); color: #67e8f9; }

/* Legacy user chip / avatar */
.user-chip { display: flex; align-items: center; gap: 0.5rem; }
.avatar { width: 38px; height: 38px; border-radius: 14px; background: linear-gradient(135deg, var(--eh-blue), var(--eh-purple)); color: #ffffff; display: grid; place-items: center; font-weight: 950; }

/* Legacy global search */
.global-search { max-width: 640px; height: 46px; border-radius: var(--eh-radius-pill); border: 1px solid #dfeaf5; background: #f8fbff; display: flex; align-items: center; gap: 0.65rem; padding: 0 1rem; color: var(--eh-muted); }
.global-search input { border: none; background: transparent; outline: none; width: 100%; color: var(--eh-text); font-weight: 650; }

/* Legacy soft buttons */
.btn-soft-blue { border-radius: var(--eh-radius-pill); font-weight: 900; border: 1px solid var(--eh-border); background: var(--eh-soft-blue); color: var(--eh-blue); }
.btn-soft-teal { border-radius: var(--eh-radius-pill); font-weight: 900; border: 1px solid var(--eh-border); background: var(--eh-soft-teal); color: #0f9f8f; }
.btn-soft-green { border-radius: var(--eh-radius-pill); font-weight: 900; border: 1px solid var(--eh-border); background: var(--eh-soft-green); color: #16a34a; }
.btn-soft-purple { border-radius: var(--eh-radius-pill); font-weight: 900; border: 1px solid var(--eh-border); background: var(--eh-soft-purple); color: #7c3aed; }
.btn-soft-slate { border-radius: var(--eh-radius-pill); font-weight: 900; border: 1px solid var(--eh-border); background: var(--eh-soft-slate); color: #475569; }
.btn-soft-cyan { border-radius: var(--eh-radius-pill); font-weight: 900; border: 1px solid var(--eh-border); background: var(--eh-soft-cyan); color: #0891b2; }
.btn-soft-amber { border-radius: var(--eh-radius-pill); font-weight: 900; border: 1px solid var(--eh-border); background: var(--eh-soft-amber); color: #d97706; }
.btn-soft-orange { border-radius: var(--eh-radius-pill); font-weight: 900; border: 1px solid var(--eh-border); background: var(--eh-soft-orange); color: #ea580c; }
.btn-soft-red { border-radius: var(--eh-radius-pill); font-weight: 900; border: 1px solid var(--eh-border); background: var(--eh-soft-red); color: #dc2626; }
.btn-soft-pink { border-radius: var(--eh-radius-pill); font-weight: 900; border: 1px solid var(--eh-border); background: var(--eh-soft-pink); color: #db2777; }

/* Legacy page header tweaks */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-header > div:first-child { flex: 1 1 auto; min-width: 0; }
@media (max-width: 767.98px) { .page-header { flex-direction: column; align-items: flex-start; } }

/* Legacy focus-visible already in design-system.css, keep there */
.card-hover { transition: transform 0.16s ease, box-shadow 0.16s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--eh-shadow-card); }
