.admin-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* fundo gradiente idêntico ao login */
    background: var(--cor-fundo-rodape);
    padding: 20px;
}

.admin-content {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  width: 100%;
}

.admin-content h1 {
  color: #333;
  margin-bottom: 10px;
  font-size: 32px;
}

.admin-content > p {
  color: #666;
  margin-bottom: 30px;
  font-size: 16px;
}

.admin-info {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 4px solid #667eea;
}

.admin-info h2 {
  color: #333;
  margin: 0 0 15px 0;
  font-size: 18px;
}

.admin-info p {
  color: #555;
  margin: 8px 0;
  font-size: 14px;
}

.admin-info strong {
  color: #333;
}

.admin-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* -------- form e lista -------- */
.admin-form {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-form label {
  font-weight: 600;
  margin-bottom: 4px;
}

.admin-form input[type="text"],
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.admin-form input[type="file"] {
  width: 100%;
  color: #4b5563;
  font-size: 13px;
}

.admin-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 1px solid #6dc7df;
  border-radius: 999px;
  background: #6dc7df;
  color: #071f28;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(26, 105, 126, 0.18);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.admin-form input[type="file"]::file-selector-button:hover {
  background: #59b9d3;
  border-color: #59b9d3;
  transform: translateY(-1px);
}

.admin-form textarea {
  resize: vertical;
  min-height: 60px;
}

.admin-form fieldset {
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 6px;
}

.admin-form legend {
  font-weight: 700;
}

.tag-input-group,
.disp-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.tag-input-group button,
.disp-input-group button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid #6dc7df;
  border-radius: 999px;
  background: #6dc7df;
  color: #071f28;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(26, 105, 126, 0.18);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tag-input-group button::before,
.disp-input-group button::before {
  content: "+";
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1;
}

.tag-input-group button:hover,
.disp-input-group button:hover {
  background: #59b9d3;
  border-color: #59b9d3;
  transform: translateY(-1px);
}

.tag-input-group button:active,
.disp-input-group button:active,
.admin-form input[type="file"]::file-selector-button:active {
  transform: translateY(0);
}

.tag-list,
.disp-list {
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.disp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tag-chip,
.disp-item {
  background: #f3f7ec;
  border: 1px solid #d8edaa;
  border-radius: 8px;
  color: #1f2933;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 8px 6px 10px;
}

.tag-chip-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.disp-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.disp-type {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #b9ef5d;
  color: #18220d;
  font-size: 12px;
  font-weight: 800;
}

.disp-link {
  flex: 1 1 auto;
  min-width: 0;
  color: #344054;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chip-delete {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid #fecaca;
  border-radius: 50%;
  background: #fff1f2;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.chip-delete::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  width: 8px;
  height: 9px;
  border: 2px solid #dc2626;
  border-top: 0;
  border-radius: 0 0 2px 2px;
}

.chip-delete::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: #dc2626;
}

.chip-delete:hover {
  background: #ffe4e6;
  border-color: #f87171;
  transform: translateY(-1px);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.form-actions button {
  min-width: 88px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.form-actions button[type="submit"] {
  background-color: var(--cor-verde);
  color: #212121;
}

.form-actions button[type="submit"]:hover {
  background-color: #a7e448;
  border-color: #a7e448;
}

.form-actions button[type="button"] {
  background-color: #e5e7eb;
  border-color: #d1d5db;
  color: #212121;
}

.form-actions button[type="button"]:hover {
  background-color: #d1d5db;
  border-color: #c4c9d1;
}

.form-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
}

.form-actions button:active {
  transform: translateY(0);
}

.form-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.admin-list ul {
  list-style: none;
  padding-left: 0;
}

.admin-item {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  border-radius: 4px;
  margin-bottom: 8px;
  transition: background-color 0.2s;
}

.admin-item:hover {
  background: #f5f5f5;
}

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-info strong {
  color: #333;
  font-size: 15px;
}

.item-tipo {
  color: #999;
  font-size: 12px;
  font-weight: normal;
}

.item-actions {
  display: flex;
  gap: 8px;
}

.item-actions button {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-editar {
  background-color: #667eea;
  color: white;
}

.btn-editar:hover {
  background-color: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-deletar {
  background-color: #ff6b6b;
  color: white;
}

.btn-deletar:hover {
  background-color: #ee5a52;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.item-actions button:active {
  transform: translateY(0);
}

.admin-list h2 {
  margin-bottom: 8px;
}

.btn-voltar,
.btn-sair {
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-voltar {
  background-color: #667eea;
  color: white;
}

.btn-voltar:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-sair {
  background-color: #ff6b6b;
  color: white;
}

.btn-sair:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* ===== NOTIFICAÇÕES ===== */
.notification {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 15px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.notification.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.admin-preview {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 16 / 9;
  margin-top: 10px;
  margin-left: 3%;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
}

.admin-preview img,
.admin-preview video,
.admin-preview iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
}

.admin-preview.pequeno {
  width: 72px;
  min-width: 72px;
  margin: 0;
}

.item-info-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* ===== ADMIN DASHBOARD ===== */
.admin-list-container {
  align-items: flex-start;
  background: var(--cor-fundo-rodape);
  padding: 28px 20px;
}

.admin-list-page {
  max-width: 1180px;
  background: #202020;
  color: #f5f7fa;
  border: 1px solid rgba(185, 239, 93, 0.22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.admin-form-page {
  max-width: 820px;
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.admin-page-header h1 {
  margin: 4px 0 6px;
  color: inherit;
}

.admin-page-header p {
  margin: 0;
  color: #cbd5e1;
  max-width: 680px;
  line-height: 1.45;
}

.admin-eyebrow {
  color: #b9ef5d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-primary-action {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #b9ef5d;
  border-radius: 999px;
  background: #b9ef5d;
  color: #17210f;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(185, 239, 93, 0.22);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-primary-action:hover {
  background: #a7e448;
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(185, 239, 93, 0.28);
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 24px;
}

.admin-search-box,
.admin-total-box {
  background: #2d2d2d;
  border: 1px solid rgba(109, 199, 223, 0.32);
  border-radius: 12px;
  padding: 12px 14px;
}

.admin-search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-search-box span {
  color: #6dc7df;
  font-weight: 900;
}

.admin-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
}

.admin-search-box input::placeholder {
  color: #8fa3ad;
}

.admin-total-box {
  min-width: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.admin-total-box strong {
  color: #b9ef5d;
  font-size: 24px;
  line-height: 1;
}

.admin-total-box span {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}

.admin-category-grid {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.admin-category-section {
  border-radius: 14px;
  background: #252525;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.admin-category-section.rv {
  border-left: 5px solid #b9ef5d;
}

.admin-category-section.ra {
  border-left: 5px solid #6dc7df;
}

.admin-category-section.v360 {
  border-left: 5px solid #f4d35e;
}

.admin-category-section.v360i {
  border-left: 5px solid #c084fc;
}

.admin-category-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.admin-category-title div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-category-title span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(185, 239, 93, 0.14);
  color: #b9ef5d;
  font-weight: 900;
}

.admin-category-title h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 20px;
}

.admin-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.admin-card-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0 2px 8px;
}

.admin-card-grid::-webkit-scrollbar {
  display: none;
}

.admin-project-card {
  overflow: hidden;
  border-radius: 12px;
  background: #333;
  border: 1px solid rgba(255, 255, 255, 0.08);
    flex: 0 0 calc((100% - 28px) / 3);
  scroll-snap-align: start;
min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}


.admin-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 42px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(20, 20, 20, 0.28);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.admin-carousel-btn:hover {
  background: rgba(185, 239, 93, 0.84);
  color: #111;
}

.admin-carousel-btn.left {
  left: 8px;
}

.admin-carousel-btn.right {
  right: 8px;
}
.admin-project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(109, 199, 223, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.admin-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.admin-card-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.admin-card-thumb.vazio {
  background: linear-gradient(135deg, #222, #333);
}

.admin-project-body {
  padding: 14px;
}

.admin-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.admin-type-pill,
.admin-related-pill {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.admin-type-pill {
  background: rgba(109, 199, 223, 0.16);
  color: #6dc7df;
}

.admin-related-pill {
  background: rgba(185, 239, 93, 0.16);
  color: #b9ef5d;
}

.admin-project-body h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
}

.admin-project-body p {
  margin: 0;
  min-height: 42px;
  color: #d1d5db;
  font-size: 13px;
  line-height: 1.45;
}

.admin-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 25px;
  margin: 12px 0;
}

.admin-card-tags span {
  max-width: 100%;
  overflow-wrap: anywhere;
  border-radius: 999px;
  background: #424242;
  color: #f5f7fa;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.admin-project-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.admin-project-footer > span {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
}

.admin-list-page .item-actions button {
  border-radius: 999px;
  padding: 8px 12px;
}

.admin-empty-state {
  min-height: 190px;
  border: 1px dashed rgba(185, 239, 93, 0.35);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.admin-empty-state strong {
  color: #fff;
  font-size: 18px;
}

.admin-list-page .admin-actions {
  margin-top: 28px;
}

.admin-form-page .admin-form label,
.admin-form-page .admin-form legend {
  color: #111827;
}

.admin-file-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 3%;
}

.admin-file-row input {
  flex: 1;
}

.admin-file-row span {
  color: #666;
  font-size: 12px;
}

@media (max-width: 1050px) {
  .admin-project-card {
    flex-basis: calc((100% - 14px) / 2);
  }
}

@media (max-width: 760px) {
  .admin-page-header,
  .admin-toolbar,
  .admin-project-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-header-actions,
  .admin-project-footer .item-actions {
    justify-content: flex-start;
  }

  .admin-search-box {
    grid-template-columns: 1fr;
  }

  .admin-file-row {
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
