@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
/*Definição de variáveis css*/
:root{
  --NavyBlue: #0f1a4a;
  --Green: #3fb072;
  --GreenLight: #99d3ab;
  --Cream: #fff7e0;
}
/*Font*/
html body{
  font-family: 'Inter', sans-serif !important;
}
/*Classes css*/
.background-NavyBlue{
  background-color: var(--NavyBlue) !important;
}
.background-Green{
  background-color: var(--Green) !important;
}
.background-GreenLight{
  background-color: var(--GreenLight) !important;
}
.background-Cream{
  background-color: var(--Cream) !important;
}

.border-white-10 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.tracking-tight {
  letter-spacing: -0.5px;
}
.btn.background-Green:hover,.btn.background-Green:focus,.btn.background-Green:active{
  background-color: #328c5a;
  color: var(--Cream);
}
.btn.background-NavyBlue:hover{
  background-color: #09133c;
  color: var(--Cream);
}
.btn:disabled, .account-btn:disabled {
  opacity: 1 !important;
  filter: brightness(0.7);
  cursor: not-allowed;
  pointer-events: auto !important;
}
.text-NavyBlue{
  color: var(--NavyBlue) !important;
}
.text-GreenLight{
  color: var(--GreenLight) !important;
}
.text-Cream,.text-Cream:focus,.text-Cream:active{
  color: var(--Cream) !important;
}
.btn-outline-navy-blue {
  color: var(--NavyBlue);
  border-color: var(--NavyBlue);
}
.btn-outline-navy-blue:hover {
  background-color: var(--NavyBlue);
  color: var(--Cream);
}
.btn-size1{
  width: auto;
  min-width: 150px;
  padding: 12px 24px !important;
  font-weight: 600;
}
.account-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.account-card {
  background: #fff;
  border: none;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(18, 29, 74, 0.10);
  padding: 2.5rem 2.5rem 2rem;
  width: 30vw;
}
@media (max-width: 1200px) {
  .account-card {
    width: 50vw;
  }
}
@media (max-width: 991.98px) {
  .account-card {
    width: 70vw;
  }
}
@media (max-width: 767.98px) {
  .account-card {
    width: 90vw;
    padding: 2rem 1.5rem;
  }
}
.account-title {
  font-weight: 700;
  color: var(--NavyBlue);
  margin-bottom: 0.25rem;
}
.account-subtitle {
  margin-bottom: 1.75rem;
}
.account-field {
  margin-bottom: 1.1rem;
}
.account-field label {
  font-weight: 600;
  color: #222;
  margin-bottom: 0.35rem;
  display: block;
}
.account-label-row {
  display: flex;
  justify-content: start;
  align-items: center;
  margin-bottom: 0.35rem;
}
.account-label-row label {
  margin-bottom: 0;
}
.account-label-row a {
  color: var(--Green);
  text-decoration: none;
  font-weight: 500;
}
.account-label-row a:hover {
  text-decoration: underline;
}
.account-input-wrap {
  position: relative;
}
.account-input-wrap input {
  width: 100%;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.65rem 2.5rem 0.65rem 0.9rem;
  font-size: 0.97rem;
  font-family: 'Inter', sans-serif;
  color: #222;
  outline: none;
  background: #fff;
}
.account-input-wrap input:focus {
  border-color: var(--Green);
}
.account-input-wrap input::placeholder {
  color: #bbb;
}
.account-toggle-pw {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #aaa;
  font-size: 1.1rem;
  background: none;
  border: none;
  padding: 0;
}
.account-toggle-pw:hover {
  color: var(--NavyBlue);
}
.account-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.account-footer-link {
  text-align: center;
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: #888;
}
.account-footer-link a {
  color: var(--Green);
  text-decoration: none;
  font-weight: 600;
}
.account-footer-link a:hover {
  text-decoration: underline;
}
.account-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: #aaa;
  text-decoration: none;
}
.account-back-link:hover {
  color: var(--NavyBlue);
}
.nav-link , .nav-link:hover{
  color: var(--NavyBlue);
}
.nav-link.active {
  background-color: var(--Green)!important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--Green) !important;
  box-shadow: none !important;
  outline: 0 !important;
}
.form-control, .form-select {
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 10px !important;
}
.input-group .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.input-group .btn {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border: 1.5px solid transparent !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}
.input-group .btn:hover {
    border: 1.5px solid transparent !important;
}
.sidebar{
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 248px;
  z-index: 1030;
  text-align: left;
  box-shadow: 0 8px 30px rgba(18, 29, 74, 0.18);
}

.has-sidebar{
  padding-left: 248px;
  background-color: var(--Cream);
  transition: padding 0.3s ease;
}

@media (max-width: 991.98px) {
  .has-sidebar {
    padding-left: 0;
  }
  .list-container {
    padding: 1.25rem;
  }
  .d-flex.align-items-center.justify-content-between.mb-4 {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
}

.app-sidebar{
  padding: 18px 16px;
}
.sidebar-inner{
  height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
}
.sidebar-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--Cream);
  padding: 6px 6px 16px;
  user-select: none;
}
.sidebar-brand:hover{
  color: var(--Cream);
}
.sidebar-brand-icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.sidebar-brand-icon i{
  font-size: 1.25rem;
}
.sidebar-brand-text{
  line-height: 1.05;
}
.sidebar-brand-title{
  display: block;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.sidebar-brand-subtitle{
  display: block;
  font-size: 0.68rem;
  letter-spacing: 1.3px;
  color: rgba(255, 247, 224, 0.65);
  margin-top: 2px;
}

.sidebar-nav{
  padding: 8px 6px 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-group + .sidebar-group{
  margin-top: 14px;
}
.sidebar-section{
  font-size: 0.68rem;
  letter-spacing: 1.4px;
  color: rgba(255, 247, 224, 0.45);
  margin: 10px 6px 8px;
}
.sidebar-list{
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-item{
  margin: 2px 0;
}
.sidebar-link{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 247, 224, 0.8);
  font-weight: 600;
  user-select: none;
}
.sidebar-link i{
  width: 18px;
  text-align: center;
  opacity: 0.9;
}
.sidebar-link:hover{
  color: var(--Cream);
  background: rgba(255, 247, 224, 0.08);
}
.sidebar-link.active{
  background: var(--Green);
  color: var(--Cream);
}
.sidebar-link.active:hover{
  background: #328c5a;
}
.sidebar-logout-form{
  margin: 0;
}
button.sidebar-link{
  width: 100%;
  background: transparent;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sidebar-user{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  margin: 10px 6px 6px;
  border-radius: 14px;
  background: rgba(255, 247, 224, 0.06);
}
.sidebar-user-avatar{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 247, 224, 0.20);
  color: rgba(255, 247, 224, 0.9);
  font-weight: 800;
  font-size: 0.9rem;
}
.sidebar-user-meta{
  min-width: 0;
}
.sidebar-user-name{
  font-weight: 700;
  color: var(--Cream);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.list-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.search-filter-card {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.filter-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-end;
}

.filter-row .account-field {
    flex: 1;
}

.filter-row .account-input-wrap.search-input-wrap {
    display: flex;
    gap: 0.5rem;
}

.filter-row .account-input-wrap.search-input-wrap input {
    flex: 1;
}

.btn-search {
    border-radius: 10px;
    padding: 0.65rem 1.2rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.view-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.btn-toggle {
    background: #fff;
    border: 1px solid #eee;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    color: #555;
}

.btn-toggle.active {
    background: #eee;
}

.books-count {
    color: #888;
    font-size: 0.9rem;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.book-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-cover {
    height: 400px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info {
    padding: 1.25rem;
    flex-grow: 1;
}

.book-title {
    font-weight: 700;
    color: var(--NavyBlue);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    color: #888;
    font-size: 0.85rem;
}

.btn-new-book {
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
}

.search-input-wrap .position-relative {
    flex: 1;
}
.search-input-wrap input {
    width: 100%;
    padding-left: 2.5rem !important;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
}
.search-input-wrap input:focus {
    border-color: var(--Green);
    outline: none;
    box-shadow: none;
}
.search-input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}
.account-input-wrap .account-select {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.65rem 2.5rem 0.65rem 0.9rem;
    font-size: 0.97rem;
    font-family: 'Inter', sans-serif;
    color: #222;
    outline: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23aaaaaa'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.account-input-wrap .account-select:focus {
    border-color: var(--Green);
}
.btn-toggle {
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-toggle:hover {
    background: #f3f3f3;
    color: var(--NavyBlue);
    border-color: #ddd;
}
.btn-toggle.active {
    background: var(--NavyBlue);
    color: var(--Cream);
    border-color: var(--NavyBlue);
}
.btn-toggle:active, .btn-toggle:focus {
    background: #e9e9e9 !important;
    color: var(--NavyBlue) !important;
    box-shadow: none !important;
}
.btn-toggle.active:active, .btn-toggle.active:focus {
    background: #050b24 !important;
    color: var(--Cream) !important;
    box-shadow: none !important;
}
.btn-toggle.active:hover,
.btn-toggle.active:focus {
    background: #09133c !important;
    color: var(--Cream) !important;
    border-color: #09133c !important;
}

.books-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.books-list .book-card {
    flex-direction: row;
    align-items: stretch;
    height: auto;
}
.books-list .book-cover {
    width: 90px;
    min-width: 90px;
    height: 130px;
    flex: 0 0 auto;
}
.books-list .book-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.books-list .book-title {
    font-size: 1.1rem;
    -webkit-line-clamp: 2;
}
.books-empty {
    background: #fff;
    border-radius: 15px;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #888;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.books-empty i {
    font-size: 2.5rem;
    color: var(--GreenLight);
    display: block;
    margin-bottom: 0.5rem;
}
.books-empty p {
    margin: 0;
}

/*IDs*/
#mainIndex{
  min-height: 100vh;
  padding: 15vh 5vw 10vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
@media (min-width: 992px) {
  #mainIndex {
    padding: 20vh 10vw 5vh;
  }
}
#arrow-down {
  position: absolute;
  bottom: 2vh;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  transition: 0.5s;
}
#arrow-down:hover {
  transform: translateX(-50%) translateY(5px);
  color: #e6dec9;
}
#secondIndex{
  min-height: 50vh;
  padding: 5rem 5vw;
}
