body {
  font-family: "Poppins", sans-serif;
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

.wrapper {
  display: flex;
}

.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  transition: all 0.25s ease-in-out;
  background-color: var(--secondary-color);
}

/* Logo da navbar */
.sidebar-logo img {
  width: 35px;
}

.sidebar-title h3{
  color: var(--secondary-color-text);
  font-size: 18px;
  font-weight: 600;
}

.sidebar-title span {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 17px;
  font-family: Arial, Helvetica, sans-serif;
  margin-left: 10px;
}

.sidebar-logo {
  text-align: center;
  margin: 0 auto;
}
/* / Logo da navbar */

/* Sidebar */
#sidebar {
  width: 90px;
  min-width: 90px;
  transition: all 0.25s ease-in-out;
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
}
/* / Sidebar */

/* Collapse */
#sidebar.expand {
  width: 260px;
  min-width: 260px;
}

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span {
  display: none;
}

#sidebar.expand .sidebar-logo,
#sidebar.expand a.sidebar-link span{
  animation: fadeln .25s ease;
}

@keyframes fadeln {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.toggle-btn {
  width: 30px;
  height: 30px;
  color: var(--white-color);
  border-radius: 0.425rem;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--tertiary-color);
}

.toggle-btn i {
  color: var(--white-color);
}
/* / Collapse */

/* Sidebar*/
.sidebar-nav {
  padding: 0.7rem 0;
  flex: 11 auto;
  z-index: 10;
}

a.sidebar-link {
  padding: .625rem 1.625rem;
  color: var(--secondary-color-text);
  display: block;
  white-space: nowrap;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.sidebar-link i {
  font-size: 1.1rem;
  margin-right: .75rem;
}

a.sidebar-link:hover {
  background-color: var(--tertiary-color);
  border-left: 3px solid var(--white-color);
}

.sidebar-item {
  position: relative;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
  position: absolute;
  top: 0;
  left: 90px;
  background-color: var(--primary-color);
  padding: 0;
  min-width: 15rem;
  display: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
  display: block;
  max-height: 15em;
  width: 100%;
  opacity: 1;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown .sidebar-dropdown {
  left: 180px;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
  border: solid;
  border-width: 0 .075rem .075rem 0;
  content: "";
  display: inline-block;
  padding: 2px;
  position: absolute;
  right: 1.5rem;
  top: 1.4rem;
  transform: rotate(-135deg);
  transition: all .2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
  transform: rotate(45deg);
  transition: all .2s ease-out;
}

.sidebar-dropdown .sidebar-link {
  position: relative;
  padding-left: 3rem;
  transition: all 0.5s;
}

.sidebar-dropdown a.sidebar-link::before {
  content: "";
  height: 0.125rem;
  width: 0.375rem;
  background-color: var(--white-color);
  position: absolute;
  left: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.5s;
}

.sidebar-dropdown a.sidebar-link:hover {
  background: transparent;
  border-left: 3px solid transparent;
  padding-left: 3.8rem;
  color: var(--white-color);
}
/* / Sidebar */

/* Navbar main */
.main .navbar {
  background-color: var(--white-color);
  box-shadow: 0 0 2rem rgba(33, 37, 41, .1);
}

.main .navbar-expand .navbar-collapse {
  min-width: 200px;
}

.main .avatar {
  width: 40px;
  height: 40px;
}

.card {
  color: var(--primary-color-text);
  cursor: pointer;
  margin-bottom: 1rem;
  border-color: rgba(231, 234, 243, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}


.card .title {
  margin-bottom: .25rem;
}

.content {
  flex: 11 auto;
}

footer {
  background-color: #e4e4e4;
  padding: 1rem .875rem;
}

/* / Navbar main */

@media (min-width:768px){
  .input-group-navbar .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 0 rgba(255, 255, 255);
    border: none;
    background-color: var(--secondary-color);
  }

  .input-group-navbar {
    max-width: 320px;
  }

  .input-group-navbar .form-control {
    color: var(--primary-color);
    background-color: var(--secondary-color);
    height: calc(2.44375rem+2px);
  }

  .input-group-navbar .btn {
    color: var(--black-color);
    background-color: var(--secondary-color);
    cursor: pointer;
    z-index: 1000;
  }

  .input-group-navbar .btn:active {
    background: var(--secondary-color);
  }

  .navbar-expand .navbar-nav .dropdown-menu {
    box-shadow: 0.1rem .2rem rgba(0, 0, 0, .05);
  }
}

@media (max-width: 767px) {
  .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
  }
}
