@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap");

:root {
  --primary: #0f172a;
  --accent: #3b82f6;
  --bg: #f8fafc;
  --sidebar-w: 260px;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  margin: 0;
}

/* --- LAYOUT E ESTRUTURA --- */
.wrapper {
  display: flex;
  min-height: 100vh;
}

/* --- COMPORTAMENTO PARA PC (Telas Grandes) --- */
@media (min-width: 992px) {
  .sidebar {
    width: var(--sidebar-w);
    background-color: var(--primary) !important;
    position: fixed;
    height: 100vh;
    display: block !important;
    visibility: visible !important;
    z-index: 1000;
    left: 0;
    top: 0;
    transform: none !important; /* Impede o Bootstrap de esconder no PC */
  }

  .main-content {
    margin-left: var(--sidebar-w);
    width: calc(100% - var(--sidebar-w));
    padding: 30px;
    min-height: 100vh;
  }

  /* Esconde elementos do mobile no PC */
  .navbar-mobile,
  .offcanvas-header {
    display: none !important;
  }
}

/* --- COMPORTAMENTO PARA MOBILE (Celulares e Tablets) --- */
@media (max-width: 991.98px) {
  .sidebar.offcanvas-lg {
    width: 280px;
    background-color: var(--primary) !important;
    visibility: hidden; /* O Bootstrap controla isso ao clicar no botão */
  }

  /* Quando o menu mobile está aberto */
  .sidebar.offcanvas-lg.show {
    visibility: visible !important;
    display: flex !important;
  }

  .main-content {
    margin-left: 0 !important;
    width: 100%;
    padding: 20px;
    padding-top: 80px; /* Espaço para a navbar superior fixa */
  }

  .navbar-mobile {
    display: flex !important;
    background-color: var(--primary);
    height: 60px;
  }
}

/* --- ESTILIZAÇÃO DOS LINKS DO MENU (PC e Mobile) --- */
.nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-link i {
  color: var(--accent) !important;
  font-size: 1.1rem;
}

.nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px;
}

.sidebar small,
.offcanvas small {
  color: rgba(255, 255, 255, 0.3) !important;
  padding-left: 15px;
  display: block;
}

.nav-link.text-danger {
  color: #ef4444 !important;
}

.nav-link.text-danger i {
  color: #ef4444 !important;
}

/* --- CARDS E COMPONENTES --- */
.card-stats {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--accent);
}

/* Tabelas Responsivas */
.table-responsive {
  border-radius: 12px;
  background: white;
  padding: 10px;
}

/* Status Badges */
.badge-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-aberto {
  background: #d3d3d3;
  color: #333333;
}
.status-concluido {
  background: #dcfce7;
  color: #166534;
}
.status-em-andamento {
  background: #fed7aa;
  color: #92400e;
}

/* Prioridades */
.prioridade-baixa {
  background-color: #81c784;
  color: #fff;
}
.prioridade-normal {
  background-color: #64b5f6;
  color: #fff;
}
.prioridade-alta {
  background-color: #ffb74d;
  color: #fff;
}
.prioridade-critica {
  background-color: #e57373;
  color: #fff;
}

/* Utilitários de Imagem */
.thumb-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

/* Ajuste para inputs de número */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
