/*
  app-modern.css
  Objetivo: dar um visual mais moderno e elegante SEM alterar funcionalidades.
  Este arquivo apenas sobrescreve estilos existentes (Bootstrap/Darkly) e aplica
  uma identidade visual consistente.
*/

:root{
  --bg: #0f1220;
  --panel: rgba(10, 12, 24, .72);
  --panel-2: rgba(16, 18, 34, .78);
  --border: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --radius: 14px;
}

html, body{ height: 100%; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background-color: #181828;
  background-image: url("../img/binding_dark.webp");
  background-size: auto;
  color: var(--text);
}

/* Suaviza e moderniza a tipografia */
h1,h2,h3,h4,h5,h6{ letter-spacing: .2px; }

/* Backdrop leve para áreas principais */
.container-custom,
.card,
.modal-content,
#sidebar-wrapper{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Sidebar */
#sidebar-wrapper{
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#sidebar-wrapper .sidebar-heading{
  padding: 14px 16px;
  font-weight: 700;
  letter-spacing: .4px;
}

#sidebar-wrapper .list-group-item{
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.06);
  padding: 12px 14px;
}

#sidebar-wrapper .list-group-item:hover{
  background: rgba(255,255,255,.06);
}

/* Navbar */
.navbar{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Conteúdo */
#page-content-wrapper .container-fluid{
  padding-top: 12px;
}

/* Botões */
.btn{
  border-radius: 12px;
  font-weight: 600;
}

.btn-primary,
.btn-danger,
.btn-warning{
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
}

/* Inputs */
.form-control{
  border-radius: 12px;
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.form-control:focus{
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 0 0 .15rem rgba(255,255,255,.12);
  color: var(--text);
}

.form-control::placeholder{ color: rgba(255,255,255,.55); }

/* Login */
.auth-wrap{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-card{
  width: 100%;
  max-width: 420px;
  background: var(--panel-2);
  padding: 20px;
}

.auth-card .list-group-item{
  border-radius: 12px;
  text-align: center;
  margin-top: 10px;
}

/* Alerts */
#pageMessages .alert{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
}

/* Modais */
.modal-content{
  background: var(--panel-2);
}

/* Responsivo */
@media (max-width: 768px){
  .navbar{ border-radius: 12px; }
  #pageMessages{ width: 92% !important; }
}
