/* =========================================================
   Painel do Atendente — UI Executive Premium
   ========================================================= */

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

:root {
  --bg: #050816;
  --bg-2: #08111f;
  --surface: rgba(15, 23, 42, 0.78);
  --surface-2: rgba(30, 41, 59, 0.78);
  --surface-3: rgba(2, 6, 23, 0.62);

  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(56, 189, 248, 0.34);

  --text: #f8fafc;
  --text-soft: #e2e8f0;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;

  --primary: #38bdf8;
  --primary-2: #0ea5e9;
  --success: #38bdf8;
  --success-2: #67e8f9;
  --warning: #facc15;
  --danger: #ef4444;
  --danger-2: #fb7185;
  --purple: #8b5cf6;
  --pink: #ec4899;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 34px;

  --shadow-xs: 0 8px 22px rgba(0, 0, 0, 0.20);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --shadow-glow: 0 0 45px rgba(56, 189, 248, 0.18);

  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  padding-bottom: 64px;
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.28), transparent 28rem),
    radial-gradient(circle at 92% 10%, rgba(139, 92, 246, 0.25), transparent 30rem),
    radial-gradient(circle at 50% 100%, rgba(56, 189, 248, 0.12), transparent 34rem),
    linear-gradient(135deg, #040713 0%, #0b1222 42%, #111827 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148,163,184,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at top, black, transparent 76%);
}

body::after {
  content: "© 2026 Link Net Banda Larga. Todos os direitos reservados.";
  position: relative;
  display: block;
  width: min(94%, 1280px);
  margin: 42px auto 0;
  padding: 20px 16px 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Container */
.container {
  width: min(94%, 1280px);
  margin: 30px auto;
  animation: fadeUp .42s var(--ease) both;
}

/* Logo */
.logo-login {
  max-width: 180px;
  margin: 0 auto 18px auto;
  display: block;
  filter: drop-shadow(0 22px 34px rgba(56,189,248,.28));
}

.logo-topo {
  max-height: 78px;
  display: block;
  margin: 0 auto 20px auto;
  filter: drop-shadow(0 20px 34px rgba(56,189,248,.25));
}

/* Headings */
h1 {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 18px auto;
  text-align: center;
  color: var(--text);
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.055em;
  text-shadow: 0 22px 70px rgba(56, 189, 248, 0.25);
}

h1::before {
  content: "";
  position: absolute;
  inset: -14px -26px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56,189,248,.12), transparent 68%);
  filter: blur(4px);
}

h1::after {
  content: "";
  display: block;
  width: 96px;
  height: 4px;
  margin: 17px auto 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--success), var(--purple), var(--pink));
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.58);
}

h2 {
  margin-bottom: 14px;
  color: #e0f2fe;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

p {
  color: var(--muted-2);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout grids */
.cards,
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 22px;
  margin-bottom: 30px;
  align-items: stretch;
}

.cards .card,
.grid .card {
  margin-bottom: 0;
  height: 100%;
}

/* Cards */
.card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, .86), rgba(15, 23, 42, .78));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 27px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(20px);
  transition:
    transform .22s var(--ease),
    border-color .22s var(--ease),
    box-shadow .22s var(--ease),
    background .22s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, .14), transparent 32%),
    radial-gradient(circle at top right, rgba(255,255,255,.10), transparent 21rem);
  opacity: .9;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.10), transparent 36%, rgba(255,255,255,.035));
  opacity: .48;
  mask: linear-gradient(#000, transparent 65%);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow), var(--shadow-glow);
}

/* KPI cards: applies naturally to small cards */
.cards > .card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 156px;
}

.cards > .card .label {
  justify-content: center;
}

/* Labels / values */
.label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 10px;
}

.label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--success));
  box-shadow: 0 0 14px rgba(56,189,248,.65);
}

.valor {
  font-size: clamp(29px, 4vw, 44px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.info {
  margin: 9px 0;
  font-size: 15px;
  color: var(--muted-2);
}

.info strong {
  color: #7dd3fc;
  font-weight: 900;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148,163,184,.25), transparent);
  margin: 18px 0;
}

/* Color helpers */
.verde { color: #67e8f9; text-shadow: 0 0 24px rgba(56,189,248,.16); }
.azul { color: #38bdf8; text-shadow: 0 0 24px rgba(56,189,248,.16); }
.amarelo { color: #fde047; text-shadow: 0 0 24px rgba(250,204,21,.14); }
.vermelho { color: #fb7185; text-shadow: 0 0 24px rgba(239,68,68,.14); }

/* Buttons */
button {
  appearance: none;
  border: 0;
  border-radius: 15px;
  padding: 12px 19px;
  margin: 5px;
  cursor: pointer;
  color: white;
  font-weight: 900;
  letter-spacing: .01em;
  background:
    linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow:
    0 15px 34px rgba(56,189,248,.25),
    inset 0 1px 0 rgba(255,255,255,.20);
  transition:
    transform .18s var(--ease),
    box-shadow .18s var(--ease),
    filter .18s var(--ease),
    opacity .18s var(--ease);
}

button:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.07);
  box-shadow:
    0 20px 46px rgba(56,189,248,.34),
    inset 0 1px 0 rgba(255,255,255,.24);
}

button:active {
  transform: translateY(0) scale(.99);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-2), var(--danger));
  box-shadow:
    0 15px 34px rgba(239,68,68,.25),
    inset 0 1px 0 rgba(255,255,255,.20);
}

.btn-danger:hover {
  box-shadow:
    0 20px 46px rgba(239,68,68,.34),
    inset 0 1px 0 rgba(255,255,255,.24);
}

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Inputs */
.input,
select,
textarea,
input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"] {
  width: 100%;
  min-height: 46px;
  padding: 13px 15px;
  border-radius: 15px;
  border: 1px solid rgba(148,163,184,.16);
  outline: none;
  margin-bottom: 14px;
  background: rgba(2, 6, 23, .56);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
  transition:
    border-color .18s var(--ease),
    box-shadow .18s var(--ease),
    background .18s var(--ease);
}

.input:focus,
select:focus,
textarea:focus,
input:focus {
  border-color: rgba(56,189,248,.60);
  background: rgba(2, 6, 23, .76);
  box-shadow:
    0 0 0 4px rgba(56,189,248,.105),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.input::placeholder,
textarea::placeholder,
input::placeholder {
  color: #64748b;
}

select option {
  background: #0f172a;
  color: #fff;
}

/* Login */
.login-box {
  width: min(92%, 470px);
  margin: 88px auto;
  text-align: center;
  animation: fadeUp .45s var(--ease) both;
}

.login-box .card {
  padding: 32px;
  border-radius: var(--radius-xl);
}

.login-subtitle {
  color: #bae6fd;
  margin-bottom: 24px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 20px;
}

thead {
  background: rgba(2, 6, 23, .58);
}

th {
  color: #7dd3fc;
  text-align: left;
  padding: 15px 16px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .085em;
  border-bottom: 1px solid rgba(148,163,184,.14);
  white-space: nowrap;
}

td {
  padding: 16px;
  border-bottom: 1px solid rgba(148,163,184,.09);
  color: #e5e7eb;
  vertical-align: middle;
}

tbody tr:nth-child(even) td {
  background: rgba(15, 23, 42, .28);
}

tbody tr {
  transition: background .16s var(--ease);
}

tr:hover td {
  background: rgba(56, 189, 248, .085);
}

/* Details */
pre {
  white-space: pre-wrap;
  color: #e2e8f0;
  font-family: inherit;
  background: rgba(2, 6, 23, .46);
  padding: 14px;
  border-radius: 15px;
  border: 1px solid rgba(148,163,184,.12);
  margin-top: 10px;
}

summary {
  color: #7dd3fc;
  cursor: pointer;
  font-weight: 900;
}

/* Progress */
.progress {
  width: 100%;
  height: 15px;
  background: rgba(2, 6, 23, .64);
  border: 1px solid rgba(148,163,184,.13);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 14px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.30);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #38bdf8, #6366f1);
  border-radius: 999px;
  box-shadow:
    0 0 18px rgba(56,189,248,.50),
    inset 0 1px 0 rgba(255,255,255,.34);
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
  transform: translateX(-100%);
  animation: shine 2.6s infinite;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,.22);
  background: rgba(2, 6, 23, .52);
  color: #bae6fd;
  font-size: 13px;
  font-weight: 900;
  margin-top: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

/* Special visual polish for common status rows/cards */
span.verde,
span.azul,
span.amarelo,
span.vermelho {
  font-weight: 900;
}

/* Ranking / podium ready classes if used later */
.podio,
.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px;
  align-items: end;
}

.podio .card:nth-child(1),
.podium .card:nth-child(1) {
  border-color: rgba(250,204,21,.36);
  box-shadow: 0 24px 70px rgba(250,204,21,.13);
}

.podio .card:nth-child(2),
.podium .card:nth-child(2) {
  border-color: rgba(203,213,225,.34);
}

.podio .card:nth-child(3),
.podium .card:nth-child(3) {
  border-color: rgba(251,146,60,.34);
}

/* Dashboard/sidebar ready */
.app-shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  width: min(96%, 1440px);
  margin: 24px auto;
}

.sidebar {
  position: sticky;
  top: 22px;
  height: calc(100vh - 44px);
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(2, 6, 23, .66);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xs);
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 14px;
  color: #cbd5e1;
  font-weight: 800;
  margin-bottom: 6px;
  transition: .18s var(--ease);
}

.sidebar a:hover {
  background: rgba(56,189,248,.10);
  color: #fff;
  transform: translateX(3px);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: #020617;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #38bdf8, #38bdf8);
  border-radius: 999px;
  border: 3px solid #020617;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shine {
  0% { transform: translateX(-110%); }
  48%, 100% { transform: translateX(110%); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsivo */
@media (max-width: 980px) {
  .app-shell {
    display: block;
    width: 94%;
  }

  .sidebar {
    position: relative;
    height: auto;
    top: 0;
    margin-bottom: 18px;
  }
}

@media (max-width: 850px) {
  body {
    padding-bottom: 72px;
  }

  body::after {
    right: 50%;
    transform: translateX(50%);
    bottom: 10px;
    white-space: nowrap;
  }

  .container {
    width: 94%;
    margin: 24px auto;
  }

  .card {
    padding: 21px;
    border-radius: 23px;
  }

  .cards,
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .actions {
    gap: 6px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  th,
  td {
    padding: 13px;
  }

  button {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .login-box {
    margin: 46px auto;
  }

  .logo-topo {
    max-height: 62px;
  }

  h1 {
    margin-bottom: 28px;
  }

  .valor {
    font-size: 31px;
  }
}

/* Estrutura global: rodapé sempre no fim da tela */
html{min-height:100%}
body{display:flex!important;flex-direction:column!important;min-height:100vh!important;box-sizing:border-box!important}
body::after{flex:0 0 auto!important;margin-top:auto!important}
body>style{display:none!important}

/* Ações inferiores compartilhadas */
.botao-pagina{min-height:46px;padding:0 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;text-decoration:none!important;font-weight:800;box-sizing:border-box;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.botao-pagina svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.botao-pagina-secundario{color:#c8d8e9!important;border:1px solid #315574;background:#0a1c31}
.botao-pagina-secundario:hover{color:#fff!important;border-color:#4f7da3;background:#102943;transform:translateY(-1px)}
.botao-pagina-primario{color:#fff!important;border:1px solid #2eb8e7;background:#168fca}
.botao-pagina-primario:hover{background:#1ba4df;transform:translateY(-1px)}
