﻿/* ==========================================================================
   AgentSLA — Permanent Locked Enterprise Design System (public/styles.css)
   Aesthetic: Linear / Stripe / Vercel Obsidian Glass & Precision Telemetry
   ========================================================================== */

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

:root {
  --bg-obsidian: #030712;
  --bg-surface: rgba(15, 23, 42, 0.72);
  --bg-surface-elevated: rgba(22, 32, 58, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(0, 240, 255, 0.38);
  --cyan-glow: #00f0ff;
  --cyan-bright: #22d3ee;
  --base-blue: #0052ff;
  --emerald-ok: #10b981;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  background-color: #030712;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(6, 182, 212, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 20%, rgba(0, 82, 255, 0.08), transparent 65%);
  background-attachment: fixed;
  color: #f1f5f9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  selection-background-color: rgba(0, 240, 255, 0.2);
}

::selection {
  background: rgba(0, 240, 255, 0.22);
  color: #ffffff;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace !important;
  font-feature-settings: "liga" 0, "zero" 1;
}

/* ==========================================================================
   1. LOCKED CORE LAYOUT & ANTI-OVERFLOW ARCHITECTURE (DO NOT REMOVE)
   ========================================================================== */

.sla-card {
  background: linear-gradient(180deg, rgba(18, 27, 48, 0.78) 0%, rgba(10, 16, 31, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 12px 32px -8px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.09);
  border-radius: 0.875rem;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden !important;
  min-width: 0 !important;
  max-width: 100% !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.sla-card:hover {
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow:
    0 18px 40px -12px rgba(0, 0, 0, 0.75),
    0 0 24px -6px rgba(6, 182, 212, 0.14),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.14);
}

.sla-url-badge {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px;
  color: #22d3ee;
  background: rgba(6, 182, 212, 0.09);
  border: 1px solid rgba(6, 182, 212, 0.22);
  padding: 7px 11px;
  border-radius: 0.45rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.sla-url-badge:hover {
  background: rgba(6, 182, 212, 0.16);
  border-color: rgba(34, 211, 238, 0.45);
  color: #67e8f9;
}

.sla-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse;
}

.sla-table td, .sla-table th {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.sla-table thead th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.sla-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color 0.18s ease;
}

.sla-table tbody tr:hover {
  background-color: rgba(6, 182, 212, 0.055);
}

/* ==========================================================================
   2. BRAND IDENTITY & HEADER SYSTEM
   ========================================================================== */

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand-wrap:hover {
  opacity: 0.92;
}

.brand-icon-border {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  padding: 1.5px;
  background: linear-gradient(135deg, #00f0ff, #3b82f6, #0052ff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.3);
}

.brand-icon-inner {
  width: 100%;
  height: 100%;
  background: #050914;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
}

.brand-text span {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.32);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #22d3ee;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.brand-live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.92); }
}

/* ==========================================================================
   3. GLASS CARDS, INPUTS, BUTTONS & MICRO-INTERACTIONS
   ========================================================================== */

.glass-card {
  background: linear-gradient(180deg, rgba(22, 28, 46, 0.78) 0%, rgba(12, 17, 30, 0.88) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 12px 32px -10px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.09);
}

.glass-card-hover {
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-hover:hover {
  border-color: rgba(0, 240, 255, 0.38);
  transform: translateY(-3px);
  box-shadow:
    0 16px 36px -10px rgba(0, 240, 255, 0.18),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
}

/* Form Inputs & Selects */
input[type="text"],
input[type="url"],
input[type="number"],
select,
textarea {
  background-color: rgba(2, 6, 23, 0.85) !important;
  border: 1px solid rgba(51, 65, 85, 0.8) !important;
  color: #f8fafc !important;
  border-radius: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: #22d3ee !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15) !important;
}

/* Primary Action Buttons */
button, .btn-primary {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

button:active {
  transform: translateY(1px);
}

/* Copyable Code & Contract Pills */
.copy-chip {
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.copy-chip:hover {
  border-color: rgba(34, 211, 238, 0.5) !important;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.2);
}

/* Floating Toast Notification */
#sla-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(6, 182, 212, 0.25);
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  backdrop-filter: blur(12px);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
  pointer-events: none;
}

#sla-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #030712;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #22d3ee;
}
