/* =====================================================
   OZONCORE • COMPONENTS
   BOTÕES / INPUTS / CARDS / BADGES / TABS
===================================================== */

/* ===============================
   BOTÕES BASE
=============================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding:0 18px;
  min-height:46px;
  width:auto;

  border-radius:14px;
  border:none;
  outline:none;

  font-weight:600;
  font-size:14px;
  line-height:1;

  cursor:pointer;
  transition:all .18s ease;

  white-space:nowrap;
  text-align:center;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
}


@media(max-width:900px){

  .main{
    padding:20px 16px calc(var(--mobile-nav-height) + 20px + var(--mobile-safe-area));
  }

}

.btn:disabled{
  opacity:.6;
  cursor:not-allowed;
  transform:none !important;
}

.btn-full{
  width:100%;
}

/* PRIMARY */
.btn-primary{
  background:linear-gradient(90deg,#00FFD1,#00B8FF);
  color:#000;
  box-shadow:0 10px 24px rgba(0,255,209,0.15);
}

.btn-primary:hover{
  transform:translateY(-1px);
  filter:brightness(1.03);
}

/* SECONDARY */
.btn-secondary{
  background:#1F2937;
  color:#E5E7EB;
  border:1px solid rgba(255,255,255,0.05);
}

.btn-secondary:hover{
  background:#273244;
  transform:translateY(-1px);
}

/* DANGER */
.btn-danger{
  background:#EF4444;
  color:#fff;
}

.btn-danger:hover{
  filter:brightness(1.05);
  transform:translateY(-1px);
}

/* ===============================
   INPUTS
=============================== */

.input{
  width:100%;
  height:48px;
  min-height:48px;

  padding:0 14px;

  border-radius:14px;
  border:1px solid rgba(255,255,255,0.08);

  background:#0F172A;
  color:#fff;

  font-size:15px;
  outline:none;

  transition:all .18s ease;
}

.input:focus{
  border-color:#00FFD1;
  box-shadow:0 0 0 2px rgba(0,255,209,0.08);
}

.input::placeholder{
  color:#6B7280;
}

/* ===============================
   LABEL
=============================== */

.label{
  display:block;
  font-size:14px;
  font-weight:600;
  margin-bottom:6px;
  color:#E5E7EB;
}

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

.card{
  background:linear-gradient(180deg,#0F1A2D,#0C1626);
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.05);
  padding:20px;
  position:relative;
  /* overflow removido para evitar quebra de layout em páginas complexas */
}

/* HEADER INTERNO DE CARD */
.card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
  font-size:15px;
  font-weight:700;
  color:#E6EDF3;
}

/* ===============================
   TABELAS DENTRO DE CARD
=============================== */

.card table{
  width:100%;
  border-collapse:collapse;
  border-spacing:0;
}

.card thead th{
  text-align:left;
  padding:14px 12px;
  color:#94A3B8;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.6px;
}

.card thead tr{
  border-bottom:1px solid rgba(0,255,209,0.3);
}

.card td{
  padding:16px 12px;
  font-size:14px;
  color:#E6EDF3;
}

.card tbody tr{
  border-bottom:1px solid rgba(255,255,255,0.12);
  transition:.2s;
}

.card tbody tr:last-child{
  border-bottom:none;
}

.card tbody tr:hover{
  background:rgba(0,255,209,0.05);
}

/* ===============================
   BADGES
=============================== */

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  line-height:1;
}

.badge-success{
  background:rgba(16,185,129,0.15);
  color:#10B981;
}

.badge-warning{
  background:rgba(245,158,11,0.15);
  color:#F59E0B;
}

.badge-danger{
  background:rgba(239,68,68,0.15);
  color:#EF4444;
}

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

.status-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(16,185,129,.12);
  color:#10B981;
  font-size:12px;
  font-weight:700;
  width:max-content;
  border:1px solid rgba(16,185,129,.25);
}

.status-pill.inativo{
  background:rgba(148,163,184,.10);
  color:#94A3B8;
  border:1px solid rgba(148,163,184,.18);
}

.status-pill.alerta{
  background:rgba(245,158,11,.10);
  color:#F59E0B;
  border:1px solid rgba(245,158,11,.22);
}

/* ===============================
   TABS (PADRÃO GLOBAL)
=============================== */

.tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:10px 16px;
  min-height:40px;
  border-radius:999px;

  background:#1F2937;
  color:#9CA3AF;

  font-size:14px;
  font-weight:600;

  cursor:pointer;
  transition:.2s;
  border:1px solid transparent;
}

.tab:hover{
  background:#273244;
  color:#E5E7EB;
}

.tab.active{
  background:linear-gradient(90deg,#00FFD1,#00B8FF);
  color:#000;
}

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

@media (max-width:768px){

  .btn{
    min-height:44px;
    border-radius:12px;
    font-size:14px;
  }

  .input{
    height:46px;
    min-height:46px;
    border-radius:12px;
    font-size:14px;
  }

  .card{
    padding:16px;
    border-radius:16px;
  }

  .card-header{
    font-size:14px;
    margin-bottom:14px;
  }

  .tab{
    min-height:38px;
    padding:9px 14px;
    font-size:13px;
  }
}

/* =========================================
   MENU FIXO GLOBAL (PADRÃO APP)
========================================= */

.mobile-bottom-nav{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  height:64px;

  background:#020617;
  border-top:1px solid #1E293B;

  display:flex;
  align-items:center;

  z-index:9999; /* importante */
}

/* =========================================
   FIX MENU + PADRÃO GLOBAL (CORREÇÃO FINAL)
========================================= */

html, body{
  margin:0;
  padding:0;
}

@media (max-width:768px){

  .mobile-bottom-nav{
    bottom:0 !important;
  }

  .main{
    padding-bottom:90px !important;
  }

}

/* =====================================================
   CELULAR PEQUENO - 12-04
===================================================== */

@media (max-width: 420px){

  .page-title{
    font-size:24px;
  }

  .page-sub{
    font-size:13px;
  }

  .tab{
    font-size:13px;
    padding:11px 16px;
  }

  .label{
    font-size:14px;
  }

  .input{
    height:48px;
    padding:0 14px;
    border-radius:14px;
    font-size:15px;
  }

  .btn-primary{
    min-height:48px;
    border-radius:14px;
    font-size:15px;
  }

  .btn-secondary{
    min-height:44px;
    border-radius:13px;
    font-size:14px;
  }

  .logo-box{
    width:128px;
    height:128px;
    border-radius:20px;
  }

  .tab-content .card{
    padding:18px 14px;
    border-radius:20px;
  }
}

.mobile-nav-item{
  flex:1;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  height:100%;

  text-decoration:none;

  font-size:11px;
  font-weight:500;

  color:#64748B;

  gap:4px;

  transition:.2s;
}

.mobile-nav-icon{
  width:22px;
  height:22px;
}

.mobile-nav-icon svg{
  width:100%;
  height:100%;
}

.mobile-nav-label{
  font-size:11px;
  line-height:1;
  text-align:center;
  white-space:nowrap;
}

.mobile-nav-item.active{
  color:#00FFD6;
  font-weight:600;
}

.mobile-nav-item.active svg{
  stroke:#00FFD6;
}

.mobile-nav-item:active{
  transform:scale(0.9);
}

@media(max-width:900px){

  .main{
    padding-top:20px;
    padding-left:16px;
    padding-right:16px;
    padding-bottom:calc(var(--mobile-nav-height) + 20px + var(--mobile-safe-area));
  }

}
