 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* === NAVBAR === */
        .navbar {
            display: flex;
            justify-content: center;
            background-color: #1d232c;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .navbar-container {
            display: flex;
            align-items: center;
            width: 100%;
            max-width: 1200px;
            padding: 0.8rem 1.5rem;
            position: relative;
            gap: 1rem;
        }

        /* Logo */
        .navbar-logo {
            display: flex;
            align-items: center;
            gap: 0rem;
            text-decoration: none;
            margin-right: 1rem;
        }

     
        .logo-icon img, 
        .logo-text img {
            height: 60px; 
             width: auto;
            object-fit: contain;
            transition: all 0.3s ease;
             display: block;
             margin: 0;
            padding: 0;
            }

      .logo-text img {
           margin-top: 8px;
}
        /* Barra de pesquisa */
        .search-container {
            flex-grow: 1;
            max-width: 600px;
        }
        
        .search-bar {
            padding: 0.5rem 1rem;
            border-radius: 10px;
            border: none;
            width: 400px;
            background-color: #ffffff;
            color: #ffffff;
            font-size: 1.0rem;
            transition: all 0.3s ease;
        }

        .search-bar:focus {
            outline: none;
            background-color: #ececec;
            box-shadow: 0 0 2px #f1ede8;
            color: #000;
            
        }


        /* Links de navegação */
        .nav-links {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-left: auto;
            margin-right: 1rem;
        }

        .nav-links a,
        .nav-links button {
            color: #e4e6eb;
            background: none;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 600;
            padding: 0.4rem 0.8rem;
            border-radius: 8px;
            transition: all 0.25s ease;
            text-decoration: none;
            
          
        } 

         .nav-links a:hover,
        .nav-links button:hover {
            background-color: #8b6f4e;
            color: #16221a;
            box-shadow: 0 2px 10px rgba(139, 111, 78, 0.6);
        } 

        .btn-sobreNos {
            border: none;
        }

      .btn-entrar {
         border: 2px solid #8b6f4e;  
         box-shadow: 0 2px 10px rgba(139, 111, 78, 0.6);
     
      }

        .dropdown {
            position: relative;
        }

        .dropdown-toggle {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            border: none;
        }

        /* menu genérico (continua valendo para Gêneros) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1f1f1f;
  min-width: 180px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border: none;
}



        .dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-menu a,
        .dropdown-menu button {
            display: block;
            width: 100%;
            padding: 0.6rem 1rem;
            color: #ccc;
            text-align: left;
            border-radius: 20px;
              border: none;
           
        }

        .dropdown-menu a:hover,
        .dropdown-menu button:hover {
            background-color: #838282;
            color: #fff;
             border-radius: 20px;
        }


.acessibilidade-dropdown .dropdown-menu {
  background-color: #1f1f1f;
  min-width: 220px;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 200;
  transition: background-color 0.35s, color 0.35s;
}

/* Botões de acessibilidade */
.acessibilidade-dropdown .dropdown-menu button {
  background: #1f1f1f;
  border: 1px solid #8b6f4e;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: #f0e6d2;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.acessibilidade-dropdown .dropdown-menu button:hover {
  background: #8b6f4e;
  color: #1f1f1f;
}

/* Toggle claro/escuro */
.acessibilidade-dropdown .theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 1.1rem;
  color: #f0e6d2;
}

/* Switch estilizado */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input { display: none; }

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ffffff;
  border-radius: 34px;
  transition: 0.4s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #8b6f4e;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked {
  background-color: #ffffff;
}



input:checked + .slider:before {
  transform: translateX(22px);
}

.acessibilidade-dropdown .dropdown-menu {
  background-color: #1f1f1f;
  min-width: 220px;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

/* Botões de fonte */
.font-buttons button {
  background: #0d1117;
  border: 1px solid #8b6f4e;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: #f0e6d2;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.font-buttons button:hover {
  background: #8b6f4e;
  color: #161b22;
}

/* Slider container */
.font-size-slider {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  padding: 4px 0;
  max-width: 160px;
  margin: 0 auto;
}

.font-size-slider span {
  font-weight: 600;
  color: #f0e6d2;
}


.font-size-slider input[type="range"] {
  width: 100%;
  height: 6px;
  background: #8b6f4e;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}

.font-size-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #f0e6d2;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.font-size-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #f0e6d2;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.section-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f0e6d2;
    margin-bottom: 4px;
   text-align: center;
}



        /* .btn-sobreNos {
            background-color: #a98856;
              border: 1px solid #a98856;
        } */
        /* .btn-entrar {
        
    background-color: #a98856;
    border: 1px solid #a98856;
    padding: 0.45rem 1.1rem;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 transparent;
        transform: translateY(-2px);

}

.btn-entrar:hover {   
     font-weight: bold;
    background-color: #ffffff;
    color: #161b22;
    transform: translateY(-2px);
} */


        /* Botão menu mobile */
        .menu-toggle {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }

        
        

        /* === RESPONSIVIDADE === */
        @media (max-width: 992px) {
            .search-bar {
                width: 200px;
            }
        }

        @media (max-width: 768px) {
            .navbar-container {
                flex-wrap: wrap;
                padding: 0.8rem 1rem;
            }

            .menu-toggle {
                display: block;
                order: 1;
            }

            .navbar-logo {
                order: 2;
                margin: 0;
                margin-right: auto;
            }
            
            .search-container {
                order: 3;
                width: 100%;
                margin: 0.8rem 0;
            }

            .search-bar {
                order: 3;
                width: 100%;
                margin: 0.8rem 0;
            }

            .nav-links {
                order: 4;
                display: none;
                width: 100%;
                flex-direction: column;
                padding: 1rem 0;
                gap: 0.5rem;
            }

            .nav-links.active {
                display: flex;
            }

            .dropdown-menu {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                display: none;
                padding: 0;
                background-color: transparent;
            }

            .dropdown:hover .dropdown-menu {
                transform: none;
            }

            .dropdown.active .dropdown-menu {
                display: block;
            }
        }

        @media (max-width: 480px) {
            .logo-icon img,
            .logo-text img {
                height: 22px;
                max-width: 100%;
                display: block;
            }
        }

        /* Estilos para o modo noturno */
/* === Modo Claro === */
body.light-mode {
    background-color: #f0f0f0; 
    color: #161b22; 
}

.light-mode .navbar {
    background-color: #fff; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}

 .light-mode .nav-links a,
       .light-mode .nav-links button {
            color: #8b6f4e;
            background: none;
          
        }

       .light-mode .nav-links a:hover,
      .light-mode  .nav-links button:hover {
            background-color: #8b6f4e;
            color: #ffffff;
            box-shadow: 0 2px 10px rgba(139, 111, 78, 0.6);
        }

        .light-mode .btn-entrar {
             border: 2px solid #8b6f4e;
        }


     .light-mode   .dropdown-menu {
            background-color: #8b6f4e;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
            color: #ffffff;
        }

     
     .light-mode   .dropdown-menu a,
      .light-mode  .dropdown-menu button {
      
            color: #ffffff;
         
        }

      .light-mode  .dropdown-menu a:hover,
      .light-mode  .dropdown-menu button:hover {
            background-color: #ffffff;
            color: #8b6f4e;
        }

        /* .light-mode .slider {
            background-color: white;
        } */


.light-mode .banner {
    background-color: #f0f0f0;
}

.light-mode .btn-destaque {
    background-color: #a98856; 
    color: #ffffff;
}

.light-mode .btn-secundario {
    background: transparent;
    color: #8b6f4e;
    border: 2px solid #8b6f4e;
}

.light-mode .btn-secundario:hover {
    background-color: #a98856; 
    color: white;
     border: 2px solid #ffffff;
}

.light-mode .book-card {
    background-color: #fff;
    color: #ffffff;
}

.light-mode .search-bar {
    background-color: #f0f0f0;
    color: #8b6f4e;
    border: none;
    box-shadow: inset 1px 1px 2px #8b6f4e, inset -1px -1px 2px #8b6f4e;
    transition: all 0.3s ease;
}



       .light-mode .search-bar:focus {
            outline: none;
            background-color:  #f0f0f0;
            box-shadow: 0 0 2px #8b6f4e;
        }


      
.light-mode .section-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #161616;
    margin-bottom: 4px;
   text-align: center;
}

.light-mode .font-size-slider span {
  font-weight: 600;
  color: #000000;
}

.light-mode .livro-info {
    background-color: #8b6f4e;
    color: #ffffff;
}

.light-mode .livro-info h3, .light-mode .livro-info p {
    color: #ffffff;
}

.light-mode .avaliacao {
    color: #ffffff;
    text-shadow: 0 8px 18px rgba(255, 174, 0, 0.85);
}

.light-mode .banner-card {
    background-color: #8b6f4e;
    color: #ffffff;
}

.light-mode .banner-content h1, .light-mode .banner-content p {
    color: #8b6f4e;
    text-shadow: none;
}

.light-mode.banner-content h2 {
   color: #000000;
}

.light-mode   .banner-estatisticas  {
    color: #8b6f4e;
  }

  .light-mode .custom-select-toggle {
    background-color: #f0f0f0;
    color: #8b6f4e;
     border: 2px solid #00000044;
  }

  

  .light-mode .count {
    color: #8b6f4e;

  }

  .light-mode .custom-select-menu {
    background-color: #8b6f4e;
    color: white;
  
  }

  .light-mode .custom-select-menu li {
    color: white;
    
  }

  .light-mode .custom-select-menu li:hover {
    background-color: white;
    color: #8b6f4e;
  }
  
  .light-mode .book-card {
    background-color: #8b6f4e;
    color: #ffffff;
}

.light-mode .book-genre-label {
   background-color:rgba(255, 255, 255, 0.7);
    color:#8b6f4e;
    text-shadow: none;
    font-weight: bold;
}

.light-mode .book-rating {
    color: white;
}
.light-mode .book-rating span {
    color: white;
}

.light-mode .footer{
    background-color: #f0f0f0;
   
}

.light-mode .footer-container {
    color: #8b6f4e;
}

.light-mode .footer-logo {
    color: #8b6f4e;
}

.light-mode .footer p {
    color: #8b6f4e;
}

.light-mode .footer-col h4 {
    color: #8b6f4e;
}

.light-mode  .footer-col ul li a {
    color: #8b6f4e;
}

.light-mode .footer-divider {
     border-top: 1px solid #8b6f4e;
}

.light-mode .social-icons a{
    color: #8b6f4e;
}

/*  SOBRE NOS  */

/* ===== Light Mode ===== */

/* Corpo */
.light-mode {
  background-color: #f0f0f0;
  color: #222;
}

/* Seção Sobre */
.light-mode .sobre {
  background-color: #f0f0f0;
  color: #222;
}
.light-mode .sobre h2 {
  color: #3a3a3a;
}
.light-mode .descricao-sobre {
  color: #555;
}

/* Cards da seção Sobre */
.light-mode .card-sobre {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.light-mode .card-sobre h3 {
  color: #111;
}
.light-mode .card-sobre p {
  color: #555;
}

/* Seção Equipe */
.light-mode .equipe h2 {
  color: #222;
}

/* Grid de cards */
.light-mode .card {
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
}
.light-mode .card h3 {
  color: #111;
}
.light-mode .card .cargo {
  color: #666;
}
.light-mode .card .descricao {
  color: #555;
}

/* Links sociais */
.light-mode .social a {
  color: #8b6f4e;
}
.light-mode .social a:hover {
  color: #111;
}

/* Opcional: manter detalhe bege/dourado */
.light-mode .sobre h2,
.light-mode .card-sobre h3 {
  color: #8b6f4e; 
}



/* login/
/* ====== LIGHT MODE ====== */
body.light-mode {
  background-color: #ffffff;
  color: #000000;
}

body.light-mode .navbar {
  background-color: #f9f9f9;
  border-bottom: 1px solid #ddd;
}

body.light-mode .navbar-container {
  color: #000;
}

body.light-mode .search-bar {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #ccc;
}

body.light-mode .dropdown-menu {
  background-color: #ffffff;
  color: #000000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

body.light-mode .dropdown-menu a {
  color: #000000;
}

body.light-mode .dropdown-menu a:hover {
  background-color: #f0f0f0;
}

body.light-mode .btn-sobreNos,
body.light-mode .btn-entrar {
      color: #8b6f4e;

}

body.light-mode .btn-sobreNos:hover,
body.light-mode .btn-entrar:hover {
  background-color: #8b6f4e;
}

body.light-mode .theme-toggle i {
  color: #000;
}


.light-mode .detalhes-content {
  background-color:  #8b6f4e; 
}