/* =========================================================
   VRV ACS FIELD TECHNICIAN TOOLKIT (HIGH-DENSITY NOC THEME)
   8px Spacing • Dark Layered Surfaces • JetBrains Mono • Telecom UX
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
  --bg-app: #090e1a;
  --bg-topbar: #0c101d;
  --bg-card: #0d1322;
  --bg-card-inner: #101726;
  --bg-input: #101626;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-focus: #38bdf8;

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.35);

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --cyan: #38bdf8;
  --purple: #a855f7;

  --text-main: #ffffff;
  --text-sub: #cbd5e1;
  --text-muted: #64748b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 2rem;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.tech-app {
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-app);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

/* TOPBAR */
.tech-header {
  background: var(--bg-topbar);
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 40;
}

.tech-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tech-brand h1 {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.tech-status {
  font-size: 0.72rem;
  color: var(--cyan);
  font-weight: 600;
}

.btn-refresh {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  color: #cbd5e1;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}

.btn-refresh:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* ALERT / INCIDENT BANNER */
.alert-banner {
  margin: 0.85rem 1rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.alert-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.alert-content strong {
  color: #f87171;
  font-size: 0.88rem;
  font-weight: 800;
  display: block;
}

.alert-content span {
  font-size: 0.75rem;
  color: #cbd5e1;
}

/* TABS */
.tech-tabs {
  display: flex;
  background: var(--bg-topbar);
  padding: 0.35rem 0.5rem;
  gap: 0.35rem;
  border-bottom: 1px solid var(--border-color);
  margin: 0 1rem;
  border-radius: var(--radius-md);
}

.tech-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0.55rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tech-tab.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* VIEWS */
.tech-view {
  display: none;
  padding: 1.25rem 1rem;
}

.tech-view.active {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

/* TICKET & FAULT CARDS */
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ticket-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  transition: all 0.15s ease;
}

.ticket-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.ticket-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.ticket-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
}

.ticket-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.ticket-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-action-tech {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-action-tech:hover {
  background: #1d4ed8;
}

.btn-action-tech.resolve {
  background: #10b981;
}

.btn-action-tech.resolve:hover {
  background: #059669;
}

/* OPTICAL METER CARD */
.meter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.meter-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.meter-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: #10b981;
  font-family: var(--font-mono);
  margin: 0.25rem 0 0.5rem 0;
}

.meter-status {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
}

.meter-status.text-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.meter-status.text-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* NOC CAPSULE STATUS PILLS */
.status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-pill.open {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.status-pill.progress {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.status-pill.resolved {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}
