/* ==========================================
   Admin Galeria
========================================== */

/* Cabeçalho */
.admin-page-header {
  padding-top: 0;
}

.admin-table > :not(caption) > * > * {
  padding: 0rem;
  font-size: 1rem;
  color: #6b655f;
  padding-left: 3rem;
}

.admin-page-header {
  padding-top: 0;
  padding-bottom: 0rem;
  margin-bottom: 1rem;
}

.admin-page-header .h2 {
  font-size: 1.4rem;
}

.admin-table .btn {
  border-radius: 0.5rem;
  min-height: 30px;
}

.admin-table .td {
  color: #870667;
}
.admin-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.admin-action {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  padding: 0;

  border: 0;
  background: transparent;

  text-decoration: none;

  cursor: pointer;

  transition: 0.18s ease;
}

.admin-action-edit {
  color: #0d6efd;
}

.admin-action-edit:hover {
  color: #0abd5a;
  transform: scale(1.15);
}

.admin-action-delete:hover {
  color: #d70808;
  transform: scale(1.15);
}

/* Categoria */

.admin-badge-category {
  background: #f5efeb;
  color: #6b5a53;
}

/*=======================================
admin/galeria/novo
=======================================*/

/*   Card do Formulário
====================================== */

.admin-card {
  border: 0;
  border-radius: 14px;

  background: #fff;

  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.admin-card .card-body {
  padding: 2rem;
}

/*   botoes
========================================== */
.admin-page-header .btn.btn-outline-secondary {
  border-radius: 1.4rem;
  padding-top: 0rem;
  margin: 0;
}

.admin-card .btn.btn-primary {
  border-radius: 1.4rem;
  padding-top: 0rem;
  margin: 0;
}

/*   Upload
========================================== */

.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 0.5rem;

  padding: 2rem;

  border: 2px dashed #d8d2cc;
  border-radius: 12px;

  background: #faf8f6;

  cursor: pointer;

  transition: 0.2s ease;
}

.upload-area:hover {
  border-color: #dc7867;

  background: #fffdfc;

  transform: translateY(-1px);
}

.upload-icon {
  font-size: 2rem;

  color: #dc7867;
}

.upload-title {
  font-weight: 600;

  color: #5d4f4a;
}

.upload-file-name {
  color: #7d756f;

  font-size: 0.95rem;
}

.upload-area small {
  color: #999;
}

.upload-icon {
  font-size: 2.5rem;
}

.upload-preview {
  display: block;

  max-width: 220px;
  max-height: 220px;

  border-radius: 12px;

  object-fit: cover;

  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.08);

  margin-bottom: 0.75rem;
}

.upload-area.has-image {
  border-style: solid;
  border-color: #e5ddd7;
  background: #fff;
}

/* ==========================================================
   Lightbox da Imagem (Admin Galeria)
========================================================== */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 2rem;

  background: rgba(0, 0, 0, 0.85);

  cursor: zoom-out;
}

.image-lightbox img {
  max-width: 90vw;
  max-height: 90vh;

  border-radius: 12px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);

  cursor: default;
}

.image-lightbox-close {
  position: absolute;

  top: 1.5rem;
  right: 1.5rem;

  width: 44px;
  height: 44px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.15);
  color: #fff;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 1.1rem;

  transition: 0.2s;
}

.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.upload-preview {
  cursor: zoom-in;
}

/* drag and drop*/
.upload-area.dragover {
  border-color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.08);

  transform: scale(1.01);

  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
/* Responsividade */
@media (max-width: 767.98px) {
}
