/* ================================
   TEMA COPEL MOBIFLEX - ADMINLTE 4
================================ */

/* Fonte */
body {
  font-family: "Source Sans 3", sans-serif;
}


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

.card {
  border-radius: 14px;
  box-shadow: 0px 10px 25px rgba(0,0,0,0.06);
}

/* CARD COPEL PERSONALIZADO */

.card-copel {
  border-top: 4px solid #f5821e;
}

.card-copel .card-header {
  background: linear-gradient(90deg, #f5821e, #ff9f43) !important;
  color: #fff;
}

.card-copel .card-title {
  color: #ffffff !important;
  font-weight: 600;
}

/* ================= BASE ================== */

.content-header {
  padding: 1.25rem 0 0.75rem 0;
}

.page-title {
  font-size: 1.9rem;
  font-weight: 600;
  margin: 0;
  color: #333;
}

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

/* Fundo laranja */

.bg-copel-login {
  background: linear-gradient(
    135deg,
    rgba(245, 130, 30, 0.25),
    rgba(255, 159, 67, 0.35)
  );
}


/* Card */

.login-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Header do card */

.login-header {
  background: linear-gradient(90deg, #f5821e, #ff9f43);
  color: #fff;
  padding: 25px 15px;
}

/* Título */

.login-header h3 {
  letter-spacing: 0.5px;
}

/* Subtitulo */

.login-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Logo */

.login-logo-img {
  max-height: 65px;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.25));
}

/* Inputs */

.login-card-body input:focus {
  border-color: #f5821e;
  box-shadow: 0 0 0 0.15rem rgba(245,130,30,0.3);
}

/* Footer */

.login-footer {
  margin-top: 15px;
  color: #fff;
  font-size: 0.85rem;
  opacity: 0.9;
}

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

/* ================= SIDEBAR PADRÃO ================= */


.bg-orange {
  background: linear-gradient(180deg, #f5821e, #d96e18) !important;
}

.app-sidebar{
  width:250px;
  background: linear-gradient(180deg,#f5821e,#d96e18);
  color:#fff;
}

/* topo sidebar */

.sidebar-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px;
  border-bottom:1px solid rgba(255,255,255,.2);
}

/* botão fechar */

.close-sidebar{
  background:none;
  border:none;
  color:#fff;
  font-size:22px;
  cursor:pointer;
}

/* overlay */

#sidebarOverlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  opacity:0;
  pointer-events:none;
  transition:.3s;
  z-index:1040;
}

body.sidebar-open #sidebarOverlay{
  opacity:1;
  pointer-events:auto;
}

/* links */

.app-sidebar .nav-link{
  color:#fff;
  border-radius:8px;
  margin:6px 12px;
  padding:10px 14px;
}

.app-sidebar .nav-link:hover{
  background:rgba(255,255,255,.2);
}

.app-sidebar .nav-link.active{
  background:rgba(255,255,255,.3);
  font-weight:600;
}




/* ================= MOBILE ================= */

@media(max-width:768px){

  #sidebar{
    position:fixed;
    left:-260px;
    top:0;
    height:100%;
    width:260px;
    z-index:1050;
    transition:left .3s ease;
  }

  body.sidebar-open #sidebar{
    left:0;
  }

  .app-main{
    margin-left:0 !important;
  }
}

/* BOTÃO HAMBURGUER MOBILE */

#sidebarToggle{
  color:#f5821e !important;
  font-size:22px;
  border-radius:50%;
  padding:6px 10px;
  transition:.2s;
}

#sidebarToggle:hover{
  color:#d96e18 !important;
  transform: scale(1.05);
}

#sidebarToggle:focus{
  box-shadow:none !important;
}

#sidebarToggle:active{
  background:rgba(245,130,30,.15);
}


.info-icon{
  cursor: pointer;
  font-size: 20px;
  color: #888;
  border-radius: 50%;
  transition: 0.2s;
}

.info-icon:hover{
  color: #F58220; /* laranja Copel */
}

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

.tooltip-inner {
  max-width: 320px;        /* aumenta largura */
  text-align: left;        /* alinha texto */
  font-size: 0.85rem;      /* melhora leitura */
  line-height: 1.4;
  white-space: normal;     /* permite quebra de linha */
}

/* ================= GRÁFICOS RESPONSIVOS ================= */

.chart-wrapper {
  position: relative;
  width: 100%;
  height: 450px;
}

.card canvas {
  padding-top: 10px;
}

@media (max-width: 768px) {
  .chart-wrapper {
    height: 380px;
  }
}

@media (max-width: 480px) {
  .chart-wrapper {
    height: 320px;
  }
}

/* =============================================
   HOME MOBILE - ESTILO PRÓXIMO DA IMAGEM
============================================= */

@media (max-width: 768px) {

  .home-mobile {
    max-width: 420px;
    margin: 0 auto;
  }

  .home-card {
    border-radius: 20px !important;
    background: #ffffff;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
  }

  .home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  }

  .home-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 1.8rem 1rem !important;
  }

  .underline-wavy {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
  }

  .underline-wavy::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #f5821e 20%, #f5821e 80%, transparent 100%);
    border-radius: 3px;
    /* Efeito ondulado simples com múltiplas camadas ou use SVG se quiser mais realismo */
  }

  .info-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(245, 130, 30, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5821e;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
  }

  .info-badge:hover {
    background: rgba(245, 130, 30, 0.25);
  }

  .icon-container {
    color: #333;
    margin-top: 0.5rem;
    line-height: 1;
  }

  .icon-container i {
    color: #444;
  }

  .placeholder-card {
    background: #f8f9fa;
    opacity: 0.4;
  }

  /* Ajuste títulos para caber bem */
  .home-card h5 {
    font-size: 1.1rem;
    line-height: 1.25;
    min-height: 2.8em; /* garante alinhamento */
  }

}

/* Tooltip mais bonito (opcional, mas combina) */
.tooltip-inner {
  background: #333;
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #333;
}