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

:root {
  --bg: #1A1A1A;
  --card: #111111;
  --card2: #151515;
  --border: #4B5320;
  --text: #ffffff;
  --muted: #A3B18A;

  --green: #4B5320;
  --green2: #2F3E1B;
  --green-light: #C4E17F;

  --yellow: #d7a82d;
  --red: #b94a4a;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at center, #4B5320 0%, #1A1A1A 45%, #080808 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x:hidden;
  position:relative;
}


/* FUNDO MILITAR ANIMADO */

body::before {

  content:"";

  position:fixed;
  inset:-20%;

  background:
    linear-gradient(
      120deg,
      transparent 35%,
      rgba(196,225,127,.12),
      transparent 65%
    ),
    radial-gradient(
      circle,
      rgba(196,225,127,.15) 2px,
      transparent 3px
    );

  background-size:
    250% 250%,
    70px 70px;

  animation:
    movimentoMilitar 18s linear infinite;

  pointer-events:none;
  z-index:-1;

}


@keyframes movimentoMilitar {

  0% {
    transform:translateX(-10%) translateY(-5%);
  }

  50% {
    transform:translateX(10%) translateY(5%);
  }

  100% {
    transform:translateX(-10%) translateY(-5%);
  }

}


button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: auto;
  padding: 18px 16px 100px;
}

/* =========================
   HEADER
========================= */

.top-header {
  margin-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #263b2b, #111a13);
  border: 1px solid #3a5140;
  font-size: 27px;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.brand h1 {
  font-size: 15px;
  letter-spacing: 1px;
}

.brand p {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 3px;
  margin-top: 5px;
}

/* =========================
   LOGIN
========================= */

.hero {
  text-align: center;
  margin: 28px 0 20px;
}

.hero-icon {
  display: block;
  font-size: 40px;
  margin-bottom: 12px;
}

.hero h2 {
  font-size: 25px;
  margin-bottom: 7px;
}

.hero p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.card {
  background: rgba(17, 24, 18, .97);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px 19px;
  box-shadow: 0 20px 50px rgba(0,0,0,.38);
}

label {
  display: block;
  color: #d5ddd7;
  font-size: 13px;
  font-weight: bold;
  margin: 0 0 8px;
}

input,
select {
  width: 100%;
  padding: 15px;
  margin-bottom: 16px;
  border-radius: 13px;
  border: 1px solid #304034;
  background: #090e0b;
  color: white;
  outline: none;
}

input::placeholder {
  color: #59635c;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(75,83,32,.18);
}

.primary-btn {
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--green), var(--green2));
  color: white;
  font-weight: 800;
  letter-spacing: .5px;
  box-shadow: 0 10px 25px rgba(0,0,0,.3);
}

.primary-btn:active,
.point-btn:active,
.secondary-btn:active {
  transform: scale(.98);
}

.switch-text {
  text-align: center;
  margin-top: 19px;
  color: var(--muted);
  font-size: 13px;
}

.switch-text strong {
  color: white;
  cursor: pointer;
}

/* =========================
   DASHBOARD
========================= */

.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 17px;
}

.small-label {
  display: block;
  color: #69766d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
  margin-bottom: 5px;
}

.dashboard-head h2 {
  font-size: 27px;
}

.server-badge {
  padding: 7px 10px;
  border-radius: 20px;
  background: rgba(75,83,32,.18);
  border: 1px solid rgba(196,225,127,.25);
  color: #C4E17F;
  font-size: 10px;
  font-weight: bold;
}

/* =========================
   USER CARD
========================= */

.user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  margin-bottom: 22px;
  background: rgba(17,17,17,.45);
  backdrop-filter: blur(10px);
  border: 1px solid #8BAE5A;
  box-shadow: 0 10px 35px rgba(0,0,0,.45);
  border-radius: 19px;
}

.avatar,
.profile-avatar,
.member-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(196,225,127,.15);
  border: 1px solid rgba(196,225,127,.35);
  color: #C4E17F;
  font-size: 25px;
}

.user-info h3 {
  font-size: 17px;
  margin-bottom: 5px;
}

.user-info p {
  color: var(--muted);
  font-size: 12px;
}

/* =========================
   SECTION
========================= */

.section-title {
  margin-bottom: 12px;
}

.section-title h3 {
  font-size: 16px;
}

/* =========================
   STATS
========================= */

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.stat-card {
  min-height: 91px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 17px;
}

.stat-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #1c271e;
  font-size: 17px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-card strong {
  display: block;
  font-size: 23px;
}

.stat-card.online {
  border-color: rgba(196,225,127,.25);
}

.stat-card.paused {
  border-color: rgba(215,168,45,.25);
}

.stat-card.finished {
  border-color: rgba(185,74,74,.2);
}

/* =========================
   STATUS
========================= */

.status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px;
  margin-bottom: 12px;
  background: #101710;
  border: 1px solid var(--border);
  border-radius: 17px;
}

.status-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.status-card p {
  color: var(--muted);
  font-size: 11px;
}

.status-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #69736d;
  box-shadow: 0 0 12px rgba(120,130,123,.4);
}

.status-dot.active {
  background: #55b762;
  box-shadow: 0 0 15px rgba(85,183,98,.65);
}

.status-dot.paused {
  background: var(--yellow);
  box-shadow: 0 0 15px rgba(215,168,45,.55);
}

/* =========================
   PONTO
========================= */

.point-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  margin-bottom: 23px;
  text-align: left;
  border: 1px solid #8BAE5A;
  border-radius: 17px;
  background: linear-gradient(135deg, #4B5320, #2F3E1B);
  color: white;
  box-shadow: 0 13px 30px rgba(0,0,0,.35);
}

.point-btn > span:first-child {
  font-size: 27px;
}

.point-btn strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.point-btn small {
  color: #c4ddc7;
  font-size: 10px;
}

/* =========================
   HISTÓRICO
========================= */

.history-title {
  margin-top: 3px;
}

.history-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 17px;
  overflow: hidden;
  margin-bottom: 13px;
}

.empty-history {
  padding: 27px 15px;
  text-align: center;
  color: var(--muted);
}

.empty-history span {
  display: block;
  font-size: 25px;
  margin-bottom: 8px;
}

.empty-history p {
  font-size: 12px;
}

.history-item {
  display: flex;
  gap: 12px;
  padding: 15px;
  border-bottom: 1px solid #202b23;
}

.history-item:last-child {
  border-bottom: 0;
}

.history-icon {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c3020;
  color: #6cc477;
}

.history-main strong,
.history-main span {
  display: block;
}

.history-main strong {
  font-size: 12px;
  margin-bottom: 5px;
}

.history-main span {
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}

/* =========================
   BOTÕES SECUNDÁRIOS
========================= */

.secondary-btn {
  width: 100%;
  padding: 14px;
  margin-top: 4px;
  border: 1px solid #344238;
  border-radius: 13px;
  background: #141c16;
  color: #d9e0db;
  font-size: 12px;
  font-weight: 800;
}

.logout-btn {
  width: 100%;
  padding: 13px;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #8f625f;
  font-size: 11px;
  font-weight: bold;
}

/* =========================
   NAVEGAÇÃO
========================= */

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 13px;
  transform: translateX(-50%);
  width: calc(100% - 30px);
  max-width: 450px;
  display: flex;
  justify-content: space-around;
  padding: 8px;
  background: rgba(14,20,16,.95);
  border: 1px solid #2b392f;
  border-radius: 18px;
  backdrop-filter: blur(15px);
  box-shadow: 0 12px 35px rgba(0,0,0,.5);
  z-index: 20;
}

.nav-item {
  flex: 1;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #69746d;
}

.nav-item span,
.nav-item small {
  display: block;
}

.nav-item span {
  font-size: 17px;
  margin-bottom: 3px;
}

.nav-item small {
  font-size: 9px;
}

.nav-item.active {
  color: #C4E17F;
}

/* =========================
   PÁGINAS
========================= */

.page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 20px;
}

.page-head h2 {
  font-size: 24px;
}

.back-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #141c16;
  color: white;
  font-size: 20px;
}

/* =========================
   MEMBROS
========================= */

.members-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  margin-bottom: 13px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--card);
}

.members-summary > span {
  font-size: 25px;
}

.members-summary strong,
.members-summary small {
  display: block;
}

.members-summary strong {
  font-size: 22px;
}

.members-summary small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}

.members-list {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 17px;
  margin-bottom: 12px;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #202b23;
}

.member-item:last-child {
  border-bottom: 0;
}

.member-avatar {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: #202c23;
  font-size: 18px;
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-info strong,
.member-info span,
.member-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-info strong {
  font-size: 12px;
}

.member-info span {
  color: #aab5ad;
  font-size: 10px;
  margin-top: 3px;
}

.member-info small {
  color: #657168;
  font-size: 9px;
  margin-top: 2px;
}

.member-status {
  font-size: 8px;
  font-weight: bold;
  white-space: nowrap;
}

.member-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 3px;
  background: #68736c;
}

.member-online {
  color: #69ba75;
}

.member-online i {
  background: #55b762;
}

.member-paused {
  color: #d8ad3b;
}

.member-paused i {
  background: #d8ad3b;
}

.member-offline {
  color: #7e8881;
}

.readonly-note {
  text-align: center;
  color: #657067;
  font-size: 10px;
  margin: 13px 0;
}

/* =========================
   PERFIL
========================= */

.profile-card {
  text-align: center;
  padding: 25px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 22px;
  background: #243529;
  font-size: 35px;
}

.profile-card h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.rank-badge {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 20px;
  background: #1d2d21;
  border: 1px solid #314935;
  color: #83bd8b;
  font-size: 10px;
  font-weight: bold;
}

.profile-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.profile-info > div {
  padding: 15px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 15px;
}

.profile-info span,
.profile-info strong {
  display: block;
}

.profile-info span {
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 6px;
}

.profile-info strong {
  font-size: 12px;
}

/* =========================
   CELULAR PEQUENO
========================= */

@media (max-width: 360px) {

  .app {
    padding-left: 12px;
    padding-right: 12px;
  }

  .stats-grid {
    gap: 7px;
  }

  .stat-card {
    padding: 11px;
  }

  .stat-icon {
    width: 33px;
    height: 33px;
  }

  .stat-card strong {
    font-size: 20px;
  }

}

/* Ajuste do nome no Histórico Geral */
.history-main span:first-child {
  color: #d9e0db;
  font-size: 12px;
  margin-top: 0;
  margin-bottom: 5px;
}

.history-main .nome-historico-geral {
  display: block;
  color: #d9e0db;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 5px 0;
  line-height: 1.2;
}

/* Ajuste da navegação inferior */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.bottom-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bottom-nav .nav-item span {
  display: block;
  line-height: 1;
  margin-bottom: 5px;
}

.bottom-nav .nav-item small {
  display: block;
  line-height: 1;
  white-space: nowrap;
}
