/* =========================================================
   PADRÃO VISUAL BITQUALY / RA QUALITY
   Compatível com Bootstrap 3
========================================================= */

/* ===== Paleta base ===== */
:root{
  --bq-primary:#2f80ed;
  --bq-border:#9fb5de;        /* borda principal bem visível */
  --bq-border-soft:#eef2f7;
  --bq-bg:#ffffff;
  --bq-bg-soft:#f8fbff;
  --bq-text:#1f2a37;
  --bq-text-soft:#6b7280;
  --bq-hero-from:#1f4e79;
  --bq-hero-to:#2f80ed;
}

/* =========================================================
   HERO (cabeçalho de destaque — telas iniciais/home de módulo)
========================================================= */

.bq-hero{
  background:linear-gradient(135deg, var(--bq-hero-from) 0%, var(--bq-hero-to) 100%);
  color:#fff;
  border-radius:20px;
  padding:30px;
  margin-bottom:22px;
  box-shadow:0 12px 30px rgba(31, 78, 121, 0.22);
  position:relative;
  overflow:hidden;
}

.bq-hero:before{
  content:"";
  position:absolute;
  right:-70px;
  top:-80px;
  width:230px;
  height:230px;
  background:rgba(255,255,255,0.12);
  border-radius:50%;
}

.bq-hero:after{
  content:"";
  position:absolute;
  right:100px;
  bottom:-90px;
  width:190px;
  height:190px;
  background:rgba(255,255,255,0.08);
  border-radius:50%;
}

.bq-hero-content{
  position:relative;
  z-index:2;
}

.bq-hero h1{
  margin:0;
  font-weight:800;
  letter-spacing:-0.5px;
}

.bq-hero small{
  color:rgba(255,255,255,0.88);
  font-weight:400;
}

.bq-welcome{
  margin-top:14px;
  font-size:17px;
  color:rgba(255,255,255,0.96);
}

.bq-hero-badge{
  display:inline-block;
  margin-top:16px;
  padding:8px 14px;
  background:rgba(255,255,255,0.16);
  border:1px solid rgba(255,255,255,0.25);
  border-radius:30px;
  font-size:13px;
}

.bq-hero-icon-decor{
  font-size:82px;
  opacity:.25;
  margin-top:10px;
}

@media (max-width: 767px){
  .bq-hero{ padding:24px; }
  .bq-hero h1{ font-size:30px; }
}

/* =========================================================
   CARDS (BORDA EXPLÍCITA)
========================================================= */

.bq-card{
  background:var(--bq-bg);
  border:2px solid var(--bq-border);          /* BORDA PRINCIPAL */
  border-radius:14px;
  padding:16px;
  margin-bottom:16px;

  /* reforço visual da borda */
  box-shadow:
    inset 0 0 0 1px #d7e3f7,
    0 6px 14px rgba(0,0,0,.06);
}

/* ===== Título do card ===== */
.bq-card .bq-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px 0;
  padding-bottom:10px;
  border-bottom:1px solid var(--bq-border-soft);
  font-weight:800;
  letter-spacing:.4px;
  text-transform:uppercase;
  font-size:13px;
  color:var(--bq-text);
}

/* =========================================================
   BADGE (PREENCHIDA)
========================================================= */

.bq-badge{
  display:inline-block;
  padding:6px 14px;
  border-radius:999px;
  background:var(--bq-primary);
  color:#ffffff;
  font-weight:800;
  font-size:11px;
  letter-spacing:.4px;
  box-shadow:0 2px 6px rgba(47,128,237,.35);
}

/* =========================================================
   FORMULÁRIOS
========================================================= */

.bq-card label{
  font-weight:700;
  color:#334155;
  margin-bottom:6px;
}

.bq-help{
  color:var(--bq-text-soft);
  font-size:12px;
  margin-top:6px;
}

.bq-card .form-control{
  border-radius:10px;
  border:1px solid #dfe7f3;
  box-shadow:none;
}

.bq-card textarea.form-control{
  border-radius:12px;
  resize:vertical;
}

.bq-card .form-control:focus{
  border-color:var(--bq-primary);
  box-shadow:0 0 0 3px rgba(11,94,215,.12);
}

.bq-divider{
  height:1px;
  background:var(--bq-border-soft);
  margin:12px 0 16px;
}

/* =========================================================
   ANEXOS
========================================================= */

.bq-files{
  border:2px dashed #dbe7ff;
  background:var(--bq-bg-soft);
  border-radius:14px;
  padding:12px;
}

.bq-files .file-row{
  background:#fff;
  border:1px solid #e8edf5;
  border-radius:12px;
  padding:10px;
  margin-bottom:10px;
}

.bq-files .file-row:last-child{
  margin-bottom:0;
}

/* =========================================================
   BOTÕES BITQUALY (ESTILO BOOTSTRAP)
========================================================= */

.bq-btn{
  display:inline-block;
  padding:6px 12px;
  font-size:14px;
  font-weight:600;
  line-height:1.42857143;
  text-align:center;
  white-space:nowrap;
  vertical-align:middle;
  cursor:pointer;
  user-select:none;
  border:1px solid transparent;
  border-radius:10px;
  background-image:none;
  text-decoration:none !important;
  transition:
    background-color .15s ease-in-out,
    border-color .15s ease-in-out,
    box-shadow .15s ease-in-out;
}

/* ===== Primário ===== */
.bq-btn-primary{
  color:#fff;
  background-color:var(--bq-primary);
  border-color:var(--bq-hero-from);
}

.bq-btn-primary:hover,
.bq-btn-primary:focus{
  background-color:var(--bq-hero-from);
  border-color:#173a5c;
  color:#fff;
}

/* ===== Secundário (com borda) ===== */
.bq-btn-secondary{
  color:#333;
  background-color:#ffffff;
  border-color:#ccc;
}

.bq-btn-secondary:hover,
.bq-btn-secondary:focus{
  background-color:#f2f2f2;
  border-color:#adadad;
  color:#333;
}

/* ===== Sucesso ===== */
.bq-btn-success{
  color:#fff;
  background-color:#5cb85c;
  border-color:#4cae4c;
}

.bq-btn-success:hover{
  background-color:#449d44;
  border-color:#398439;
}

/* ===== Perigo ===== */
.bq-btn-danger{
  color:#fff;
  background-color:#d9534f;
  border-color:#d43f3a;
}

.bq-btn-danger:hover{
  background-color:#c9302c;
  border-color:#ac2925;
}

/* ===== Tamanhos ===== */
.bq-btn-sm{
  padding:5px 10px;
  font-size:12px;
  border-radius:8px;
}

.bq-btn-lg{
  padding:10px 16px;
  font-size:18px;
  border-radius:12px;
}

/* ===== Desabilitado ===== */
.bq-btn[disabled],
.bq-btn.disabled{
  cursor:not-allowed;
  opacity:.65;
  box-shadow:none;
}
