﻿/* =========================================================
   WPLAY GESTOR — DASHBOARD FUTURISTA
   ========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #020711;
  color: #eaf4ff;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 20%, rgba(0,132,255,.12), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(0,210,255,.06), transparent 28%),
    linear-gradient(135deg, #020711 0%, #04111f 48%, #020711 100%);
}

/* Fundo tecnológico */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .12;
  background-image:
    linear-gradient(rgba(0,157,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,157,255,.18) 1px, transparent 1px);
  background-size: 65px 65px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

body::after {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  right: -180px;
  top: 80px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, rgba(0,130,255,.10), transparent 68%);
  filter: blur(25px);
}

/* =========================
   BARRA LATERAL
   ========================= */

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 245px;
  padding: 28px 16px;
  background:
    linear-gradient(180deg, rgba(3,16,31,.97), rgba(2,9,19,.98));
  border-right: 1px solid rgba(0,174,255,.16);
  box-shadow: 8px 0 40px rgba(0,0,0,.28);
  z-index: 20;
}

.sidebar::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 12%;
  width: 1px;
  height: 76%;
  background: linear-gradient(transparent, #079fff, transparent);
  opacity: .7;
}

.brand {
  padding: 4px 12px 30px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #f5faff;
}

.brand span {
  color: #08aaff;
  text-shadow: 0 0 20px rgba(0,174,255,.4);
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #7892aa;
  text-decoration: none;
  font-size: 13px;
  transition: .2s ease;
}

.sidebar nav a:hover {
  color: #dff5ff;
  background: rgba(0,146,255,.07);
  border-color: rgba(0,174,255,.12);
}

.sidebar nav a.active {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(0,157,255,.17), rgba(0,157,255,.035));
  border-color: rgba(0,174,255,.25);
  box-shadow: inset 3px 0 0 #08aaff, 0 0 24px rgba(0,157,255,.07);
}

.sidebar nav a.active::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #08b8ff;
  box-shadow: 0 0 10px #08b8ff;
}

/* =========================
   CONTEÚDO
   ========================= */

.content {
  margin-left: 245px;
  min-height: 100vh;
  padding: 30px 34px 50px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(110,160,195,.12);
}

header h1 {
  margin: 0;
  color: #f4f9ff;
  font-size: 29px;
  letter-spacing: -.5px;
}

header p {
  margin: 7px 0 0;
  color: #718ba1;
  font-size: 13px;
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(0,220,150,.16);
  border-radius: 20px;
  background: rgba(0,180,130,.045);
  color: #80b7a6;
  font-size: 12px;
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16d89b;
  box-shadow: 0 0 12px rgba(22,216,155,.8);
}

/* =========================
   CARDS
   ========================= */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 22px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  min-height: 145px;
  border: 1px solid rgba(83,139,176,.17);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(8,28,46,.82), rgba(3,14,26,.91));
  box-shadow:
    0 18px 45px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.025);
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 55%;
  height: 1px;
  background: linear-gradient(90deg, #079fff, transparent);
  opacity: .8;
}

.card::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -50px;
  bottom: -50px;
  border-radius: 50%;
  background: rgba(0,157,255,.08);
  filter: blur(10px);
}

.card small {
  display: block;
  color: #7692a8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card strong {
  display: block;
  margin: 14px 0 7px;
  color: #ffffff;
  font-size: 31px;
  line-height: 1;
}

.card span {
  color: #58748a;
  font-size: 12px;
}

/* =========================
   WELCOME
   ========================= */

.welcome {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(67,132,174,.18);
  border-radius: 17px;
  background:
    radial-gradient(circle at 85% 40%, rgba(0,144,255,.10), transparent 30%),
    linear-gradient(145deg, rgba(7,25,42,.86), rgba(2,12,22,.94));
  box-shadow: 0 20px 55px rgba(0,0,0,.2);
}

.welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image:
    linear-gradient(rgba(0,174,255,.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,174,255,.25) 1px, transparent 1px);
  background-size: 42px 42px;
}

.welcome h2,
.welcome p,
.welcome .grid {
  position: relative;
  z-index: 1;
}

.welcome h2 {
  margin: 0 0 10px;
  font-size: 21px;
  color: #f4f9ff;
}

.welcome p {
  margin: 0;
  max-width: 700px;
  color: #718da4;
  font-size: 13px;
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.grid > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 13px;
  border: 1px solid rgba(66,131,172,.15);
  border-radius: 11px;
  background: rgba(2,13,24,.55);
}

.grid b {
  color: #08aaff;
  font-size: 12px;
}

.grid span {
  color: #a1b5c5;
  font-size: 12px;
}

/* =========================
   SEÇÕES / FORMULÁRIOS
   ========================= */

.page-section {
  animation: sectionIn .25s ease;
}

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

.hidden {
  display: none !important;
}

.section-toolbar,
.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-toolbar {
  margin-bottom: 22px;
}

.section-toolbar h2,
.form-header h3 {
  margin: 0;
  color: #f1f7fd;
}

.section-toolbar p,
.form-header p {
  margin: 6px 0 0;
  color: #6e899f;
  font-size: 13px;
}

.form-card {
  padding: 25px;
  border: 1px solid rgba(73,138,181,.18);
  border-radius: 16px;
  background: rgba(4,19,33,.88);
  box-shadow: 0 20px 55px rgba(0,0,0,.22);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: #8fa8ba;
  font-size: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(79,139,176,.2);
  border-radius: 9px;
  outline: none;
  color: #eaf5ff;
  background: rgba(1,10,19,.75);
  font: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #4d667a;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(0,174,255,.65);
  box-shadow: 0 0 0 3px rgba(0,157,255,.08), 0 0 18px rgba(0,157,255,.08);
}

.primary-button {
  border: 1px solid rgba(0,174,255,.42);
  border-radius: 9px;
  padding: 11px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #087fc5, #07518a);
  box-shadow: 0 8px 22px rgba(0,125,210,.16);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.primary-button:hover {
  filter: brightness(1.12);
}

.close-button {
  width: 35px;
  height: 35px;
  border: 1px solid rgba(110,160,195,.18);
  border-radius: 8px;
  color: #86a0b4;
  background: rgba(5,18,31,.7);
  cursor: pointer;
  font-size: 20px;
}

.close-button:hover {
  color: #ffffff;
  border-color: rgba(0,174,255,.35);
}

/* =========================
   RESPONSIVO
   ========================= */

@media (max-width: 1050px) {
  .sidebar {
    width: 210px;
  }

  .content {
    margin-left: 210px;
    padding: 25px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 15px;
  }

  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .content {
    margin-left: 0;
    padding: 20px 15px 35px;
  }

  header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cards,
  .form-grid,
  .grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ACABAMENTO DOS PAINÉIS
   ========================================================= */

.secondary-button {
  border: 1px solid rgba(82,143,181,.28);
  border-radius: 9px;
  padding: 10px 15px;
  color: #9eb6c8;
  background: rgba(5,19,32,.78);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  transition: .2s ease;
}

.secondary-button:hover {
  color: #ffffff;
  border-color: rgba(0,174,255,.45);
  background: rgba(0,132,210,.10);
  box-shadow: 0 0 18px rgba(0,157,255,.08);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.form-card label {
  color: #8fa8ba;
  font-size: 12px;
}

.form-card input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0 8px 0 0;
  accent-color: #08aaff;
  vertical-align: middle;
}

/* =========================
   TABELA DE PAINÉIS
   ========================= */

.table-card {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(73,138,181,.18);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(5,22,38,.88), rgba(2,12,22,.94));
  box-shadow: 0 20px 55px rgba(0,0,0,.20);
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(73,138,181,.13);
}

.table-header h3 {
  margin: 0;
  color: #f1f7fd;
  font-size: 16px;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.table-card table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}

.table-card th {
  padding: 13px 16px;
  text-align: left;
  color: #6f8da5;
  background: rgba(2,12,22,.65);
  border-bottom: 1px solid rgba(73,138,181,.14);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.table-card td {
  padding: 14px 16px;
  color: #a9bdcc;
  border-bottom: 1px solid rgba(73,138,181,.08);
  font-size: 12px;
}

.table-card tbody tr {
  transition: background .2s ease;
}

.table-card tbody tr:hover {
  background: rgba(0,157,255,.045);
}

.table-card tbody tr:last-child td {
  border-bottom: 0;
}

/* =========================
   RESPONSIVO DA TABELA
   ========================= */

@media (max-width: 720px) {
  .form-actions {
    flex-wrap: wrap;
  }

  .table-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

















.planos-acoes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.planos-acoes button {
  white-space: nowrap;
  min-width: 82px;
}

#planos-section .table-card table {
  min-width: 980px;
}

#planos-section .table-card th,
#planos-section .table-card td {
  vertical-align: middle;
}

/* =========================================================
   WPLAY GESTOR — NOVO VISUAL DA TELA CLIENTES
   ========================================================= */

#clientes-section {
  animation: wplayClientesEntrada .25s ease;
}

#clientes-section .section-header {
  margin-bottom: 22px;
  align-items: center;
}

#clientes-section .section-header h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: #f4f8fc;
}

#clientes-section .section-header p {
  margin: 0;
  color: #718da3;
  font-size: 13px;
}

#clientes-section #btn-novo-cliente {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,157,255,.12);
  transition: .2s ease;
}

#clientes-section #btn-novo-cliente:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,157,255,.20);
}

/* Caixa da tabela */
#clientes-section .table-wrapper {
  border: 1px solid rgba(73,138,181,.18);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(5,22,38,.90), rgba(2,12,22,.96));
  box-shadow: 0 18px 50px rgba(0,0,0,.20);
  overflow-x: auto;
  overflow-y: hidden;
}

/* Tabela */
#clientes-section table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
}

#clientes-section thead th {
  padding: 14px 16px;
  background: rgba(2,12,22,.72);
  color: #6f8da5;
  border-bottom: 1px solid rgba(73,138,181,.16);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  white-space: nowrap;
}

#clientes-section tbody td {
  padding: 15px 16px;
  color: #b2c3cf;
  border-bottom: 1px solid rgba(73,138,181,.08);
  font-size: 12px;
  vertical-align: middle;
}

#clientes-section tbody tr {
  transition: background .18s ease, transform .18s ease;
}

#clientes-section tbody tr:hover {
  background: rgba(0,157,255,.045);
}

#clientes-section tbody tr:last-child td {
  border-bottom: 0;
}

/* Ações */
#clientes-section tbody td:last-child {
  white-space: nowrap;
}

#clientes-section tbody td:last-child button {
  min-height: 34px;
  padding: 0 11px;
  margin-right: 6px;
  border-radius: 8px;
  border: 1px solid rgba(82,143,181,.28);
  background: rgba(5,19,32,.78);
  color: #a9c0d0;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: .18s ease;
}

#clientes-section tbody td:last-child button:hover {
  color: #ffffff;
  border-color: rgba(0,174,255,.45);
  background: rgba(0,132,210,.12);
  transform: translateY(-1px);
}

#clientes-section tbody td:last-child button:last-child {
  border-color: rgba(0,174,255,.30);
  color: #75cfff;
}

/* Status */
#clientes-section tbody td:nth-child(5) {
  font-weight: 600;
}

/* Vencimento */
#clientes-section tbody td:nth-child(6) {
  color: #91aabd;
  white-space: nowrap;
}

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

@media (max-width: 720px) {
  #clientes-section .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  #clientes-section #btn-novo-cliente {
    width: 100%;
  }
}


/* =========================================================
   WPLAY GESTOR — KPIs DA TELA CLIENTES
   ========================================================= */

#clientes-section .clientes-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

#clientes-section .cliente-kpi {
  min-height: 104px;
  padding: 18px 20px;
  border: 1px solid rgba(73,138,181,.18);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(5,22,38,.92), rgba(2,12,22,.98));
  box-shadow: 0 14px 35px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: .2s ease;
}

#clientes-section .cliente-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(0,174,255,.30);
  box-shadow: 0 18px 40px rgba(0,0,0,.24);
}

#clientes-section .cliente-kpi-label {
  color: #718da3;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
}

#clientes-section .cliente-kpi strong {
  color: #f4f8fc;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.8px;
}

@media (max-width: 1100px) {
  #clientes-section .clientes-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #clientes-section .clientes-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  #clientes-section .clientes-kpis {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   WPLAY GESTOR — PAGINAÇÃO DA TELA CLIENTES
   ========================================================= */
#clientes-section .clientes-paginacao {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}

#clientes-section .clientes-paginacao button {
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(73,138,181,.22);
  border-radius: 8px;
  background: rgba(5,19,32,.78);
  color: #9db4c4;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: .18s ease;
}

#clientes-section .clientes-paginacao button:hover:not(:disabled) {
  color: #ffffff;
  border-color: rgba(0,174,255,.45);
  background: rgba(0,132,210,.12);
  transform: translateY(-1px);
}

#clientes-section .clientes-paginacao button.ativo {
  color: #ffffff;
  border-color: rgba(0,174,255,.50);
  background: rgba(0,132,210,.24);
  box-shadow: 0 5px 16px rgba(0,132,210,.12);
}

#clientes-section .clientes-paginacao button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  #clientes-section .clientes-paginacao {
    justify-content: center;
  }
}
