.dropdown {
  position: relative !important;
}
.dropdown-menu.show {
  position: absolute;
  top: 100%;
  right: 0;
}

.dropdown .filters {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
}
.dropdown .filters.show {
  display: block;
}

.form-search {
  position: relative;
}
.form-search .clean {
  position: absolute;
  top: 100%;
  right: 0;
}

.show {
  display: block !important;
}
.hide {
  display: none !important;
}

/* Conteúdos */

.calendar-week-wrap {
  overflow-x: scroll;
  overflow-y: auto;
  transform: rotateX(180deg);
}
.calendar-week {
  gap: 12px;
  padding-top: 1rem;
  transform: rotateX(180deg);
}
.calendar-week .day {
  flex-shrink: 0;
  width: 180px;
}
.calendar-week .day .title {
  font-size: 1rem;
}
.calendar-week .day .card {
  font-size: 0.85rem;
}
.calendar-week .day .card-header,
.calendar-week .day .card-footer {
  padding: 12px;
}
.calendar-week .day .card-body {
  padding: 0 12px;
}

.calendar-week .day .avatar .letters {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
}
.calendar-week .day .thumb img {
  width: 100%;
  max-width: 100%;
  height: auto;;
}

.admin-post-content .modal-body {
  text-align: left;
}
.admin-post-content form {
  margin: 0;
}
.admin-post-content .btn {
  width: 100%;
  display: block;
  text-align: left;
  margin-bottom: 1rem;
}
.admin-post-content .btn i {
  display: inline-block;
  vertical-align: middle;
}

.post-media-list {
  max-height: 180px;
  overflow: auto;
}
.media-item {
  position: relative;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #e7e7e7;
  background-color: rgba( 0,0,0,0.025 );
  font-size: 0.9rem;
}
.media-error .media-item {
  border-color: rgba(188, 68, 68, 0.25);
  background-color: rgba(188, 68, 68, 0.1);
}
.media-error .media-item .bt-media-remove {
  color: rgba(188, 68, 68, 0.25);
}

.media-item .media-info {
  font-size: 0.8rem;
  width: calc( 100% - 64px );
}
.media-item .media-info .thumb {
  width: 64px;
  height: 64px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  box-shadow: 0 0 5px rgba( 0,0,0,0.025 );
}
.media-item .media-info .thumb img {
  max-width: 100%;
  height: auto;
}
.media-item .media-info .text {
  word-break: break-all;
  width: calc( 100% - 64px - 0.5rem );
}
.media-item .media-info .d-flex {
  gap: 0.5rem;
}
.media-item .media-actions {
  width: 48px;
  text-align: right;
}
.media-item .progress-bar {
  width: 100%;
  height: 5px;
  position: absolute;
  bottom: 0;
  left: 0;
}
.media-item .progress-bar div {
  display: block;
  height: 100%;
  background-color: #79c8cd;
}

/**/

.bt-status.active {
  font-weight: 700;
}

.drop-zone {
  -webkit-user-select: none; /* Safari */
  user-select: none;
  
  background-color: #f1f1f1;
  border: 2px dashed #c7c7c7;
  color: #aaa;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0 1rem 0;
}
.drop-zone .wrapper {
  margin-bottom: 0;
}
.drop-zone .icon {
  width: 48px;
  height: 48px;
  font-size: 48px;
}
.drop-zone .text {
  display: block;
  font-size: 0.8rem;
}

.drop-zone.dz-drag-hover,
.media-drop.dz-drag-hover {
  color: #79c8cd;
  border-color: #79c8cd;
  background-color: rgba(121, 200, 205, 0.25);
}


.user-post {
  position: relative;
}

.user-post .thumb {
  display: block;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 1rem;
}

.user-post .thumb img,
.user-post-content img {
  max-width: 100%;
  height: auto;
}

.user-post h5 {
  max-width: 75%;
  line-height: 1.5em;
}

.user-links .active {
  font-weight: bold;
}
.bt-user-post {
  cursor: pointer;
}

.wizard-progress-wrapper {
  margin-bottom: 1rem;
  background-color: rgba(0,0,0,0.05);
  border-radius: 2px;
  overflow: hidden;
}
.wizard-progress-bar {
  height: 8px; 
  background-color: #79c8cd;
  transition: all 0.25s ease;
}

.wizard-content .form-control-options.image {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.wizard-content .form-control-options.image .form-control-option {
  width: calc( 50% - 1rem/2 );
}

.wizard-content .form-control-option {
  background: rgba(0, 0, 0, 0.05);
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
}
.wizard-content .form-control-option img {
    display: block;
    width: 150px;
    max-width: 100%;
    margin-bottom: 0.25rem;
}

.media-drop {
  border: 2px solid rgba( 0,0,0,0.025 );
  background-color: rgba( 0,0,0,0.0125 );
}
.media-library-actions .form-control {
  max-width: 360px;
}
.media-library .media-list {
  width: 70%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.media-library .media-details {
  width: 30%; 
  padding-left: 20px;
}

.media-library .media-list .thumb {
  cursor: pointer;
  overflow: hidden;
  position: relative;
  display: inline-block;
  width: 110px;
  height: 110px;
  border: 1px solid #ccc;
}
.media-library .media-list .thumb img {
  width: 100%;
  height: 100%;
}
.media-library .media-list .thumb .check-icon {
  position: absolute;
  display: inline-block;
  width: 24px;
  height: 24px;
  color: #fff;
  background-color: #79c8cd;
  border: 2px solid #fff;
  top: 6px;
  right: 6px;
  font-size: 1.25rem;
  line-height: 1rem;
}

.media-library .media-details .entry {
  color: inherit;
  text-align: left;
  border: 1px solid #e1e1e1;
  padding: 1rem;
}
.media-library .media-details .btn-details-close {
  float: right;
  background: transparent; 
  border: none; 
  font-size: 16px; 
  cursor: pointer;
}

.art-folder:hover { 
  color: #697a8d; 
  border-color: #79c8cd;
  background-color: rgba(121, 200, 205, 0.15); 
}

.switch .switch-input~.switch-toggle-slider {
    position: absolute;
    overflow: hidden;
    border: 1px solid var(--bs-switch-border-color);
    border-radius: 30rem;
    background: var(--bs-switch-bg);
    box-shadow: var(--bs-switch-box-shadow);
    color: var(--bs-switch-color);
    font-size: .625rem;
    inset-block-start: 50%;
    transform: translateY(-50%);
    transition-duration: .2s;
    transition-property: inset-inline-start, inset-inline-end, background, box-shadow;
    user-select: none;

    --bs-switch-bg: var(--bs-primary);
    --bs-switch-color: var(--bs-white);
    --bs-switch-border-color: var(--bs-primary);
    --bs-switch-box-shadow: 0 .125rem .375rem 0 rgba(var(--bs-primary-rgb), .3);
}
.switch .switch-input:checked~.switch-toggle-slider {
    --bs-switch-bg: var(--bs-white);
    --bs-switch-color: var(--bs-primary);
    --bs-switch-border-color: var(--bs-primary);
    --bs-switch-box-shadow: 0 .125rem .375rem 0 rgba(var(--bs-primary-rgb), .3);
}
.switch .switch-input~.switch-toggle-slider:after {
  background-color: var(--bs-white) !important;
}
.switch .switch-input:checked~.switch-toggle-slider:after {
  background-color: var(--bs-primary) !important;
}

/* Custom styles for the admin panel */
.sidebar-menu {
  overflow-y: auto;
  overflow-x: hidden;
}

.user-posts-search {
  max-width: 360px;
  margin: auto;
}

.table-responsived table {
  width: 100%;
  max-width: 100%;
}

.user-plans .card {
  max-width: 360px;
  margin: auto;
}

@media (max-width: 768px) {
  .panel .shortcut {
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
  }

  .user-card {
    flex-wrap: wrap;
    text-align: center;
  }
  .user-card .thumb {
    margin: auto;
  }
  .user-card h5 {
    max-width: 100%;
  }

  .user-posts-search {
    width: 100%;
    max-width: 100%;
  }

  .table-responsived {
    overflow-x: auto;
  }
  .table-responsived table {
    width: 100%;
    min-width: 600px;
  }
  table th, table td {
    width: auto !important;
  }

  .media-library-actions .form-control,
  .media-library-actions .btn {
    width: 50%;
  }

  .media-wrapper {
    flex-wrap: wrap;
    flex-direction: column-reverse;
  }
  .media-wrapper .media-list,
  .media-wrapper .media-details {
    width: 100%;
  }
  .media-wrapper .media-details {
    padding-left: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {

  .media-library-actions {
    flex-wrap: wrap;
  }
  .media-library-actions .form-control {
    margin-bottom: 1rem;
  }
  .media-library-actions .form-control,
  .media-library-actions .btn {
    width: 100%;
  }

}