@charset "UTF-8";
.trail-editor {
  font-family: "Lato", sans-serif;
  background: #E5E6EB;
  margin: 0;
  padding: 0;
}
.trail-editor * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.trail-editor .container {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.trail-editor .content-area {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 20px;
}
.trail-editor .editor-row {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 20px;
}
.trail-editor .sidebar {
  background: #fff;
  border-right: 1px solid #E5E6EB;
  padding: 20px;
}
.trail-editor .sidebar h1 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
}
.trail-editor .model-list {
  list-style: none;
  padding: 0;
}
.trail-editor .model-item {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}
.trail-editor .model-item:hover {
  background: #f0f0f0;
}
.trail-editor .model-item.active {
  background: #EBF2FF;
  color: #2684FF;
  font-weight: 600;
}
.trail-editor .model-item .material-icons-outlined {
  margin-right: 10px;
  font-size: 20px;
}
.trail-editor .editor-panel, .trail-editor .preview-panel, .trail-editor .page-preview-panel, .trail-editor .html-section {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow-y: auto;
}
.trail-editor .editor-panel h1, .trail-editor .preview-panel h1, .trail-editor .page-preview-panel h1, .trail-editor .html-section h1 {
  font-size: 20px;
  color: #333;
  margin: 0 0 20px;
}
.trail-editor .editor-panel p, .trail-editor .preview-panel p, .trail-editor .page-preview-panel p, .trail-editor .html-section p {
  font-size: 16px;
  line-height: 24px;
  color: #484D5F;
}
.trail-editor .preview-panel {
  display: flex;
  flex-direction: column;
}
.trail-editor .preview-panel #preview-content {
  flex-grow: 1;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}
.trail-editor .preview-panel #preview-content:empty::after {
  content: "Nenhum elemento selecionado";
  color: #999;
}
.trail-editor .editor-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trail-editor .editor-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trail-editor .editor-form .form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #666D86;
  display: flex;
  align-items: center;
}
.trail-editor .editor-form .form-group label .required {
  color: #ff5252;
  margin-right: 4px;
  font-size: 16px;
}
.trail-editor .editor-form .form-group input, .trail-editor .editor-form .form-group textarea, .trail-editor .editor-form .form-group select {
  padding: 10px 12px;
  border: 1px solid #E5E6EB;
  border-radius: 4px;
  font-size: 14px;
  color: #484D5F;
}
.trail-editor .editor-form .form-group input.error, .trail-editor .editor-form .form-group textarea.error, .trail-editor .editor-form .form-group select.error {
  border-color: #ff5252;
  background: #fff8f8;
}
.trail-editor .editor-form .form-group select {
  appearance: auto;
  background-color: white;
  height: 40px;
}
.trail-editor .editor-form .form-group textarea {
  min-height: 100px;
  resize: vertical;
}
.trail-editor .editor-form .form-group .error-message {
  color: #ff5252;
  font-size: 12px;
}
.trail-editor .button.add-to-page-btn {
  background: #4CAF50;
}
.trail-editor .button.add-to-page-btn:hover {
  background: rgb(60.5577689243, 139.4422310757, 63.7450199203);
}
.trail-editor .button.add-to-page-btn.disabled, .trail-editor .button.add-to-page-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgb(145.5378486056, 207.4621513944, 148.0398406375);
}
.trail-editor .button.clear-page-btn {
  background: #ff5252;
}
.trail-editor .button.clear-page-btn:hover {
  background: #ff1f1f;
}
.trail-editor #page-preview {
  max-width: 640px;
  margin: 0 auto;
}
.trail-editor .page-item {
  position: relative;
  transition: all 0.2s;
  border: 2px solid #FFFFFF;
  border-radius: 8px;
}
.trail-editor .page-item:hover {
  border: 2px dashed #4CAF50;
}
.trail-editor .page-item:hover .item-actions {
  display: flex;
}
.trail-editor .page-item .item-actions {
  position: absolute;
  top: -14px;
  right: 8px;
  display: none;
  gap: 8px;
  z-index: 1;
}
.trail-editor .page-item .item-actions button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #666;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.trail-editor .page-item .item-actions button:hover {
  background: #f0f0f0;
}
.trail-editor .page-item .item-actions button.edit-btn:hover {
  background: #e8f5e9;
  color: #4CAF50;
  border-color: #4CAF50;
}
.trail-editor .page-item .item-actions button.clone-btn:hover {
  background: #f3e5f5;
  color: #9C27B0;
  border-color: #9C27B0;
}
.trail-editor .page-item .item-actions button.move-up-btn:hover, .trail-editor .page-item .item-actions button.move-down-btn:hover {
  background: #e3f2fd;
  color: #2684FF;
  border-color: #2684FF;
}
.trail-editor .page-item .item-actions button.delete-btn:hover {
  background: #ffebee;
  color: #ff5252;
  border-color: #ff5252;
}
.trail-editor .page-item .item-actions button .material-icons-outlined.sm {
  font-size: 18px;
}
.trail-editor .html-section {
  margin-top: 20px;
  border-top: 1px solid #e0e0e0;
}
.trail-editor .html-section .html-preview {
  background: #f3f3f3;
  padding: 16px;
  margin-top: 10px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
  max-height: 200px;
  overflow-y: auto;
}
.trail-editor .button-container {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.trail-editor .button-container .button-group {
  display: flex;
  gap: 10px;
}
.trail-editor .empty-state {
  text-align: center;
  padding: 40px 0;
  color: #888;
}
.trail-editor .empty-state .material-icons-outlined {
  font-size: 48px;
  margin-bottom: 16px;
  color: #ccc;
}
.trail-editor .preview-add-button-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.trail-editor * {
  box-sizing: border-box;
}
.trail-editor p {
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  line-height: 28px;
  color: #484D5F;
  margin: 12px 0;
  padding: 0;
}
.trail-editor iframe {
  border-radius: 4px;
}
.trail-editor .card {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #E5E6EB;
  background-color: #FFFFFF;
  margin: 12px 0;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
.trail-editor .card img {
  width: 100%;
  margin: 0 0 16px 0;
  padding: 0;
  display: block;
  align-self: center;
}
.trail-editor .card h2 {
  margin: 0 0 8px 0;
  font-size: 20px;
  line-height: 32px;
  font-weight: 700;
  text-align: left;
  color: #666D86;
  width: 100%;
}
.trail-editor .card p {
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 24px;
  color: #484D5F;
  margin: 0 0 16px 0;
  padding: 0;
  text-align: left;
  width: 100%;
}
.trail-editor .card.video iframe {
  width: 100%;
  height: 100%;
  margin: 0 0 16px 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: none;
}
.trail-editor .card iframe {
  width: 100%;
  margin: 0 0 16px 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
}
.trail-editor .card.horizontal {
  flex-direction: row;
  column-gap: 24px;
  align-items: flex-start;
  width: 100%;
  overflow: hidden;
}
.trail-editor .card.horizontal a.cover {
  display: block;
  flex: 0 0 133px;
  width: 133px;
  height: 133px;
  text-decoration: none;
}
.trail-editor .card.horizontal a.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trail-editor .card.horizontal .texts {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.trail-editor .card.horizontal .texts h2 {
  overflow: hidden;
  color: #666D86;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
  margin-bottom: 8px;
}
.trail-editor .card.horizontal .texts p {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.trail-editor .card.horizontal .texts .button {
  background-color: #CCEBFE;
  color: #666D86;
  transition: all 0.2s linear;
  letter-spacing: unset;
  text-transform: unset;
  padding: 8px 16px;
  line-height: 16px;
  font-size: 12px;
  font-weight: 700;
}
.trail-editor .card.horizontal .texts .button:hover {
  color: #FFFFFF;
  background-color: #2684FF;
}
.trail-editor .card .button {
  margin: 0;
}
.trail-editor ol {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style-type: none;
  counter-reset: item;
  gap: 24px;
  margin: 24px 0;
  padding-inline-start: 0;
}
.trail-editor ol li {
  text-align: start;
  min-width: calc(50% - 12px);
  max-width: calc(50% - 12px);
  width: 100%;
  display: flex;
  align-items: center;
  color: #484D5F;
}
.trail-editor ol li p {
  margin: 0;
}
.trail-editor ol li::before {
  content: counter(item);
  counter-increment: item;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #2684FF;
  background-color: #FFFFFF;
  color: #2684FF;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  flex-shrink: 0;
  line-height: 24px;
}
.trail-editor .iframe-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* Proporção 16:9 */
  overflow: hidden;
  margin: 28px 0;
}
.trail-editor .iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.trail-editor .button {
  cursor: pointer;
  border: none;
  display: block;
  width: fit-content;
  border-radius: 28px;
  text-decoration: none;
  padding: 20px 40px;
  font-weight: 400;
  font-size: 16px;
  line-height: 16px;
  background-color: #2684FF;
  transition: background-color 0.2s linear;
  text-wrap: nowrap;
  color: #FFFFFF;
  letter-spacing: 4px;
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;
  margin: 24px auto;
}
.trail-editor .button:hover {
  background-color: #3374D6;
}
.trail-editor h3 {
  text-align: start;
  color: rgba(46, 61, 73, 0.7);
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
}

/* Estilos para o modal de importação de HTML */
.trail-editor .html-import-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.trail-editor .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.trail-editor .modal-content {
  position: relative;
  background-color: #fff;
  width: 80%;
  max-width: 800px;
  margin: 50px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 1001;
}

.trail-editor .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #E5E6EB;
}

.trail-editor .modal-header h2 {
  font-size: 20px;
  color: #333;
  margin: 0;
}

.trail-editor .close-modal-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.trail-editor .modal-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.trail-editor .modal-footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid #E5E6EB;
}

.trail-editor .html-parser-preview {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #E5E6EB;
  border-radius: 4px;
  background-color: #f9f9f9;
  max-height: 300px;
  overflow-y: auto;
}

.trail-editor .html-parser-preview p.error {
  color: #ff5252;
}

.trail-editor .button.import-btn {
  background-color: #4CAF50;
}

.trail-editor .button.import-btn:hover {
  background-color: #3d8b40;
}

.trail-editor .button.cancel-btn {
  background-color: #f44336;
}

.trail-editor .button.cancel-btn:hover {
  background-color: #d32f2f;
}

/*# sourceMappingURL=trail-editor.css.map */
