/* ========================================
   VARIÁVEIS E TEMA MODERNO
   ======================================== */
@font-face {
font-family: 'Bree';
src: url('/fonts/Bree-Regular.ttf') format('truetype');
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Bree';
src: url('/fonts/Bree-Bold.ttf') format('truetype');
font-weight: 700;
font-style: normal;
font-display: swap;
}

:root {
--bs-body-font-family: 'Bree', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
--bs-font-sans-serif: 'Bree', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
font-family: var(--bs-body-font-family);
font-weight: 400;
}


/* ========================================
   NAVBAR MODERNA
   ======================================== */
.navbar-brand,
.page-title,
.card-header,
.table thead th {
font-weight: 700;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  height: var(--header-height);
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
}

/* ========================================
   CARDS E CONTAINERS
   ======================================== */
.card {
  border: none;
  border-radius: var(--bs-border-radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s ease;
}

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

.card-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-weight: 600;
  padding: 1rem 1.25rem;
}

/* ========================================
   BOTÕES MODERNOS
   ======================================== */
.btn {
  border-radius: 0.375rem;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-primary{
background: linear-gradient(135deg, #4376B1 0%, #254086 100%);
border: none;
}
.btn-primary:hover{
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(228, 229, 231, 0.35);
}

.btn-success {
  background: linear-gradient(135deg, #4376B1 0%, #254086 100%);
  border: none;
  color: #efefef;
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(77, 109, 239, 0.4);
}

/* ========================================
   INPUTS E FORMS
   ======================================== */
.form-control,
.form-select {
  border-radius: 0.375rem;
  border: 1px solid #dee2e6;
  padding: 0.625rem 0.875rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #495057;
  font-size: 0.9rem;
}

/* ========================================
   TABELAS MODERNAS
   ======================================== */
.table {
  background: white;
  border-radius: var(--bs-border-radius);
  overflow: hidden;
}

.table thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: #6c757d;
  padding: 1rem 0.75rem;
}

.table tbody tr {
  transition: background-color 0.15s ease;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.page-header h1 {
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.25rem;
}

.page-header .subtitle {
  color: #6c757d;
  font-size: 0.95rem;
}

/* ========================================
   BADGES MODERNOS
   ======================================== */
.badge {
  padding: 0.35rem 0.65rem;
  font-weight: 500;
  border-radius: 0.25rem;
}

/* ========================================
   ANIMAÇÕES SUAVES
   ======================================== */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   TOAST CUSTOMIZADO
   ======================================== */
.toast {
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast-header {
  background-color: #667eea;
  color: white;
  border-bottom: none;
}

.toast-header .btn-close {
  filter: invert(1);
}

/* ========================================
   LOADING STATE
   ======================================== */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15rem;
}

/* ========================================
   RESPONSIVO
   ======================================== */
@media (max-width: 768px) {
  .card {
    margin-bottom: 1rem;
  }
  
  .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

.login-logo {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.home-wrap {
position: relative;
min-height: 100vh;
overflow: hidden;
background: #0b1220;
}

.home-bg {
position: absolute;
inset: -40%;
background:
radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.35), transparent 45%),
radial-gradient(circle at 80% 30%, rgba(16, 185, 129, 0.25), transparent 45%),
radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.25), transparent 50%);
filter: blur(30px);
animation: homeFloat 10s ease-in-out infinite alternate;
transform: translate3d(0,0,0);
}

@keyframes homeFloat {
0%   { transform: translate(-2%, -1%) scale(1.02); }
100% { transform: translate(2%, 2%) scale(1.06); }
}

.home-content {
position: relative;
z-index: 2;
min-height: 100vh;
display: grid;
place-items: center;
padding: 32px 16px;
}

.home-card {
width: 100%;
max-width: 680px;
background: rgba(255,255,255,0.92);
border: 1px solid rgba(0,0,0,0.05);
border-radius: 18px;
padding: 28px;
backdrop-filter: blur(10px);
}

.home-brand {
display: flex;
justify-content: center;
margin-bottom: 18px;
}

.home-logo {
max-height: 58px;
width: auto;
object-fit: contain;
}

.home-title-row {
display: flex;
gap: 14px;
align-items: center;
justify-content: center;
text-align: left;
margin-bottom: 18px;
}

.home-icon {
width: 52px;
height: 52px;
border-radius: 14px;
background: rgba(99, 102, 241, 0.12);
display: grid;
place-items: center;
}

.home-icon i {
font-size: 1.6rem;
color: var(--brand-600, #4f46e5);
animation: pulseIcon 1.8s ease-in-out infinite;
}

@keyframes pulseIcon {
0%, 100% { transform: scale(1); opacity: 0.95; }
50%      { transform: scale(1.08); opacity: 1; }
}

.home-title {
font-weight: 700;
font-size: 1.35rem;
color: var(--text-strong, #dedfe1);
line-height: 1.15;
}

.home-subtitle {
color: rgba(17, 24, 39, 0.70);
font-size: 0.95rem;
margin-top: 4px;
}

.home-actions {
display: flex;
gap: 12px;
justify-content: center;
flex-wrap: wrap;
margin-top: 18px;
}

.home-footer {
margin-top: 22px;
text-align: center;
color: rgba(17, 24, 39, 0.55);
font-size: 0.85rem;
}

.condo-tile{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  min-height: 66px;
}

.condo-tile:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(2, 6, 23, .08);
  border-color: rgba(59, 130, 246, .35);
}

.condo-tile__icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, .10);
  color: #2563eb;
  flex: 0 0 auto;
}

.condo-tile--info .condo-tile__icon{
  background: rgba(13, 202, 240, .12);
  color: #0aa2c0;
}

.condo-tile__content{
  min-width: 0;
  flex: 1 1 auto;
}

.condo-tile__title{
  font-weight: 600;
  line-height: 1.15;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.condo-tile__meta{
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}

.condo-tile__chev{
  color: #94a3b8;
  flex: 0 0 auto;
}

.alert-custom {
  background-color: #4a5568; /* cinza azulado */
  color: #fff;
  border: 1px solid #2d3748;
  border-radius: 0.375rem;
  padding: 1rem;
}

.alert-dashboard{
background-color: #254086;
border: 1px solid #254086;
color: #ffffff;
}

.alert-dashboard a{
color: #ffffff;
text-decoration: underline;
}

.bg-brand{
background-color: #7391e0 !important;
border-color: #254086 !important;
color: #ffffff !important;
}

.bg-brand .card-title,
.bg-brand .card-text{
color: #ffffff;
}

.flatpickr-day.dia-vermelho {
    background-color: #dc3545 !important;
    color: white !important;
  }

.flatpickr-day.dia-amarelo {
    background-color: #ffc107 !important;
    color: #212529 !important;
  }

 .flatpickr-day.dia-verde {
    background-color: #198754 !important;
    color: white !important;
  }

  /* Ajuste para dias selecionados (para não perder a cor) */
  .flatpickr-day.dia-vermelho.selected,
  .flatpickr-day.dia-amarelo.selected,
  .flatpickr-day.dia-verde.selected {
    border: 2px solid #7096d1;
  }

 
  /* Reduz o tamanho dos dias do calendário */
  .flatpickr-day {
    height: 40px !important;
    line-height: 40px !important;
    max-width: 40px !important;
  }

  .flatpickr-day.dia-vermelho {
    background-color: #dc3545 !important;
    color: white !important;
  }

  .flatpickr-day.dia-amarelo {
    background-color: #ffc107 !important;
    color: #212529 !important;
  }

  .flatpickr-day.dia-verde {
    background-color: #198754 !important;
    color: white !important;
  }

  .flatpickr-day.dia-vermelho.selected,
  .flatpickr-day.dia-amarelo.selected,
  .flatpickr-day.dia-verde.selected {
    border: 2px solid #0d6efd;
  }







