/* TailAdmin-inspired layout — OLT Manager v2 */
.ta-root { min-height: 100vh; background: #f1f5f9; font-family: Inter, system-ui, sans-serif; }
.ta-sidebar {
  width: 240px; background: #1c2434; color: #aeb7c4; flex-shrink: 0;
}
.ta-sidebar .brand { padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid #2e3a4f; }
.ta-sidebar .brand h1 { color: #fff; font-size: 1.05rem; font-weight: 700; margin: 0; }
.ta-sidebar .brand p { font-size: 0.7rem; margin: 0.25rem 0 0; opacity: 0.75; }
.ta-nav a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.7rem 1.25rem; font-size: 0.875rem; font-weight: 600;
  color: #d1d9e6; text-decoration: none; transition: background .15s, color .15s;
}
.ta-nav a i { font-size: 1.1rem; width: 1.25rem; text-align: center; }
.ta-nav a:hover { background: #24303f; color: #fff; }
.ta-nav a.active { background: #3c50e0; color: #fff; box-shadow: inset 3px 0 0 #93c5fd; }
.ta-nav a[data-icon="dash"] i { color: #60a5fa; }
.ta-nav a[data-icon="onu"] i { color: #34d399; }
.ta-nav a[data-icon="olt"] i { color: #fbbf24; }
.ta-nav a[data-icon="vlan"] i { color: #a78bfa; }
.ta-nav a.active i { color: #fff !important; }
.ta-main { flex: 1; min-width: 0; padding: 1.5rem 2rem; }
.ta-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.ta-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: .5rem;
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
}
.ta-card-header {
  padding: 1rem 1.25rem; border-bottom: 1px solid #e2e8f0;
  font-weight: 600; font-size: .95rem; color: #1e293b;
}
.ta-card-body { padding: 1.25rem; }
.ta-stat {
  background: #fff; border: 1px solid #e2e8f0; border-radius: .5rem;
  padding: 1.1rem 1.25rem; box-shadow: 0 1px 3px rgba(15,23,42,.05);
}
.ta-stat .label { font-size: .75rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.ta-stat .value { font-size: 1.75rem; font-weight: 700; color: #0f172a; margin-top: .35rem; }
.ta-stat .value.ok { color: #16a34a; }
.ta-stat .value.warn { color: #dc2626; }
.ta-stat .value.info { color: #2563eb; }
.ta-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.ta-table th, .ta-table td { padding: .75rem 1rem; border-bottom: 1px solid #e2e8f0; text-align: left; }
.ta-table th { color: #64748b; font-weight: 600; font-size: .75rem; text-transform: uppercase; }
.ta-badge {
  display: inline-block; padding: .15rem .55rem; border-radius: 9999px;
  font-size: .7rem; font-weight: 600;
}
.ta-badge.ok { background: #dcfce7; color: #166534; }
.ta-badge.err { background: #fee2e2; color: #b91c1c; }
.ta-sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid #2e3a4f; font-size: .8rem; }
.ta-sidebar-footer a { color: #94a3b8; text-decoration: none; display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.ta-sidebar-footer a:hover { color: #fff; }
.ta-sidebar-footer .logout { color: #f87171; }
.ta-login-wrap {
  min-height: 100vh; display: grid; place-items: center;
  background: linear-gradient(135deg, #1c2434 0%, #3c50e0 100%);
  padding: 1.5rem;
}
.ta-login-card {
  width: min(420px, 100%); background: #fff; border-radius: .75rem;
  padding: 2rem; box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.ta-login-card h1 { margin: 0 0 .25rem; font-size: 1.35rem; color: #1e293b; }
.ta-login-card .sub { color: #64748b; font-size: .875rem; margin-bottom: 1.5rem; }
.ta-field { margin-bottom: 1rem; }
.ta-field label { display: block; font-size: .875rem; font-weight: 600; color: #334155; margin-bottom: .35rem; }
.ta-field input {
  width: 100%; padding: .7rem .85rem; border: 1px solid #cbd5e1; border-radius: .5rem;
  font-size: .95rem; box-sizing: border-box;
}
.ta-field input:focus { outline: 2px solid #3c50e0; border-color: #3c50e0; }
.ta-btn {
  width: 100%; padding: .75rem; border: 0; border-radius: .5rem;
  background: #3c50e0; color: #fff; font-weight: 600; cursor: pointer; font-size: .95rem;
}
.ta-btn:hover { background: #2f3eb5; }
.ta-alert-err {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  padding: .75rem; border-radius: .5rem; margin-bottom: 1rem; font-size: .875rem;
}
.ta-menu-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid #e2e8f0;
  border-radius: 10px; background: #fff; font-size: 1.25rem; cursor: pointer;
}
@media (max-width: 1023px) {
  .ta-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .ta-sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 50; transform: translateX(-105%);
    transition: transform .22s ease; box-shadow: 4px 0 24px rgba(0,0,0,.25);
  }
  .ta-sidebar.open { transform: translateX(0); }
  .ta-main { padding: 1rem; }
}

.ta-nav a[data-icon="users"] i { color: #60a5fa; }
.ta-nav a[data-icon="pass"] i { color: #fbbf24; }
.ta-badge.info { background: #dbeafe; color: #1d4ed8; }
.ta-btn-inline {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1rem; border: 0; border-radius: .5rem;
  background: #3c50e0; color: #fff; font-weight: 600; font-size: .875rem; cursor: pointer;
}
.ta-btn-inline:hover { background: #2f3eb5; }
.ta-btn-secondary {
  padding: .55rem 1rem; border: 1px solid #cbd5e1; border-radius: .5rem;
  background: #fff; color: #334155; font-weight: 600; cursor: pointer;
}
.ta-btn-icon {
  border: 0; background: #f1f5f9; color: #475569; width: 2rem; height: 2rem;
  border-radius: .375rem; cursor: pointer; margin-left: .25rem;
}
.ta-btn-icon:hover { background: #e2e8f0; }
.ta-btn-icon.danger { color: #dc2626; }
.ta-select {
  width: 100%; padding: .7rem .85rem; border: 1px solid #cbd5e1; border-radius: .5rem;
  font-size: .95rem; background: #fff;
}
.ta-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; }
.ta-modal.hidden { display: none; }
.ta-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.5); }
.ta-modal-panel {
  position: relative; background: #fff; border-radius: .75rem; padding: 1.5rem;
  width: min(440px, 92vw); max-height: 90vh; overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,.2);
}
.ta-toast {
  position: fixed; top: 1rem; right: 1rem; z-index: 70; padding: .75rem 1rem;
  border-radius: .5rem; font-size: .875rem; font-weight: 600; opacity: 0;
  transform: translateY(-8px); transition: .2s; pointer-events: none;
}
.ta-toast.show { opacity: 1; transform: translateY(0); }
.ta-toast.ok { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.ta-toast.err { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
