   @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Calibri:wght@400&display=swap');

.login-box {

  box-sizing: border-box;
  background-color: #dcb97a;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 25px;
}


.content-box {
  background-color: #dcb97a;
  width: 1200px;
  height: 800px;
  margin: auto;
  align-self: center;
}

.content-small {
  background-color: #dcb97a;
  width: 1200px;
  height: 200px;
  margin: auto;
  align-self: center;
}

.content-title {
  font-size: 40px;
  text-align: center;
  margin-top: 20px;
  font-family: Arial, Helvetica, sans-serif;
}

.content-textMain {
  font-size: 25px;
  text-align: center;
  margin-top: 20px;
  font-family: Arial, Helvetica, sans-serif;
  margin-left: auto;
  margin-bottom: 150px;
  margin-left: 20px;
  margin-right: 20px;
}

.content-text {
  font-size: 22px;
  font-family: Arial, Helvetica, sans-serif;
  margin-left: 20px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.emprestimo-button {
  margin-left: 200px;
  margin-top: 100%;
  background-color: #7a1600;
}

.adm-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    overflow-y: auto;
    background-color: #7a1600;
    padding: 10px;
    border-right: 1px solid #ddd;
    z-index: 1;
}


.display-box {
  margin-left: 320px;
  padding: 20px;
}


.navbar {
  z-index: 10;
  background-color: #7a1600;
}
header.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  width: 100%;
  z-index: 999;
}
body {
  margin: 0;
  padding-top: 80px; /* para não sobrepor conteúdo */
}

.card-livro {
  display: flex;
  flex-direction: column;
  height: 100%; 
  min-height: 400px; 
}

.card-livro img {
  height: 250px;       
  object-fit: cover;   
  width: 100%;
}

.card-livro .card-body {
  flex-grow: 1;        
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-livro .card-footer {
  text-align: center;
}



.navbar {
  background-color: #7A1600;
  padding: 15px 40px;
  box-shadow: none;
  border: none;
}

.navbar-brand {
  color: #ffffff !important;
  font-weight: bold;
  font-size: 24px;
  letter-spacing: 1px;
}

.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  margin-left: 20px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #f3e3c8 !important;
  text-decoration: underline;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ===== Navbar Custom ===== */
.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #7a1505;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.logo-navbar {
  height: 60px;
  border-radius: 15px;
}

.navbar-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 100;
}

.search-box {
  background-color: white;
  border-radius: 10px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  width: 400px;
  margin-top: 10px;
}

.search-box input {
  border: none;
  outline: none;
  flex: 10;
  padding: 6px 8px;
  font-size: 16px;
}

.search-box i {
  color: black;
  font-size: 18px;
}

/* responsivo */
@media (max-width: 992px) {
  .search-box { width: 300px; }
}

.menu-navbar {
  display: flex;
  gap: 25px;
  margin-top: 25px;
  padding: 0;
  list-style: none;
}

.menu-navbar li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  transition: 0.3s;
}

.menu-navbar li a:hover,
.menu-navbar li a.active {
  text-decoration: underline;
  color: #f3e3c8;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  color: white;
  font-size: 22px;
  position: relative;
}

.avatar-navbar {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  object-fit: cover;
}

/* Responsivo */
@media (max-width: 992px) {
  .search-box {
    width: 300px;
  }
  .menu-navbar {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .navbar-custom {
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
  }

  .navbar-right {
    margin-top: 10px;
  }
}

.row {
  display: flex;
  flex-wrap: nowrap;  
  align-items: center;
}

.col-7, .col-5 {
  flex: 0 0 auto;
}


.col-7 {
  width: 58.3333%; /* 7/12 */
  padding-right: 1rem;
}

.col-5 {
  width: 41.6667%; /* 5/12 */
  display: flex;
  justify-content: flex-end;
}


#about {
  background-color: #dcc7a1;
}

#about .bg-white {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

#about img {
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

@media (max-width: 767.98px) {
  #about img {
    margin-bottom: 1.5rem;
  }
}

.body {
  background-color: #7A1600;
  font-family: 'Open Sans', 'Calibri', sans-serif;
  color: #ffffff;
  height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  background-color: #DCB97A;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.login-box label {
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
  font-size: 22px;
  display: block;
  margin-top: 15px;
  text-align: left;
  
}

.login-box input[type="email"] {
  width: 100%;
  padding: 10px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
  
  border: none;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
}
.login-box input[type="password"] {
  width: 100%;
  padding: 10px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
 
  border: none;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
}

.login-box button {
  background-color: #7A1600;
  color: white;
  padding: 12px 20px;
  margin-top: 20px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  width: 100%;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease;
}

.login-box button:hover {
  background-color: #7A1600;
}

.login-box a.nav-link {
  display: block;
  font-family: 'Open Sans', sans-serif;
  margin-top: 10px;
  font-weight: bold;
  color: #000000;
  text-decoration: none;
  font-size: 14px;
}

.login-box a.nav-link:hover {
  text-decoration: underline;
}


.logo-box {
  padding: 10px;
  border: 2px;
  width: 320px;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  
}

.logo-box img {
  max-width: 100%;
  background-color: #581000;
  height: auto;
  border-radius: 13%;
}

/* Navbar */
.navbar {
  background-color: #7a1600;
}

.navbar .nav-link,
.navbar .navbar-brand {
  color: #fff !important;
  font-weight: 600;
}

/* Sobre a Biblioteca */
#about {
  background-color: #dcc7a1;
  padding: 60px 0;
}

#about .card {
  background-color: #fff;
  border-radius: 20px;
  border: none;
  font-size: 1.1rem;
  padding: 30px;
}

#about img {
  border-radius: 20px;
  max-height: 300px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Formulário estilo moderno */


form label {
  font-weight: 600;
  margin-top: 10px;
}

form input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-bottom: 10px;
}

form input[type="submit"] {
  background-color: #7a1600;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  margin-top: 15px;
}

form input[type="submit"]:hover {
  background-color: #5e1000;
}

/* Notificações */
.overflow-auto {
  background-color: #f3e3c8;
  padding: 40px;
  border-radius: 20px;
}

.overflow-auto h2 {
  font-weight: bold;
  margin-bottom: 30px;
}



/* Footer */
footer {
  background-color: #ae2000;
  color: #fff;
  padding: 20px 0;
  font-size: 0.9rem;
}


form.d-flex input {
  border-radius: 10px;
  border: none;
}

form.d-flex .btn-outline-success {
  background-color: #dcc7a1;
  color: #000;
  border: none;
  font-weight: 600;
  margin-left: 10px;
  transition: 0.3s ease;
}

form.d-flex .btn-outline-success:hover {
  background-color: #fff3da;
  color: #000;
}

.form-limpo {
   display: flex;
  flex-direction: column;
  gap: 5px;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  align-items: flex-start;
}

.form-limpo label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #ffffff;
}

.form-limpo input[type="text"] {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  font-size: 16px;
  background-color: white !important; /* fundo branco nos inputs */
  box-shadow: none !important;
  color: #000;
}
.form-limpo input[type="submit"] {
  background-color: #b57a4b;
  color: black;
  border: none;
  border-radius: 15px;
  padding: 10px;
  box-sizing: border-box;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  width: auto;
  display: inline-block;
  white-space: nowrap;
}


.form-limpo input[type="submit"]:hover {
  background-color: #9c6640; 
  box-sizing: border-box;
}


.form-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

/* grupo input + botão */
.input-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

.input-btn-group input[type="text"] {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  font-size: 16px;
  background-color: white !important;
  color: black;
  box-sizing: border-box;
}

.input-btn-group input[type="submit"] {
  background-color: #C2A878;
  color: black;
  border: none;
  border-radius: 15px;
  padding: 10px 15px;
  cursor: pointer;
  white-space: nowrap;
  width: auto;
  box-sizing: border-box;
  font-weight: bold;
}

.input-btn-group input[type="submit"]:hover {
  background-color: #C2A878;
}

/* Container para colocar Curso e Série lado a lado */
.double-group {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 820px; /* ou ajuste conforme desejar */
}

/* Cada input+label dentro do double-group */
.input-with-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1; /* para dividir igualmente o espaço */
}

.centraliza-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #ffffff;
  padding: 20px;
  box-sizing: border-box;
}

.notifications-container {
  max-width: 900px; /* aumentada */
  width: 100%;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  background-color: #C2A878;
  overflow-y: auto;
  max-height: 90vh;
}

.notification-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  
}

.notification-card img.card-img {
  width: 100%;
  height: 100%;
  max-height: 160px; /* controla só a imagem */
  object-fit: cover;
  border-radius: 0;
}

footer h5 {
  font-weight: bold;
  margin-bottom: 15px;
}

footer ul li,
footer p {
  font-size: 15px;
}

html {
  scroll-behavior: smooth;
}

form.form-limpo label {
  font-weight: bold;
  font-size: 20px;
}


.sidebar {
  position: fixed;
  top: 56px; /* altura da navbar */
  left: 0;
  width: 220px;
  height: calc(100vh - 56px);
  background-color: #7a1505;
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 1040;
}

.sidebar a,
.sidebar button.dropdown-toggle {
  display: block;
  background-color: #7a1505;
  color: white;
  margin-bottom: 10px;
  text-align: left;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sidebar a:hover,
.sidebar button.dropdown-toggle:hover {
  background-color: #a82010;
  color: white;
}

.sidebar > a.active {
  background-color: #4d0f03 !important;
  color: white !important;
  box-shadow: none !important;
}

.sidebar > button.dropdown-toggle.active {
  background-color: #7a1505 !important;
  color: white !important;
  box-shadow: none !important;
}


/* ===== Dropdown Buttons ===== */
.dropdown .btn {
  background-color: #5e4028;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 20px;
  font-weight: 600;
}

.dropdown .btn:hover {
  background-color: #4a3220;
}

.dropdown-menu {
  border-radius: 10px;
}

.indicacoes {
  padding: 40px;
}

.titulo-indicacoes {
  text-align: center;
  color: #5e4028;
  font-weight: bold;
  margin-bottom: 30px;
}

/* ===== Grid Cards Biblioteca ===== */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 30px;
  max-width: 1200px;  margin: 0 auto;
  justify-items: center;
}

.grid-cards .card {
  display: flex;
  flex-direction: column;
  width: 100% !important;   /* ocupa a coluna do grid */
  max-width: 500px;         /* limite de largura */
  height: auto !important;  /* altura ajusta conforme conteúdo */
  background-color: #d3d3d3;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.grid-cards .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.grid-cards .card h4 {
  margin: 10px 0 5px;
  white-space: nowrap;        /* impede quebra de linha */
  overflow: hidden;           /* esconde excesso de texto */
  text-overflow: ellipsis;    /* adiciona "..." se não couber */
}

.grid-cards .card p {
  margin: 10px 0;
}

.grid-cards .botao-disponivel,
.grid-cards .botao-indisponivel {
  margin-top: auto;
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: default;
}

.grid-cards .botao-disponivel {
  background-color: #c0392b;
}

.grid-cards .botao-indisponivel {
  background-color: #444;
}

/* Mantém os outros cards (fora do grid-cards) com estilo original */
.card-container .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 250px;
  height: 380px;
  background-color: #d9cbb0;
  border-radius: 8px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  padding: 10px;
  text-align: center;
  overflow: hidden;
}

/* grid card acaba aqui*/

.card {
  background-color: #d3d3d3;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.card img {
  width: 100px;
  display: block;
  margin: 0 auto 10px;
}

.card h4 {
  margin: 10px 0 5px;
}

.card p {
  margin: 10px 0;
}

.dias {
  color: white;
  padding: 3px 8px;
  border-radius: 50%;
}

.botao-indisponivel,
.botao-disponivel {
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: default;
}

.botao-indisponivel {
  background-color: #444;
  margin-top: auto;
}

.botao-disponivel {
  background-color: #c0392b;
  margin-top: auto;
}

.card.disponivel {
  background-color: #d3b980;
  display: flex;
  flex-direction: column;
  height: 320px;
  justify-content: flex-start;
}

.espaco-disponivel {
  flex-grow: 1;
}

.menu-navbar a.active {
  background-color: rgba(0, 0, 0, 0.3); /* Fundo escuro */
  color: white !important;              /* Texto branco */
  padding: 5px 10px;                    /* Espaço interno */
  border-radius: 5px;                   /* Cantos arredondados */
  transition: background-color 0.3s ease;
  text-decoration: none !important;
}

.menu-navbar a {
  text-decoration: none; /* Remove sublinhado de todos os links */
}

   /* Container dos cards */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Ajusta automaticamente as colunas */
  gap: 15px;
  justify-items: center;
  padding: 10px;
}
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 250px; /* mesma largura para todos */
  height: 380px; /* mesma altura para todos */
  background-color: #d9cbb0;
  border-radius: 8px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  padding: 10px;
  text-align: center;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 180px; /* mesma altura para todos */
  object-fit: cover; /* mantém o corte proporcional */
  border-radius: 6px;
  margin-bottom: 10px;
}

.card h3, 
.card p {
  margin: 5px 0;
}

.card p {
  display: -webkit-box;
  /*-webkit-line-clamp: 3;  limita texto em 3 linhas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card .botoes {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
}

.card button {
  padding: 5px 10px;
  border: none;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

/* Botões específicos */
.card .excluir {
  background-color: #a82010;
  color: white;
}

.card .editar {
  background-color: #3d2b1f;
  color: white;
}

.card .indisponivel {
  background-color: #6a1400;
  color: white;
  padding: 6px;
  margin-top: 10px;
  border-radius: 4px;
}

    .erro {
    grid-column: 2;
}
#formCadastro {
    display: grid;
    grid-template-columns: 150px 1fr; /* primeira coluna para labels, segunda para campos */
    gap: 10px 20px;
    align-items: center;
}

#formCadastro label {
    text-align: right;
    font-weight: bold;
}

#formCadastro input,
#formCadastro select {
    width: 100%;
    box-sizing: border-box;
}

.foto-preview {
    display: flex;
    align-items: center;
    gap: 10px;
}

.foto-preview img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

/* Bloco de informações do backup */
.backup-info {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Configuração do backup */
.config-section {
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Histórico de backups */
.history-section {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.config-title {
    font-weight: bold;
    font-size: medium;
}
.config-desc {
    font-size: small;
    color: #555;
}
/* Afastar todo conteúdo das laterais da tela */
.container, .container-fluid {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Espaçamento automático entre colunas em qualquer .row */
.row {
  margin-left: 0;
  margin-right: 0;
  gap: 15px; /* dá espaçamento horizontal e vertical entre colunas */
}

/* Todos os cards terão a mesma base de estilo */
.card, .status-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
}

/* Ícones dentro dos cards */
.card .icon, .status-card .icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #555;
}

/* Responsividade padrão */
@media (max-width: 768px) {
  .col-md-4, .col-md-6, .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.card-livro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 250px;
  height: 380px;
  background-color: #d9cbb0;
  border-radius: 8px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  padding: 10px;
  text-align: center;
  overflow: hidden;
}

.notifications-container {
  display: flex;
  flex-wrap: wrap; /* cards vão para baixo quando não couberem */
  gap: 15px;
  justify-content: center; /* centraliza os cards na tela */
}

/* Faz o <h2> ocupar a linha toda e afasta dos cards */
.notifications-container > h2 {
  flex-basis: 100% !important; /* força quebrar linha */
  margin: 0 0 20px 0 !important; /* espaço abaixo do título */
  text-align: center;
}

/* Mantém os cards lado a lado e com largura fixa */
.notifications-container .notification-card {
  flex: 0 0 250px;  /* mesma largura dos seus cards */
  width: 250px;
}

.btn-editar {
  background-color: #7a1600;
  color: white;
  border-radius: 25px;
  border: none;
  padding: 10px 20px;
  /* Cor de fundo para "Editar Senha" */
}

.btn-editar:hover {
  background-color: #5c0e00;
  /* Cor de fundo ao passar o mouse */
}

/* ===== Layout Evento Detalhe ===== */
.evento-detalhe {
  background-color: transparent;
  border: 5px solid #dcc7a1;
  border-radius: 10px;
  padding: 20px;
  max-width: 1000px;
  margin: auto;
  margin-bottom: 30px;

  display: flex; /* garante que as colunas fiquem lado a lado */
  flex-wrap: wrap;
}

.evento-card {
  background-color: #d3d3d3;
  border-radius: 8px;
  text-align: center;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
}

.evento-card img {
  width: 100%;
  height: 500px;
  border-radius: 6px;
  margin-bottom: 10px;
  object-fit: cover;
  max-height: 300px;
}

.evento-card .titulo {
  font-weight: bold;
  margin: 5px 0;
  color: #000;
}

.evento-card .dias {
  margin: 5px 0;
  color: #000;
}

.evento-card .dias span {
  color: white;
  border-radius: 50%;
  padding: 4px 10px;
  font-weight: bold;
}

.evento-texto {
  color: #000;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* alinha verticalmente ao centro do card */
  padding-left: 15px;
}

.evento-texto .autor {
  color: #bc0000;
}

.evento-texto .descricao {
  color: #bc0000;
}

@media (min-width: 768px) {
  .evento-card {
    width: 33.3333%; /* 4 colunas de 12 */
  }
  .evento-texto {
    width: 66.6666%; /* 8 colunas de 12 */
  }
}

@media (max-width: 768px) {
  .evento-detalhe {
    padding: 15px;
  }
  .evento-card {
    margin-bottom: 20px;
    width: 100% !important;
  }
  .evento-texto {
    width: 100% !important;
    padding-left: 0;
  }
}

.tab-content {
            display: flex;
            padding: 20px;
            margin: 20px auto;
            border: none;
            background-color: transparent;
            max-width: 800px;
            gap: 20px; /* espaço entre as caixas */
            align-items: flex-start;
        }

        .tab-content.active {
            display: flex;
        }
  
  /* === Largura total nas abas === */
.tab-content {
  display: block;        /* não precisa ser flex aqui */
  width: 100% !important;
  max-width: none !important;
  margin: 20px 0 !important;
}

#configTabsContent .tab-pane {
  width: 100% !important;
}

#em,
#em .col-12,
#em .section-box {
  width: 100% !important;
  max-width: none !important;
}

#em canvas#graficoEmprestimos {
  width: 100% !important;   /* Chart.js ocupa toda a largura */
  height: 380px !important; /* ajuste a gosto */
}


.history-section table {
  width: 100%;          /* tabela vai expandir até o limite do container */
  table-layout: fixed;  /* distribui melhor as colunas */
}

.history-section {
    flex: 1 1 70%;   /* 70% da largura da linha */
    min-width: 500px; /* garante tamanho mínimo */
}


/* Estilos específicos para o main-container */
        .main-container-custom {
            flex: 1;
            padding-left: 270px;
            padding-top: 20px;
            padding-bottom: 20px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            overflow-y: auto;
            min-height: calc(100vh - 56px);
        }

        /* Título estilizado */
        .text-center-custom {
            text-align: center;
            font-family: Georgia, serif;
            font-weight: 500;
        }

        /* Estilos para o grupo de busca */
        .input-group-custom {
            max-width: 600px;
            width: 100%;
            display: flex;
            justify-content: center;
            margin: 0 auto;
        }

        /* Barra de pesquisa */
        .search-input {
            border-radius: 25px;
            padding-left: 20px;
            font-size: 16px;
            flex: 1;
        }

        /* Estilo do botão de pesquisa */
        .search-btn {
            background-color: #fff;
            border: 1px solid #d2b28c;
            border-radius: 25px;
            padding: 10px 20px;
            font-size: 18px;
        }

        /* Ajuste do card */
        .custom-card {
            background-color: #c8aa78 !important;
            border-radius: 15px !important;
            padding: 30px !important; 
            max-width: 1000px !important;
            margin: 20px auto !important;
            width: 100% !important;

        }

        /* Estilo para o campo de status */
        .status-label {
            font-weight: bold  !important;
            color: rgb(0, 0, 0) !important;
            margin-right: 5px !important;
        }

        /* Estilo para o botão Status */
        .status-select {
            margin-left: 10px !important;
            margin-right: 10px !important;
            /* Dá espaço entre o botão de Status e o botão de Novo bibliotecário */
        }
        /* Estilo dos botões */
        .status-select,
        .new-user-btn {
            margin-top: 10px;
            /* Adiciona um pequeno espaço superior para os botões */
        }
        /* Estilo para o botão Status */
        .status-select {
            margin-left: 10px;
            margin-right: 20px;
            font-weight: bold;
            color: rgb(0, 0, 0);
            margin-right: 1px;
            background-color: white;
            border-color: #c8aa78;
            border-radius: 25px;
            padding: 10px 30px;
            /* Dá espaço entre o botão de Status e o botão de Novo bibliotecário */
        }


        /* Layout para os botões fora do card */
        .d-flex.justify-content-between.mt-3 {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            margin: 0 20px !important;
            /* Adiciona espaço nas laterais para afastar da "parede" */
        }

        /* Ajuste de layout para os botões "Status" e "Novo bibliotecário" */
        .new-user-btn {
            background-color: #7a1600 !important;
            color: white !important;
            border-radius: 25px !important;
            padding: 10px 20px !important;
        }

        .new-user-btn:hover {
            background-color: #5c0e00 !important;
        }

        /* Estilos específicos para o main-container */
        .main-container-custom {
            flex: 1 !important;
            padding-left: 270px !important;
             padding-top: 100px !important;
            padding-bottom: 20px !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: flex-start !important;
            overflow-y: auto !important;
            min-height: calc(100vh - 56px) !important;
        }

        /* Título estilizado */
        .text-center-custom {
            text-align: center !important;
            font-family: Georgia, serif !important;
            font-weight: 500 !important;
            font-size: 2rem  !important;
            margin: 0 !important;
        }

        /* Ajuste do card */
        .custom-card {
            background-color: #c8aa78 !important;
            border-radius: 10px!important;
            padding: 20px 40px!important;
            width: auto;
            /* Ajuste a largura para se ajustar ao conteúdo */
            margin: 0 auto;
            /* Centraliza o card */
            padding: 10%;
        }

        /* Sombra semelhante à da imagem */
        .shadow-title {
            box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.15)!important;
        }

        /* Correções de responsividade extras */


        :root {
          --nav-offset: 110px; /* valor inicial (substituído pelo JS depois) */
        }
        
        body {
          padding-top: var(--nav-offset);
          transition: padding-top 120ms ease;
        }
        
        /* Responsividade da section #about */
        #about .d-flex {
          flex-direction: row; /* lado a lado no desktop */
        }
        
        @media (max-width: 768px) {
          #about .d-flex {
            flex-direction: column; /* empilha no mobile */
            text-align: center;
          }
        
          #about img {
            margin-top: 20px;
          }
        }

        /* ==== Responsividade exclusiva para biblioteca.html ==== */
body.biblioteca-page #about {
  background-color: #ffffff;
  padding: 60px 20px;
  margin-top: var(--nav-offset); /* garante que não fique embaixo da navbar */
}

body.biblioteca-page #about .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

body.biblioteca-page #about h1 {
  font-family: 'Georgia', serif;
  color: #000;
  font-size: 2.5rem;
  text-align: center;
  flex: 1 1 100%;
}

body.biblioteca-page #about img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

@media (max-width: 768px) {
  body.biblioteca-page #about .container {
    flex-direction: column;
    text-align: center;
  }

  body.biblioteca-page #about h1 {
    font-size: 1.8rem;
  }

  body.biblioteca-page #about img {
    margin-top: 15px;
  }
}
/* ==== Ajuste do padding para não ficar escondido atrás da navbar ==== */
body.eventos-page {
  padding-top: 76px; /* mesma altura da sua navbar */
}

.report-table.relatorios-page {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-collapse: collapse;
}

.report-table.relatorios-page th,
.report-table.relatorios-page td {
  padding: 12px;
  border: 1px solid #ccc;
  text-align: left;
}

.report-table.relatorios-page th {
  background-color: #f0e6d2;
  font-weight: bold;
}

/* aplica quando o body tem a classe etiqueta-page */
body.etiqueta-page .total-livro {
  display: inline;        /* para padding / bg funcionarem visualmente */
  color: #ffffff;
  background-color: #c0392b;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
  justify-items: flex-start;
}

body.etiqueta-page .card-selecionados h2,
body.empres-page .emprestimo-titulo{
  font-family: Georgia, serif;
  text-align: center;
  color: #2b1205;
  margin-bottom: 20px;
  
}
body.etiqueta-page .card-exemplares h2,
body.empres-page .emprestimo-titulo{
  font-family: Georgia, serif;
  text-align: center;
  color: #2b1205;
  margin-bottom: 20px;
  
}

    body.etiqueta-page .livro-info,
    body.empres-page .usu-info {
      flex: 1;
      display: flex;
  flex-direction: column; /* empilha itens */
  align-items: flex-start; /* força tudo pro canto esquerdo */
    }

    body.etiqueta-page .livro-info .info-item {
  display: flex;              /* coloca h4 e p lado a lado */
  align-items:start;        /* alinha verticalmente */
  gap: 10px;                  /* espaço entre h4 e p */
  margin-bottom: 12px;        /* espaço entre linhas */
}

body.etiqueta-page .livro-info h4,
body.empres-page .usu-info h4 {
  font-weight: bold;
  font-size: medium;
  margin: 0;                  /* remove margens padrão */
  flex-shrink: 0;             /* impede que o título encolha */
}

body.etiqueta-page .livro-info p,
body.empres-page .usu-info p {
  margin: 0;
  font-size: small;
  text-align: left;
}

body.empres-page .usu-info label {
  font-weight: bold;
  font-size: medium;
  margin: 0;                  /* remove margens padrão */
  flex-shrink: 0;             /* impede que o título encolha */
}



/* Estilo do checkbox */
.form-check {
  display: flex;
  align-items: center;
  margin-right: 20px;
  border-color: #000;
  /* Adiciona espaço entre a caixa de seleção e o próximo botão */
}

/* Checkbox base */
.form-check-input {
width: 22px;
height: 22px;
margin-right: 10px;
}

/* Quando passar o mouse */
.form-check-input:hover {
  border-color: #007bff;
  border-radius: 2px;
}

/* Estilo para a caixa de seleção "Organizar por ordem alfabética" */
.form-check-label {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  padding: auto;
}




/* Correções de responsividade extras */
/* responsivo */
@media (max-width: 992px) {
  .search-box { width: 300px; }
}

/* Sidebar some no mobile e vira "menu lateral" */
@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    top: 56px;
    left: -220px;
    width: 220px;
    height: 100%;
    transition: left 0.3s ease;
    z-index: 1051;
  }
  .sidebar.show {
    left: 0;
  }

  .main-container-custom {
    padding-left: 0 !important;
    padding-top: 80px !important;
  }
}

/* Ajusta grid das abas no celular */
@media (max-width: 768px) {
  .tab-container {
    flex-direction: column;
    gap: 10px;
  }

  .tab-content {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .section-box {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  .d-flex.gap-3.flex-wrap {
    flex-direction: column;
  }

  .custom-card {
    padding: 15px !important;
  }
}

/* Ajusta tabelas no mobile */
.table-responsive {
  overflow-x: auto;
}

/* Overlay por trás da sidebar no mobile */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  display: none;
}
.sidebar-overlay.show {
  display: block;
}

/* ANTES — não funciona porque não há .card em #logs */
#logs .card {
  max-width: 900px;
  width: 100%;
}

/* DEPOIS — aplica no elemento correto */
#logs {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 0 16px;           /* respiro lateral no mobile */
}
#logs .row {
  width: 100%;
}
#logs .section-box {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;            /* garante centralização */
}

/* Estilo para o botão "Novo bibliotecário" */
body.acervo-page .btn-new-user {
  background-color: #7a1600;
  /* Cor de fundo do botão */
  color: white;
  /* Cor do texto */
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  margin-left: 10px;
  max-height: 45px;
  margin-top: 13px;
  margin-right: 10px;
}

body.acervo-page .btn-new-user:hover {
  background-color: #5c0e00;
  color: rgb(146, 146, 146);
  /* Cor de fundo ao passar o mouse */
}

body.acervo-page .btn-new-user i {
  font-size: 1.4rem;
  /* Tamanho do ícone */
}

body.etiqueta-page .livro-info label {
  background-color: #c0392b;
}

body.etiqueta-page .livro-info label {
  background-color: #444;
}

body.etiqueta-page .disponibilidade {
  display: inline-block;
  margin-top: 20px;
  font-weight: bold;
  border-radius: 12px;
  background-color: #ca5a5a;
  color: #fff;
  padding: 3px 7px;
}

body.etiqueta-page .livro-info .btn-etiqueta{
            background-color: #7a1600;
            /* Cor de fundo do botão */
            color: white;
            /* Cor do texto */
            border-radius: 50px;
            padding: 10px 20px;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            border-color: transparent;
            box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
            transition: background-color 0.3s ease;
            margin-left: 10px;
            max-height: 45px;
            margin-top: 13px;
            margin-right: 10px;
        }

body.etiqueta-page .livro-info .btn-etiqueta:hover {
            background-color: #5c0e00;
            color: rgb(146, 146, 146);
            /* Cor de fundo ao passar o mouse */
        }

        body.etiqueta-page .info-item .btn-etiqueta,
        body.empres-page .botes, .btn-pesquisa,
        body.empres-page .botes, .btn-renovar{
            background-color: #7a1600;
            /* Cor de fundo do botão */
            color: white;
            /* Cor do texto */
            border-radius: 50px;
            padding: 10px 20px;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 3px;
            border-color: transparent;
            box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
            transition: background-color 0.3s ease;
            margin-left: 10px;
            max-height: 45px;
            margin-top: 13px;
            margin-right: 10px;
        }

body.etiqueta-page .info-item .btn-etiqueta:hover,
body.empres-page .botes, .btn-pesquisa:hover,
body.empres-page .botes, .btn-renovar:hover {
            background-color: #5c0e00;
            color: rgb(146, 146, 146);
            /* Cor de fundo ao passar o mouse */
        }

body.etiqueta-page .botoes .btn-lista:hover,
body.empres-page .botes, .btn-emprestar:hover,
body.empres-page .botes, .btn-devolver:hover {
      background-color: #d6d6d6;
      color: #7A1600;
      border: 2px solid #7A1600;
    }

    body.etiqueta-page .botoes .btn-lista,
    body.empres-page .botes, .btn-emprestar,
    body.empres-page .botes, .btn-devolver{
            background-color: #ffff;
            border: 2px solid #7A1600;
            color: #7A1600;
            border-radius: 50px;
            padding: 10px 23px;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 3px;
            box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
            transition: background-color 0.3s ease;
            margin-left: 10px;
            max-height: 45px;
            margin-top: 13px;
            margin-right: 10px;
            white-space: nowrap;
        }

/* Estilo do checkbox */
body.etiqueta-page .form-check,
body.empres-page .form-check {
  display: flex;
  align-items: center;
  margin-right: 20px;
  border-color: #443a3a;
  border-radius: 2px;
  /* Adiciona espaço entre a caixa de seleção e o próximo botão */
}

/* Checkbox base */
body.etiqueta-page .form-check-input,
body.empres-page .form-check-input {
width: 22px;
height: 22px;
margin-right: 10px;
border-width: 2px;
border-color: #443a3a ;
}

body.empres-page .search-actions .search-box {
  display: flex;
  align-items: center;
  border-radius: 7px;
  background-color: #fff;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  padding: 0 10px;
  width: 570px;   /* ocupa 100% da largura do container */
  max-width: 770px; /* limite opcional */
}

body.empres-page .search-actions .search-box input {
  border: none;
  outline: none;
  flex: 1;
  padding: 10px;
  
}

    /* --- Container do Livro --- */
body.empres-page .usu-detalhe {
      max-width: 1100px;
      margin: 15px auto 30px auto;
      background-color: #ebebeb;
      border-radius: 14px;
      padding: 30px;
      display: flex;
      gap: 40px;
      align-items: flex-start;
    }

    body.empres-page .usu-detalhe {
      max-width: 1100px;
      margin: 15px auto 30px auto;
      background-color: #ebebeb;
      border-radius: 14px;
      padding: 30px;
      display: flex;
      gap: 40px;
      align-items: flex-start;
      
    }
    body.empres-page .usu-detalhe-indi {
      max-width: 1100px;
      margin: 15px auto 30px auto;
      background-color: #ebebeb;
      border-radius: 14px;
      padding: 30px;
      display: flex;
      gap: 40px;
      align-items: flex-start;
      border: 4px solid #b40000;
    }

      body.empres-page .usu-detalhe-indi img {
      width: 300px;
      height: 300px;
      object-fit: cover;
      border-radius: 12px;
      flex-shrink: 0;
    }

body.empres-page .usu-detalhe img {
      width: 300px;
      height: 300px;
      object-fit: cover;
      border-radius: 12px;
      flex-shrink: 0;
    }

    body.empres-page .botoes {
  display: flex;
  justify-content: flex-start; /* ou center, se quiser centralizar */
  gap: 0.1px; /* espaço entre os botões */
  margin-top: 15px;
}

body.empres-page .indisponivel-titulo h2{
  font-family: Georgia, serif;
  text-align: center;
  color: #b40000;
  background-color: rgb(255, 255, 255);
  border: 4px solid #b40000;
  border-radius: 14px;
  padding: 12px;
  width: 100%;
  margin-bottom: 20px; /* separa do conteúdo abaixo */
}

#configTabsContent .tab-pane { display: none; }
#configTabsContent .tab-pane.active { display: block; }
