/* Fleet Central - based on the Coup Admin prototype */
body { background: #f4f5f8; font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; margin: 0; overflow-x: hidden; }
.wrapper { display: flex; min-height: 100vh; flex-direction: column; }

.main-header { position: fixed; top: 0; left: 0; right: 0; height: 60px; background: #fff; z-index: 1030; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid #e5eaef; }
.logo-box { font-size: 19px; font-weight: 700; color: #1e1e2d; display: flex; align-items: center; }
.logo-dot { color: #6c5ce7; margin-right: 8px; font-size: 22px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #eff2f7; color: #0052cc; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

.main-sidebar { position: fixed; top: 60px; left: 0; bottom: 0; width: 250px; background: #fff; border-right: 1px solid #e5eaef; z-index: 1020; overflow-y: auto; transition: transform .2s; }
.sidebar-menu { list-style: none; padding: 15px 10px; margin: 0; }
.sidebar-menu .header { font-size: 11px; color: #9aa1a9; font-weight: 700; padding: 12px 15px 5px; letter-spacing: .3px; }
.sidebar-menu li a { display: flex; align-items: center; padding: 10px 15px; color: #464855; text-decoration: none; border-radius: 6px; font-size: 14px; margin-bottom: 2px; }
.sidebar-menu li a i { font-size: 18px; margin-right: 12px; color: #74788d; }
.sidebar-menu li.active > a, .sidebar-menu li a:hover { background: #eff2f7; color: #0052cc; }
.sidebar-menu li.active > a i { color: #0052cc; }

.content-wrapper { margin-left: 250px; margin-top: 60px; padding: 28px; flex: 1; }
@media (max-width: 991.98px) {
  .main-sidebar { transform: translateX(-100%); }
  .main-sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  .content-wrapper { margin-left: 0; padding: 18px; }
}

.box { background: #fff; border-radius: 8px; box-shadow: 0 .75rem 1.5rem rgba(18,38,63,.03); margin-bottom: 24px; }
.box-header { padding: 16px 20px; border-bottom: 1px solid #eff2f7; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.box-title { font-size: 16px; font-weight: 600; margin: 0; color: #343a40; }
.box-body { padding: 20px; }
.page-title { font-weight: 700; margin: 0; font-size: 22px; }
.stat-label { color: #74788d; font-size: 12px; }
.stat-value { font-size: 24px; font-weight: 700; margin: 4px 0 0; }

.table { margin-bottom: 0; vertical-align: middle; font-size: 13px; }
.table th { font-weight: 600; color: #495057; background: #fafbfe; white-space: nowrap; }
.table td .sub { color: #8a929a; font-size: 12px; }
.btn-icon { padding: 2px 7px; }

.badge-sync { font-weight: 500; font-size: 11px; margin: 1px 2px 1px 0; }
.badge-sync.synced { background: #e2f6f0; color: #0f7b55; }
.badge-sync.pending { background: #fff4d6; color: #9a6b00; }
.badge-sync.failed { background: #fde8ed; color: #b3163a; }
.badge-sync.none { background: #eef0f3; color: #6c757d; }
.health-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.health-dot.up { background: #20c997; } .health-dot.down { background: #e5484d; } .health-dot.unknown { background: #adb5bd; }

.ta-wrap { position: relative; }
.ta-box { position: absolute; left: 0; right: 0; top: 100%; z-index: 1060; max-height: 240px; overflow-y: auto; }
.chips .chip { display: inline-flex; align-items: center; background: #eff2f7; border-radius: 14px; padding: 2px 4px 2px 10px; margin: 0 4px 4px 0; font-size: 12px; }
.chips .chip button { border: 0; background: transparent; color: #6c757d; padding: 0 4px; }
.empty-state { text-align: center; color: #8a929a; padding: 40px 10px; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 380px; }
:focus-visible { outline: 2px solid #0052cc; outline-offset: 2px; }
