/* CSS Document */

      .main-content {
        flex: 1;
        padding: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 1200px;
        height: 600px;
        margin: auto;
        position: relative;
      }

      .demo-box {
        border-radius: 12px;
        position: relative;
        overflow: hidden;
        background-size: cover;
        background-position: center;
      }

      .demo-content {
        position: relative;
        z-index: 2;
        color: white;
        padding: 40px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }

      .demo-content h1 {
        font-size: 48px;
        margin-bottom: 16px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
      }

      .demo-content p {
        font-size: 18px;
        opacity: 0.9;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
      }

      /* Sidebar Styles */
      .sidebar {
        width: 360px;
        background: white;
        border-left: 1px solid #e0e0e0;
        overflow-y: auto;
        flex-shrink: 0;
      }

      .sidebar-header {
        padding: 20px;
        border-bottom: 1px solid #e0e0e0;
      }

      .sidebar-title {
        font-size: 18px;
        font-weight: 600;
        color: #333;
      }

      .sidebar-content {
        padding: 20px;
      }

      .setting-section {
        margin-bottom: 24px;
      }

      .setting-section:last-child {
        margin-bottom: 0;
        padding-bottom: 10px;
      }

      .setting-label {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        margin-bottom: 12px;
        display: block;
      }

      .button-group {
        display: flex;
        gap: 8px;
      }

      .setting-button {
        flex: 1;
        padding: 12px 16px;
        border: 2px solid #e0e0e0;
        background: white;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        color: #666;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .setting-button:hover {
        border-color: #ccc;
        background: #fafafa;
      }

      .setting-button.active {
        background: #2c2c2c;
        color: white;
        border-color: #2c2c2c;
      }

      .note {
        font-size: 12px;
        color: #888;
        margin-top: 8px;
        line-height: 1.5;
      }

      .divider {
        height: 1px;
        background: #e0e0e0;
        margin: 24px 0;
      }

      .color-picker-section {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.3s ease;
      }

      .color-picker-section.show {
        max-height: 600px;
        opacity: 1;
        margin-top: 24px;
      }

      .color-area {
        position: relative;
        width: 100%;
        height: 180px;
        border-radius: 6px;
        margin-bottom: 12px;
        cursor: crosshair;
        background: linear-gradient(to bottom, transparent, black), linear-gradient(to right, white, transparent);
      }

      .color-pointer {
        position: absolute;
        width: 14px;
        height: 14px;
        border: 2px solid white;
        border-radius: 50%;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
        transform: translate(-50%, -50%);
        pointer-events: none;
      }

      .hue-slider-container {
        margin-bottom: 16px;
      }

      .hue-slider {
        width: 100%;
        height: 12px;
        border-radius: 6px;
        background: linear-gradient(to right, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
        -webkit-appearance: none;
        outline: none;
        cursor: pointer;
      }

      .hue-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: white;
        border: 2px solid #ccc;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        cursor: pointer;
      }

      .hue-slider::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: white;
        border: 2px solid #ccc;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        cursor: pointer;
      }

      .color-input-group {
        display: flex;
        gap: 8px;
        margin-bottom: 12px;
      }

      .color-display {
        width: 50px;
        height: 50px;
        border-radius: 6px;
        border: 2px solid #e0e0e0;
        flex-shrink: 0;
      }

      .hex-input-wrapper {
        flex: 1;
      }

      .hex-input {
        width: 100%;
        padding: 10px 12px;
        border: 2px solid #e0e0e0;
        border-radius: 6px;
        font-size: 14px;
        font-family: "Courier New", monospace;
        text-transform: uppercase;
        outline: none;
        transition: border-color 0.2s;
      }

      .hex-input:focus {
        border-color: #2c2c2c;
      }

      .hex-label {
        display: block;
        font-size: 11px;
        color: #888;
        margin-top: 4px;
        text-align: center;
      }

      .preset-colors {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 6px;
      }

      .preset-color {
        width: 100%;
        aspect-ratio: 1;
        border-radius: 4px;
        border: 2px solid transparent;
        cursor: pointer;
        transition: all 0.2s;
      }

      .preset-color:hover {
        transform: scale(1.1);
        border-color: #2c2c2c;
      }

      .image-upload-section {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
      }

      .image-upload-section.show {
        max-height: 400px;
        opacity: 1;
        margin-top: 10px;
      }

      .upload-area {
        border: 2px dashed #e0e0e0;
        border-radius: 8px;
        padding: 40px 20px;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s;
        position: relative;
      }

      .upload-area:hover {
        border-color: #2c2c2c;
        background: #fafafa;
      }

      .upload-area.has-image {
        padding: 0;
        border: none;
      }

      .upload-icon {
        font-size: 48px;
        color: #ccc;
        margin-bottom: 12px;
      }

      .upload-text {
        font-size: 14px;
        color: #666;
        margin-bottom: 8px;
      }

      .upload-hint {
        font-size: 12px;
        color: #999;
      }
      .upload-area:has(.image-preview.show) .upload-icon,
      .upload-area:has(.image-preview.show) .upload-text,
      .upload-area:has(.image-preview.show) .upload-hint {
        display: none;
      }
      .image-preview {
        display: none;
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;
      }

      .image-preview.show {
        display: block;
      }

      .remove-image-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 18px;
        display: none;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
      }

      .remove-image-btn.show {
        display: flex;
      }

      .remove-image-btn:hover {
        background: rgba(0, 0, 0, 0.8);
      }

      #fileInput {
        display: none;
      }

      .overlay-section {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
      }

      .overlay-section.show {
        max-height: 300px;
        opacity: 1;
        margin-top: 24px;
      }

      .slider-container {
        margin-top: 12px;
      }

      .slider {
        width: 100%;
        height: 6px;
        border-radius: 3px;
        background: #e0e0e0;
        outline: none;
        -webkit-appearance: none;
      }

      .slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #2c2c2c;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .slider::-webkit-slider-thumb:hover {
        transform: scale(1.1);
      }

      .slider::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #2c2c2c;
        cursor: pointer;
        border: none;
        transition: all 0.2s ease;
      }

      .slider::-moz-range-thumb:hover {
        transform: scale(1.1);
      }

      .slider-value {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: #666;
        margin-top: 8px;
      }

      .bg-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0);
        transition: background 0.3s ease;
        pointer-events: none;
        z-index: 1;
      }

      /* Css xử lý input có sẵn */
      .tp-setting-box {
        background: #ffffff;
        padding: 0;
      }

      .tp-setting-section {
        padding: 20px 0;
      }



      .tp-form-row {
        display: flex;
        align-items: flex-start;
        margin-bottom: 16px;
        gap: 16px;
      }

      .tp-form-row:last-child {
        margin-bottom: 0;
      }

      .tp-row-label {
        flex-shrink: 0;
        width: 105px;
        font-size: 13px;
        color: #1d1d1f;
        padding-top: 8px;
        line-height: 1.4;
      }

      .tp-row-input {
        flex: 1;
        max-width: 400px;
      }

      .tp-minimal-select,
      .tp-minimal-input {
        width: 100%;
        padding: 7px 12px;
        font-size: 13px;
        border: 1px solid #d2d2d7;
        border-radius: 8px;
        background: #ffffff;
        color: #1d1d1f;
        outline: none;
        transition: all 0.15s ease;
        font-family: inherit;
      }

      .tp-minimal-select {
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 36px;
      }

      .tp-minimal-select:hover,
      .tp-minimal-input:hover {
        border-color: #b8b8bd;
      }

      .tp-minimal-select:focus,
      .tp-minimal-input:focus {
        border-color: #0071e3;
        box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
      }

      .tp-input-note {
        margin: 6px 0 0 0;
        font-size: 12px;
        color: #86868b;
        line-height: 1.4;
      }

      .tp-setting-divider {
        border: none;
        border-top: 1px solid #d2d2d7;
        margin: 0;
      }

      .tp-minimal-select::-ms-expand {
        display: none;
      }

/*****************************/
.main__preview > iframe {
  width: 100%;
  height: 100vh;
}
/****************Hau*******************/
.editable-area-setting-box{
    border: 0px; 
    background-color: transparent;
}
.editor-container {
  display: flex;
  height: 100vh;
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.section-wrapper {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  background: white;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 60px 40px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.section:hover {
  border-color: #005bd3;
  box-shadow: 0 0 0 3px rgba(0, 91, 211, 0.1);
}

.section.active {
  border-color: #005bd3;
  box-shadow: 0 0 0 3px rgba(0, 91, 211, 0.2);
}

.section-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f1f2f3;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: #6d7175;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s;
}

.section:hover .section-label,
.section.active .section-label {
  opacity: 1;
}

/* Image with text section */
.image-text-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.image-placeholder {
  aspect-ratio: 4/3;
  background: #f1f2f3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #c9cccf;
}

.image-icon {
  width: 120px;
  height: 120px;
  color: #babfc3;
}

.text-content {
  padding: 20px 0;
}

.text-content h2 {
  font-size: 36px;
  color: #202223;
  margin-bottom: 20px;
  line-height: 1.2;
}

.text-content p {
  font-size: 16px;
  color: #6d7175;
  line-height: 1.6;
  margin-bottom: 24px;
}

.text-content button {
  background: #202223;
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* Image slide section */
.slide-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.slide-content h2 {
  font-size: 48px;
  color: #202223;
  margin-bottom: 16px;
  line-height: 1.2;
}

.slide-content p {
  font-size: 16px;
  color: #6d7175;
  line-height: 1.6;
  margin-bottom: 24px;
}

.slide-content button {
  background: #202223;
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.slide-images {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  overflow: hidden;
}

.slide-image {
  flex: 0 0 120px;
  height: 120px;
  background: #f1f2f3;
  border-radius: 8px;
  border: 2px dashed #c9cccf;
}

/* Sidebar */
.sidebar {
  width: 380px;
  background: white;
  border-left: 1px solid #e1e3e5;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 10;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e1e3e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  position: sticky;
  top: 0;
  z-index: 1;
}

.header-actions {
  display: flex;
  gap: 4px;
}

.icon-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  border-radius: 4px;
  color: #5c5f62;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: #f6f6f7;
}

/* Dropdown Menu */


.dropdown-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-divider {
  height: 1px;
  background: #e1e3e5;
  margin: 4px 0;
}

.sidebar-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.setting-group {
  margin-bottom: 20px;
}
.setting-group .input-group > .input-group-text:nth-child(1) {
  font-size: 14px;
  width: 60px;
}
.setting-group .input-group > .input-group-text:nth-child(3) {
  font-size: 14px;
  width: 40px;
}
.setting-label {
  font-size: 13px;
  font-weight: 500;
  color: #202223;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.setting-label > .btn-group {
  margin: 0 !important;
}
.setting-label > .btn-group > :nth-child(4) {
  margin: 0 10px;
}
.setting-label > .btn-group > label {
  padding: 8px;
  border: 1px solid #c9cccf;
  background: white;
  border-radius: 6px !important;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  color: #121212;
}
.setting-label > .btn-group .btn-check:checked + .bt {
  background: #121212;
}
.collapse-icon {
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.collapse-icon:hover {
  background: #f6f6f7;
}

.image-upload {
  border: 2px dashed #babfc3;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background: #fafbfb;
}
.image-upload #list {
  padding: 0;
}
.image-upload #list img {
  max-width: 120px;
}
.upload-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.explore-link {
  font-size: 12px;
  color: #005bd3;
  text-decoration: none;
}

.explore-link:hover {
  text-decoration: underline;
}

.text-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #c9cccf;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
}

.text-input:focus {
  outline: none;
  border-color: #005bd3;
  box-shadow: 0 0 0 1px #005bd3;
}

.select-wrapper {
  position: relative;
}

select {
  width: 100%;
  padding: 8px 32px 8px 12px;
  border: 1px solid #c9cccf;
  border-radius: 6px;
  font-size: 13px;
  background: white;
  cursor: pointer;
  appearance: none;
  color: #202223;
}

select:focus {
  outline: none;
  border-color: #005bd3;
  box-shadow: 0 0 0 1px #005bd3;
}

.select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  pointer-events: none;
  color: #5c5f62;
}

.size-options {
  display: flex;
  gap: 8px;
}

.size-btn {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #c9cccf;
  background: white;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: normal;
  display: flex;
  justify-content: center;
  align-items: center;
}

.size-btn.active {
  background: #202223;
  color: white;
  border-color: #202223;
}

.size-btn:hover:not(.active) {
  background: #f6f6f7;
}

.help-text {
  font-size: 12px;
  color: #6d7175;
  margin-top: 6px;
  line-height: 1.4;
}

.position-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.position-btn {
  padding: 8px;
  border: 1px solid #c9cccf;
  background: white;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.position-btn.active {
  background: #202223;
  color: white;
  border-color: #202223;
}

.position-btn:hover:not(.active) {
  background: #f6f6f7;
}

.layout-options {
  display: flex;
  gap: 8px;
}

.layout-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #c9cccf;
  background: white;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.layout-btn.active {
  background: #202223;
  color: white;
  border-color: #202223;
}

.layout-btn:hover:not(.active) {
  background: #f6f6f7;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #202223;
  margin: 32px 0 16px 0;
}

/* Toggle Switch */
.toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #c9cccf;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-switch.active {
  background: #008060;
}

.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-switch.active .toggle-slider {
  transform: translateX(20px);
}

/* Slider */
.slider-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #e1e3e5;
  border-radius: 2px;
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #202223;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #202223;
  cursor: pointer;
  border: none;
}

.slider-value {
  display: flex;
  align-items: center;
  gap: 4px;
}

.slider-value input {
  width: 50px;
  padding: 6px 8px;
  border: 1px solid #c9cccf;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}

.remove-section {
  border-top: 1px solid #e1e3e5;
  padding: 16px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bf0711;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border-bottom: none;
  border-left: none;
  border-right: none;
  width: 100%;
  text-align: left;
  margin-top: 20px;
}

.remove-section:hover {
  background: #fff5f5;
}
.save-btn {
  padding: 8px 12px;
  background: #202223;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

/*****setting box class****/
.form-input {
            width: 100%;
            padding: 10px;
            border: 1px solid #e0e0e0;
            font-size: 14px;
            transition: border-color 0.2s;
        }

        .form-input:focus {
            outline: none;
           /* border-color: #000;*/
        }

        .divider {
            height: 1px;
            background: #e0e0e0;
            margin: 24px 0;
        }

        .section-title {
            font-size: 12px;
            font-weight: 600;
            color: #000;
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .section-description {
            font-size: 13px;
            color: #666;
            margin-bottom: 16px;
            line-height: 1.5;
        }

        .wrapper-container {
            border: 1px solid #e0e0e0;
            background: #fafafa;
        }

        .wrapper-level {
            padding: 16px;
            background: #fff;
            border-bottom: 1px solid #e0e0e0;
            display: none;
        }

        .wrapper-level.active {
            display: block;
        }

        .wrapper-level:last-child {
            border-bottom: none;
        }

        .wrapper-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .wrapper-title {
            font-size: 13px;
            font-weight: 500;
            color: #000;
        }

        .wrapper-subtitle {
            font-size: 11px;
            color: #999;
            margin-top: 2px;
        }

        .btn-remove-box {
            background: none;
            border: 1px solid #e0e0e0;
            color: #666;
            padding: 4px 8px;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-remove-box:hover {
            border-color: #000;
            color: #000;
        }

        .btn-add-next {
            background: none;
            border: 1px solid #e0e0e0;
            color: #666;
            padding: 8px 12px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            margin-top: 10px;
            width: 100%;
        }

        .btn-add-next:hover {
            border-color: #000;
            color: #000;
            background: #fafafa;
        }

        .form-select {
            width: 100%;
            padding: 10px;
            border: 1px solid #e0e0e0;
            font-size: 14px;
            cursor: pointer;
            transition: border-color 0.2s;
        }

        .form-select:focus {
            outline: none;
            border-color: #000;
        }

        .helper-text {
            font-size: 12px;
            color: #999;
            margin-top: 6px;
        }

.text_under{
  text-decoration: underline;
} 
/*********Demo*****************/

/* ========== VÙNG NỘI DUNG ========== */
.editable-area-short-content {
  position: relative;

  overflow: hidden;
}

/* Hiệu ứng hover vùng nội dung */

/*
.editable-area-short-content:hover {

  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
 
}*/

/* Hiệu ứng hover vùng nội dung */
.editable-area-short-content:active {

}

/* Làm mờ nhẹ vùng khi hover */
.editable-area-short-content:hover .content-view {
}

/* ========== VÙNG SLIDE ========== */
.editable-area-slide {
  position: relative;

  overflow: hidden;
}

/* Hiệu ứng hover vùng nội dung */
.editable-area-slide:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.9);
}
/* Hiệu ứng hover vùng nội dung */
.editable-area-slide:active {
}

.customSidebar-newsSlide {
  display: none;
}

/* ========== NÚT SỬA ========== */
.btn-edit {
  position: absolute;
  top: 12px;
  right: -60px;
  display: none;
  transition: all 0.4s ease;
  z-index: 10;
  border-radius: 20px;
  padding: 5px 12px;
}

/* Khi hover box thì nút hiện trượt vào */
.box_admin {
   /* width: 100%;*/

    border: 1px solid transparent;
    position: relative;
    min-height: 30px;
    padding: 5px 10px;
}
.box_admin:hover {
  border-color: #005bd3;
  box-shadow: 0 0 0 3px rgba(0, 91, 211, 0.1);
}
.box_admin.active {
  border-color: #005bd3;
  box-shadow: 0 0 0 3px rgba(0, 91, 211, 0.1);
}
.box:hover .btn-edit {
  right: 12px;
  display: inline-block;
}

.tp_setting_md_menu{
    display: none;
    position: absolute !important; 
    right: 20px; 
    top: 10px;
}
.box_admin:hover .tp_setting_md_menu { 
  display: inline-block;
  z-index: 10;
}

/*sidebar-news-accordion */
.sidebar-news-accordion{
  position: fixed;
  top: 0;
  right: -390px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 100;
  padding: 0px;
  overflow-y: auto;
  display: block;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.sidebar-news-accordion.active {
  right: 0;
  display: block;
}


/*setting form gallery */
.customSidebar-gallery {
  position: fixed;
  top: 0;
  right: -390px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 100;
  padding: 0px;
  overflow-y: auto;
  display: block;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.customSidebar-gallery.active {
  right: 0;
  display: block;
}

/*setting form contact */
.customSidebar-contact {
  position: fixed;
  top: 0;
  right: -390px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 100;
  padding: 0px;
  overflow-y: auto;
  display: block;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.customSidebar-contact.active {
  right: 0;
  display: block;
}

/*setting product  detail*/
.customSidebar-product-detail {
  position: fixed;
  top: 0;
  right: -390px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 100;
  padding: 0px;
  overflow-y: auto;
  display: block;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.customSidebar-product-detail.active {
  right: 0;
  display: block;
}


/* ========== SIDEBAR sửa module HTML ========== */
.customSidebar-html {
  position: fixed;
  top: 0;
  right: -820px;
  width: 680px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 9999;
  padding: 0px;
  overflow-y: auto;
  display: block;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.customSidebar-html.active {
  right: 0;
  display: block;
}


/* ========== SIDEBAR setting customSidebar-setting-box ========== */
.customSidebar-setting-box {
  position: fixed;
  top: 0;
  right: -500px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 9999;
  padding: 0px;
  overflow-y: auto;
  display: block;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.customSidebar-setting-box.active {
  right: 0;
  display: block;
}

/* ========== SIDEBAR Sắp xếp module ========== */
.customSidebar-OrderModules {
  position: fixed;
  top: 0;
  right: -520px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 9999;
  padding: 0px;
  overflow-y: auto;
  display: block;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.customSidebar-OrderModules.active {
  right: 0;
  display: block;
}

/* ========== SIDEBAR RIÊNG ========== */
.customSidebar-slide {
  position: fixed;
  top: 0;
  right: -520px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 9999;
  padding: 0px;
  overflow-y: auto;
  display: block;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.customSidebar-slide.active {
  right: 0;
  display: block;
}


/* custom Sidebar-social */
.custom-sidebar-social {
  position: fixed;
  top: 0;
  right: -20px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 100;
  padding: 0px;
  overflow-y: auto;
  display: none;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.custom-sidebar-social.active {
  right: 0;
  display: block;
}


/* custom Sidebar-video */
.custom-sidebar-maps {
  position: fixed;
  top: 0;
  right: -520px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 100;
  padding: 0px;
  overflow-y: auto;
  display: block;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.custom-sidebar-maps.active {
  right: 0;
  display: block;
}




/* custom Sidebar-video */
.custom-sidebar-video {
  position: fixed;
  top: 0;
  right: -520px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 100;
  padding: 0px;
  overflow-y: auto;
  display: block;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.custom-sidebar-video.active {
  right: 0;
  display: block;
}



/* customSidebar-image */
.customSidebar-image {
  position: fixed;
  top: 0;
  right: -520px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 100;
  padding: 0px;
  overflow-y: auto;
  display: block;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.customSidebar-image.active {
  right: 0;
  display: block;
}


/* customSidebar-link */
.customSidebar-link {
  position: fixed;
  top: 0;
  right: -520px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 100;
  padding: 0px;
  overflow-y: auto;
  display: block;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.customSidebar-link.active {
  right: 0;
  display: block;
}


/* End customSidebar-link */

/* news_op_setting */
.customSidebar-newsOption {
  position: fixed;
  top: 0;
  right: -520px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 100;
  padding: 0px;
  overflow-y: auto;
  display: block;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.customSidebar-newsOption.active {
  right: 0;
  display: block;
}

/* End news_op_setting*/


/* news_op_setting */
.customSidebar-news-detail {
  position: fixed;
  top: 0;
  right: -520px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 100;
  padding: 0px;
  overflow-y: auto;
  display: block;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.customSidebar-news-detail.active {
  right: 0;
  display: block;
}


/* product_op_setting */
.customSidebar-productOption {
  position: fixed;
  top: 0;
  right: -520px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 100;
  padding: 0px;
  overflow-y: auto;
  display: block;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.customSidebar-productOption.active {
  right: 0;
  display: block;
}

/* End news_op_setting*/

/* customSidebar-newsSlide*/
.customSidebar-newsSlide {
  position: fixed;
  top: 0;
  right: -520px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 100;
  padding: 0px;
  overflow-y: auto;
  display: block;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.customSidebar-newsSlide.active {
  right: 0;
  display: block;
}

/* End news_op_setting*/

.customSidebar {
 position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 100;
  overflow-y: auto;   
}

.customSidebar.active {
  right: 0;
  display: block;
  transform: translateX(0);
}
/* Overlay nền mờ */
#sidebarOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: rgba(0,0,0,0.45);*/
  display: none;
  z-index: 100;
  /*  backdrop-filter: blur(2px);*/
}
/* Overlay nền mờ */
#sidebarOverlay_no_setting {
  position: fixed;
  top: 0;
  left: 0;
  right: 380px;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 100;
  backdrop-filter: blur(2px);
}
#sidebarOverlay_html {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 100;
  backdrop-filter: blur(2px);
}
#sidebarOverlay_po_setting {
  position: fixed;
  top: 0;
  left: 0;
  right: 380px;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 100;
  backdrop-filter: blur(2px);
}

#sidebarOverlay_md {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 100;
  backdrop-filter: blur(2px);
}
/*sidebarOverlay_news slid _setting */
#sidebarOverlay_ns_setting {
  position: fixed;
  top: 0;
  left: 0;
  right: 380px;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 100;
  backdrop-filter: blur(2px);
}
/*End sidebarOverlay_news slid _setting */
.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e1e3e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  position: sticky;
  top: 0;
  z-index: 5;
}

.sidebar-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: #202223;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 4px;
}
.header-actions > .dropdown > button {
  padding: 0;

  background: transparent;

  border: none;
}
/* Nút đóng sidebar */
.close-btn {
  float: right;
  border: none;
  background: none;
  font-size: 26px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}
.close-btn:hover {
  color: #000;
}
.image_slide_content {
  max-width: 100%;
}

/*setting box news*/
#left-area .col-box {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

#left-area .col-box.show {
  opacity: 1;
  transform: translateY(0);
}

#left-area .col-box:hover {
  background: #e7f3ff;
  transform: scale(1.03);
}

.btn.active {
  background-color: #0d6efd !important;
  color: #fff !important;
}
.privew-icon {
  padding-right: 10px;
}
/*icon */
.image-icon {
  max-width: 100%;
}
/*icon */
.center-box {
  position: fixed;
  top: 50%;
  right: 400px;
  transform: translateY(-50%);
  background: #fff;
  color: black;
  padding: 30px 60px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: slideIn 0.8s ease forwards;
  cursor: pointer;
  width: 70%;
  height: 800px;
  overflow: scroll;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(100px, -50%);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

.center-box:hover {
  transform: translateY(-50%) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

/*----------------------------- */
/* giả lập */

.center-box2 {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-title {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  color: #000;
}

.devices-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: center;
}

.device-wrapper {
  flex: 1;
  max-width: 500px;
}

.device-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-align: center;
}

/* Desktop Frame */
.desktop-frame {
  background: #2c2c2c;
  border-radius: 8px;
  padding: 16px 12px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
}

.desktop-frame::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 12px;
  width: 8px;
  height: 8px;
  background: #ff5f57;
  border-radius: 50%;
  box-shadow: 14px 0 0 #ffbd2e, 28px 0 0 #28ca42;
}

.desktop-screen {
  background: #fff;
  border-radius: 3px;
  padding: 12px;
  min-height: 280px;
  overflow: hidden;
}

/* Tablet Frame */
.tablet-frame {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
}

.tablet-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

.tablet-frame::after {
  content: "";
  position: absolute;
  bottom: 10px;

  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: #2a2a2a;
  border: 2px solid #333;
  border-radius: 50%;
}

.tablet-screen {
  background: #fff;
  border-radius: 3px;
  padding: 12px;
  min-height: 280px;
  overflow: hidden;
}

/* Mobile Frame */
.mobile-frame {
  background: #000;
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  max-width: 200px;
  margin: 0 auto;
}

.mobile-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #000;
  border-radius: 0 0 12px 12px;
  z-index: 10;
}

.mobile-notch::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

.mobile-screen {
  background: #fff;
  border-radius: 18px;
  padding: 24px 10px 10px;
  min-height: 400px;
  overflow: hidden;
}

/* Card Styles */
.khuvuc-chiacot {
  background: transparent;
  padding: 0;
  border: none !important;
}

.card-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s ease;
  height: 100%;
  cursor: pointer;
}

.card-item:hover {
  border-color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.image-container {
  position: relative;
  width: 100%;
  padding-top: 60%;
  background: #f8f8f8;
  overflow: hidden;
  border-bottom: 1px solid #e5e5e5;
}

.image-icon {
  /*      position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 50%;
  color: #d0d0d0;*/
}

.card-content {
  padding: 10px;
}

.card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 4px;
  line-height: 1.3;
}

.card-description {
  font-size: 0.65rem;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

/* Mobile specific - horizontal layout */
.mobile-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.mobile-card .image-container {
  padding-top: 50%;
}

/* Responsive */
@media (max-width: 1200px) {
  .devices-container {
    flex-direction: column;
    align-items: center;
  }

  .device-wrapper {
    max-width: 600px;
    width: 100%;
  }
  .device-desktop_mo {
    width: 1000px !important;
  }
  .mobile-frame {
    max-width: 300px;
  }

  .mobile-screen {
    min-height: 300px;
  }
}
.devices-container {
  flex-wrap: wrap;
}
.device-desktop_mo {
  max-width: 100%;
  width: 100%;
}
.device-desktop_mo .desktop-frame {
  max-width: 850px;
  margin: auto;
}
.devices-container > .device-wrapper:nth-child(2),
.devices-container > .device-wrapper:nth-child(3) {
  width: 50%;
}
.iframe_order {
  display: block;
  border: none;
  height: 100vh;
  width: 100%;
}
.btn-check:checked + .size-btn {
  background: #435ebe;
  color: white;
  border-color: #435ebe;
}
.form-check-input:checked {
  background-color: #435ebe;
  border-color: #435ebe;
}
.form-switch i {
  display: none;
}

#submitBtnNewsOption {
  padding: 8px 12px;
  background: #435ebe;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
#submitBtnNewsOption span {
  color: #fff !important;
}

.tp_s_btn_submit {
  padding: 8px 12px;
  background: #435ebe;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.tp_s_btn_submit span {
  color: #fff !important;
}


.header-actions > .dropdown > button {
  padding: 0;
  background: transparent;
  border: none;
}
.header-actions > .dropdown > button.dropdown-toggle::after {
  display: none;
}

/* menu chế độ xem đầu trang */
.tp__device-switch {
        display: flex;
        gap: 1px;
        background: white;
        padding: 2px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        /*background-color: rgba(241, 241, 241, 1);*/
        color: #897f7f;
      }

      .tp__switch-item {
        position: relative;
        cursor: pointer;
      }

      .tp__switch-icon {
        width: 35px;
        height: 35px;
        padding: 10px;
        display: flex;
        border-radius: 6px;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
      }

      .tp__switch-icon:hover {
        background: #fff;
      }

      .tp__switch-icon.active {
        background: #fff;
      }

      .tp__switch-icon svg {
        width: 100%;
        height: 100%;
        fill: #435ebe;
        transition: fill 0.3s ease;
      }

      .tp__switch-icon:hover svg {
        fill: #435ebe;
      }

      .tp__switch-icon.active svg {
        fill: white;
      }

      .tp_tooltip {
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        background: #435ebe;
        color: white;
        padding: 6px 10px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        pointer-events: none;
        z-index: 1000;
      }

      .tp_tooltip::after {
        content: "";
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 4px solid transparent;
        border-bottom-color: #212529;
      }

      .tp__switch-item:hover .tp_tooltip {
        opacity: 1;
        visibility: visible;
        top: calc(100% + 6px);
      }

      .top-admin {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 0.0625rem solid rgba(235, 235, 235, 1);
        padding: 5px;
        background: white;
          
       position:sticky;
       top: 0;
       left: 0;
       width: 100%;
       /*  height: 60px;*/
        z-index: 99;
      }
      .tp__sort-module {
        width: 256px;
      }
      .tp__manager-module {
        padding: 8px 16px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.3s ease;
        font-weight: 500;
      }

      .btn-light {
        background: #ffffff;
        color: #212529;
        border: 1px solid #dee2e6;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        font-size: 12px;
      }

      .btn-light:hover {
        background: #f8f9fa;
        border-color: #adb5bd;
      }

      .tp__manager-module {
        background: #435ebe;
        color: white;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
      }

      .tp__manager-module:hover {
        background: #435ebe;
      }

      .module {
        display: flex;
        align-items: center;
        gap: 10px;
      }

  

      .device-frame {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transition: all 0.5s ease;
        position: relative;
        margin: auto;
      }

      /* Desktop View */
      .device-frame.desktop {
        width: 100%;
        min-height: 600px;
      }

      .device-frame.tablet {
        width: 768px;
        max-width: 90%;
        min-height: 1024px;
      }

      /* Mobile View */
      .device-frame.mobile {
        width: 375px;
        max-width: 90%;
        min-height: 667px;
      }

      .device-content {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 30px;
        height: 100%;
        text-align: center;
      }

      .device-info {
        background: #e7f3ff;
        border: 2px solid #007bff;
        border-radius: 8px;
        padding: 15px;
        margin-top: 20px;
        font-size: 14px;
      }
/*------------------------------------*/

/* class thu nhỏ cho toast */
.toast{
    background-color: #435ebe;
    color: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(0,128,255,.35);
}

.toast-sm {
  font-size: 0.78rem;       /* chữ nhỏ hơn */
  max-width: 190px;         /* thu nhỏ chiều ngang */
  border-radius: 8px;       /* bo góc nhỏ */
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  padding: 0;               /* padding để .toast-body điều khiển */
  width:fit-content;
}

/* điều chỉnh thân toast */
.toast-sm .toast-body {
  padding: 0.45rem 0.7rem;  /* nhỏ gọn */
  line-height: 1.1;
}

/* thu nhỏ nút đóng */
.toast-sm .btn-close {
  transform: scale(0.68);
  margin-top: 0.15rem; /* căn dọc */
}
/*********Slide********/
.slide_disable img{
    /*filter: grayscale(100%);*/
    display: none !important;
}
/**********Lớp phủ module ***********/
.box_child {
  position: absolute;
  top: 0;
  left: 0px;
  right: 0;
  bottom: 0;
  width: 98%;
  cursor: pointer;
  z-index: 3;
  transition: all 0.3s ease;
}
.customSidebar.active ~ * .box_child,
.customSidebar.active .box_child {
  position: static;
  background-color: transparent;
  cursor: default;
  pointer-events: none;
}
body.sidebar-active .box_child {
  position: static;
  background-color: transparent;
  cursor: default;
  pointer-events: none;
}
.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

/*Video*/
    .app-container {
        display: flex;
        height: 100vh;
      }



      .sidebar-content::-webkit-scrollbar {
        width: 6px;
      }

      .sidebar-content::-webkit-scrollbar-track {
        background: #fafafa;
      }

      .sidebar-content::-webkit-scrollbar-thumb {
        background: #bbb;
        border-radius: 3px;
      }

      .sidebar-content::-webkit-scrollbar-thumb:hover {
        background: #888;
      }

      .control-group {
        margin-bottom: 20px;
      }

      .control-label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
      }

      .control-input {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
        transition: border-color 0.2s;
        background: white;
      }

      .control-input:focus {
        outline: none;
        border-color: #333;
      }

      .control-hint {
        font-size: 11px;
        color: #666;
        margin-top: 6px;
        line-height: 1.4;
      }

      .dimension-inputs {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
      }

      .dimension-group {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .dimension-label {
        font-size: 12px;
        font-weight: 500;
        color: #666;
        min-width: 45px;
      }

      .dimension-input {
        flex: 1;
        padding: 8px 10px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 13px;
      }

      .dimension-input:focus {
        outline: none;
        border-color: #333;
      }

      .dimension-unit {
        font-size: 12px;
        color: #666;
      }

      .select-control {
        position: relative;
      }

      .select-control select {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
        background: white;
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 36px;
      }

      .select-control select:focus {
        outline: none;
        border-color: #333;
      }

      .button-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
      }

      .btn-option {
        padding: 10px 8px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: white;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        text-align: center;
      }

      .btn-option:hover {
        background: #e8e8e8;
        border-color: #666;
      }

      .btn-option.active {
        background: #000;
        color: white;
        border-color: #000;
      }

      .checkbox-option {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s;
        background: white;
        margin-bottom: 8px;
      }

      .checkbox-option:hover {
        background: #f0f0f0;
        border-color: #666;
      }

      .checkbox-option input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
        accent-color: #000;
      }

      .checkbox-option label {
        flex: 1;
        font-size: 13px;
        color: #333;
        cursor: pointer;
      }

      .action-buttons {
        padding: 16px 20px;
        border-top: 1px solid #e0e0e0;
        display: flex;
        gap: 10px;
        flex-shrink: 0;
        background: white;
      }

      .btn-primary {
        flex: 1;
        padding: 12px;
        background: #435ebe;
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
      }

      .btn-primary:hover {
        background: #435ebe;
      }

      .btn-primary:active {
        transform: scale(0.98);
      }

      .btn-secondary {
        padding: 12px 20px;
        background: white;
        color: #666;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
      }

      .btn-secondary:hover {
        background: #e8e8e8;
        border-color: #666;
      }

      .main-video {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;     
      }

      .video-wrapper {
        width: 100%;
       /* max-width: 1200px;*/
        background: #000;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
      }

      .video-container {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%;
      }

      .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
      }

      .placeholder {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        color: #666;
        text-align: center;
      }

      .placeholder-img {
        width: 300px;
      }

      .placeholder-text {
        font-size: 15px;
        font-weight: 500;
        color: #333;
      }

      .status-message {
        padding: 10px 12px;
        border-radius: 6px;
        font-size: 12px;
        margin-top: 16px;
        display: none;
        background: #000;
        color: #f0f0f0;
        transition: all 0.3s ease;
        position: fixed;
        left: 50%;
        bottom: 20px;
        transform: translateX(-50%);
      }

      .status-message.active {
        display: block;
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
      }

      @media (max-width: 1024px) {
        .app-container {
          flex-direction: column;
        }

        .sidebar {
          width: 100%;
          max-height: 60vh;
        }

      }
/*Setting box*/     

      .demo-box {
        border-radius: 12px;
        position: relative;
        overflow: hidden;
        background-size: cover;
        background-position: center;
      }

      .demo-content {
        position: relative;
        z-index: 2;
        color: white;
        padding: 40px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }

      .demo-content h1 {
        font-size: 48px;
        margin-bottom: 16px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
      }

      .demo-content p {
        font-size: 18px;
        opacity: 0.9;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
      }
      
      .setting-section:last-child {
        margin-bottom: 0;
        padding-bottom: 10px;
      }

      .setting-label {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        margin-bottom: 12px;
        display: block;
      }

      .button-group {
        display: flex;
        gap: 8px;
      }

      .setting-button {
        flex: 1;
        padding: 12px 16px;
        border: 2px solid #e0e0e0;
        background: white;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        color: #666;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .setting-button:hover {
        border-color: #ccc;
        background: #fafafa;
      }

      .setting-button.active {
        background: #2c2c2c;
        color: white;
        border-color: #2c2c2c;
      }

      .note {
        font-size: 12px;
        color: #888;
        margin-top: 8px;
        line-height: 1.5;
      }

      .divider {
        height: 1px;
        background: #e0e0e0;
        margin: 24px 0;
      }

      .color-picker-section {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.3s ease;
      }

      .color-picker-section.show {
        max-height: 600px;
        opacity: 1;
        margin-top: 24px;
      }

      .color-area {
        position: relative;
        width: 100%;
        height: 180px;
        border-radius: 6px;
        margin-bottom: 12px;
        cursor: crosshair;
        background: linear-gradient(to bottom, transparent, black), linear-gradient(to right, white, transparent);
      }

      .color-pointer {
        position: absolute;
        width: 14px;
        height: 14px;
        border: 2px solid white;
        border-radius: 50%;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
        transform: translate(-50%, -50%);
        pointer-events: none;
      }

      .hue-slider-container {
        margin-bottom: 16px;
      }

      .hue-slider {
        width: 100%;
        height: 12px;
        border-radius: 6px;
        background: linear-gradient(to right, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
        -webkit-appearance: none;
        outline: none;
        cursor: pointer;
      }

      .hue-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: white;
        border: 2px solid #ccc;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        cursor: pointer;
      }

      .hue-slider::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: white;
        border: 2px solid #ccc;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        cursor: pointer;
      }

      .color-input-group {
        display: flex;
        gap: 8px;
        margin-bottom: 12px;
      }

      .color-display {
        width: 50px;
        height: 50px;
        border-radius: 6px;
        border: 2px solid #e0e0e0;
        flex-shrink: 0;
      }

      .hex-input-wrapper {
        flex: 1;
      }

      .hex-input {
        width: 100%;
        padding: 10px 12px;
        border: 2px solid #e0e0e0;
        border-radius: 6px;
        font-size: 14px;
        font-family: "Courier New", monospace;
        text-transform: uppercase;
        outline: none;
        transition: border-color 0.2s;
      }

      .hex-input:focus {
        border-color: #2c2c2c;
      }

      .hex-label {
        display: block;
        font-size: 11px;
        color: #888;
        margin-top: 4px;
        text-align: center;
      }

      .preset-colors {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 6px;
      }

      .preset-color {
        width: 100%;
        aspect-ratio: 1;
        border-radius: 4px;
        border: 2px solid transparent;
        cursor: pointer;
        transition: all 0.2s;
      }

      .preset-color:hover {
        transform: scale(1.1);
        border-color: #2c2c2c;
      }

      .image-upload-section {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
      }

      .image-upload-section.show {
        max-height: 800px;
        opacity: 1;
        margin-top: 10px;
      }

      .upload-area {
        border: 2px dashed #e0e0e0;
        border-radius: 8px;
        padding: 40px 20px;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s;
        position: relative;
      }

      .upload-area:hover {
        border-color: #2c2c2c;
        background: #fafafa;
      }

      .upload-area.has-image {
        padding: 0;
        border: none;
      }

      .upload-icon {
        font-size: 48px;
        color: #ccc;
        margin-bottom: 12px;
      }

      .upload-text {
        font-size: 14px;
        color: #666;
        margin-bottom: 8px;
      }

      .upload-hint {
        font-size: 12px;
        color: #999;
      }
      .upload-area:has(.image-preview.show) .upload-icon,
      .upload-area:has(.image-preview.show) .upload-text,
      .upload-area:has(.image-preview.show) .upload-hint {
        display: none;
      }
      .image-preview {
        display: none;
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;
      }

      .image-preview.show {
        display: block;
      }

      .remove-image-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 18px;
        display: none;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
      }

      .remove-image-btn.show {
        display: flex;
      }

      .remove-image-btn:hover {
        background: rgba(0, 0, 0, 0.8);
      }

      #fileInput {
        display: none;
      }

      .overlay-section {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
      }

      .overlay-section.show {
        max-height: 300px;
        opacity: 1;
        margin-top: 24px;
      }

      .slider-container {
        margin-top: 12px;
      }

      .slider {
        width: 100%;
        height: 6px;
        border-radius: 3px;
        background: #e0e0e0;
        outline: none;
        -webkit-appearance: none;
      }

      .slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #2c2c2c;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .slider::-webkit-slider-thumb:hover {
        transform: scale(1.1);
      }

      .slider::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #2c2c2c;
        cursor: pointer;
        border: none;
        transition: all 0.2s ease;
      }

      .slider::-moz-range-thumb:hover {
        transform: scale(1.1);
      }

      .slider-value {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: #666;
        margin-top: 8px;
      }

      .bg-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0);
        transition: background 0.3s ease;
        pointer-events: none;
        z-index: 1;
      }

      /* Css xá»­ lÃ½ input cÃ³ sáºµn */
      .tp-setting-box {
        background: #ffffff;
        padding: 0;
      }

      .tp-setting-section {
        padding: 20px 0;
      }

.tp-section {
    margin-top: 10px;
}
.tp-section-title {
    font-size: 13px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 5px;
}
.closeSidebar {
    background: transparent;
}

.sidebar-content .nav-pills {
  display: flex;
  width: 100%;
  border-bottom: 2px solid #e5e5e5;
  gap: 0;
  margin-bottom: 1rem;
}

.sidebar-content .nav-pills .nav-item {
  flex: 1; 
}

.sidebar-content .nav-pills .nav-link {
  width: 100%;
  text-align: center;
  background: transparent;
  color: #666666;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 8px 6px !important;
  font-weight: 500;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.sidebar-content .nav-pills .nav-link:hover {
  color: #000000;
  background: #f9f9f9;
}

.sidebar-content  .nav-pills .nav-link.active {
  color: #000000;
  border-bottom: 2px solid #000000;
  font-weight: 600;
  background: transparent;
}

.sidebar-content  .nav-pills .nav-link:focus {
  outline: none;
  box-shadow: none;
}


      .tp-section-title {
        font-size: 13px;
        font-weight: 500;
        color: #1d1d1f;
        margin-bottom: 12px;
      }

      .tp-form-row {
        display: flex;
        align-items: flex-start;
        margin-bottom: 16px;
        gap: 16px;
      }

      .tp-form-row:last-child {
        margin-bottom: 0;
      }

      .tp-row-label {
        flex-shrink: 0;
        width: 105px;
        font-size: 13px;
        color: #1d1d1f;
        padding-top: 8px;
        line-height: 1.4;
      }

      .tp-row-input {
        flex: 1;
        max-width: 400px;
      }

      .tp-minimal-select,
      .tp-minimal-input {
        width: 100%;
        padding: 7px 12px;
        font-size: 13px;
        border: 1px solid #d2d2d7;
        border-radius: 8px;
        background: #ffffff;
        color: #1d1d1f;
        outline: none;
        transition: all 0.15s ease;
        font-family: inherit;
      }

      .tp-minimal-select {
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 36px;
      }

      .tp-minimal-select:hover,
      .tp-minimal-input:hover {
        border-color: #b8b8bd;
      }

      .tp-minimal-select:focus,
      .tp-minimal-input:focus {
        border-color: #0071e3;
        box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
      }

      .tp-input-note {
        margin: 6px 0 0 0;
        font-size: 12px;
        color: #86868b;
        line-height: 1.4;
      }

      .tp-setting-divider {
        border: none;
        border-top: 1px solid #d2d2d7;
        margin: 0;
      }

      .tp-minimal-select::-ms-expand {
        display: none;
      }

      .tp-demo-content {
        position: relative;
        z-index: 2;
        color: white;
        text-align: center;
        padding: 20px;
      }

      .tp-demo-content h2 {
        font-size: 36px;
        margin-bottom: 10px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
      }

      .tp-demo-content p {
        font-size: 16px;
        opacity: 0.9;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
      }

      .tp-bg-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0);
        transition: background 0.3s ease;
        pointer-events: none;
        z-index: 1;
      }

      /* Upload Area */
      .tp-update-img {
        border: 2px dashed #e0e0e0;
        text-align: center;
        cursor: pointer;
        margin-bottom: 20px;
        transition: all 0.2s;
        position: relative;
      }
      .tp-upload-area {
        position: relative;
        border-radius: 8px;
        padding: 40px 20px;
      }

      .tp-update-img:hover {
        border-color: #2c2c2c;
        background: #fafafa;
      }

      .tp-upload-area.tp-has-image {
        padding: 0;
        border: none;
      }
      .tp-get-img {
        position: absolute;
        bottom: 10px;
        transform: translateX(-50%);
        left: 50%;
      }
      .tp-get-img .tp-img-system {
        color: #303030;
        text-decoration: none;
        font-size: 11px;
        white-space: nowrap;
      }
      .tp-get-img .tp-img-system:hover {
        text-decoration: underline;
      }
      .tp-upload-text {
        font-size: 14px;
        color: #666;
      }

      .tp-upload-hint {
        font-size: 12px;
        color: #999;
      }

      .tp-upload-area:has(.tp-image-preview.tp-show) .tp-upload-text,
      .tp-update-img:has(.tp-image-preview.tp-show) .tp-get-img,
      .tp-upload-area:has(.tp-image-preview.tp-show) .tp-upload-hint {
        display: none;
      }

      .tp-image-preview {
        display: none;
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
      }

      .tp-image-preview.tp-show {
        display: block;
      }

      .tp-remove-image-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 18px;
        display: none;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
      }

      .tp-remove-image-btn.tp-show {
        display: flex;
      }

      .tp-remove-image-btn:hover {
        background: rgba(0, 0, 0, 0.8);
      }

      .tp-file-input {
        display: none;
      }

      .tp-settings-group {
        margin-bottom: 25px;
        display: none;
      }

      .tp-settings-group.tp-show {
        display: block;
      }

      .tp-settings-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 16px;
        gap: 16px;
      }

      .tp-settings-label {
        flex-shrink: 0;
        width: 105px;
        font-size: 13px;
        color: #1d1d1f;
        padding-top: 8px;
        line-height: 1.4;
      }

      .tp-select {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #e0e0e0;
        background: white;
        border-radius: 6px;
        font-size: 14px;
        color: #333;
        cursor: pointer;
        transition: all 0.2s;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 36px;
      }

      .tp-select:hover {
        border-color: #2c2c2c;
      }

      .tp-select:focus {
        outline: none;
        border-color: #2c2c2c;
      }

      .tp-toggle-wrapper {
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .tp-toggle {
        position: relative;
        width: 48px;
        height: 28px;
        background: #e0e0e0;
        border-radius: 14px;
        cursor: pointer;
        transition: background 0.3s;
      }

      .tp-toggle.tp-active {
        background: #2c2c2c;
      }

      .tp-toggle::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 22px;
        height: 22px;
        background: white;
        border-radius: 50%;
        transition: left 0.3s;
      }

      .tp-toggle.tp-active::after {
        left: 23px;
      }

      .tp-toggle-label {
        font-size: 13px;
        color: #1d1d1f;
        flex: 1;
      }

      .tp-note {
        font-size: 12px;
        color: #888;
        margin-top: 8px;
        line-height: 1.5;
      }

      .tp-slider-container {
        margin-bottom: 20px;
      }

      .tp-slider-label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: #333;
        margin-bottom: 12px;
      }

      .tp-slider {
        width: 100%;
        height: 6px;
        border-radius: 3px;
        background: #e0e0e0;
        outline: none;
        -webkit-appearance: none;
      }

      .tp-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #2c2c2c;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .tp-slider::-webkit-slider-thumb:hover {
        transform: scale(1.1);
      }

      .tp-slider::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #2c2c2c;
        cursor: pointer;
        border: none;
        transition: all 0.2s ease;
      }

      .tp-slider-value {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: #666;
        margin-top: 8px;
      }
      .tp-row-input {
        flex: 1;
        max-width: 400px;
      }
/*Maps*/        


      .setting-description {
        font-size: 11px;
        color: #666;
        margin-top: 6px;
        line-height: 1.5;
      }

      .input-with-unit {
        display: flex;
        align-items: center;
        flex: 1;
        border: 1px solid #d0d0d0;
        border-radius: 4px;
        overflow: hidden;
        background: white;
        transition: border-color 0.2s;
      }

      .input-with-unit:focus-within {
        border-color: #000;
      }

      .input-with-unit input,
      .input-with-unit select {
        flex: 1;
        border: none;
        padding: 9px 12px;
        font-size: 13px;
        outline: none;
        background: transparent;
      }

      .input-with-unit .unit {
        padding: 9px 12px;
        background: #f8f8f8;
        border-left: 1px solid #e0e0e0;
        font-size: 12px;
        color: #666;
        min-width: 45px;
        text-align: center;
        font-weight: 500;
      }

      .input-full {
        width: 100%;
        padding: 9px 12px;
        border: 1px solid #d0d0d0;
        border-radius: 4px;
        font-size: 13px;
        margin-top: 8px;
        transition: border-color 0.2s;
      }

      .input-full:focus {
        outline: none;
        border-color: #000;
      }

      .button-group {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 10px;
      }

      .btn-toggle {
        padding: 9px 12px;
        border: 1px solid #d0d0d0;
        border-radius: 4px;
        background: white;
        cursor: pointer;
        font-size: 12px;
        transition: all 0.2s;
        text-align: center;
        font-weight: 500;
        color: #333;
      }

      .btn-toggle:hover {
        background: #f5f5f5;
        border-color: #999;
      }

      .btn-toggle.active {
        background: #000;
        color: white;
        border-color: #000;
      }


      .dimension-item label {
        font-size: 11px;
        color: #666;
        display: block;
        margin-bottom: 6px;
        font-weight: 500;
      }

      .select-custom {
        width: 100%;
        padding: 9px 12px;
        border: 1px solid #d0d0d0;
        border-radius: 4px;
        font-size: 13px;
        background: white;
        cursor: pointer;
        margin-top: 8px;
        transition: border-color 0.2s;
      }

      .select-custom:focus {
        outline: none;
        border-color: #000;
      }

      .preview-panel {
        background: #fafafa;
        padding: 30px;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        height: 100%;
      }

      .preview-header {
        margin-bottom: 20px;
        flex-shrink: 0;
      }

      .preview-header h2 {
        font-size: 1.1em;
        color: #000;
        font-weight: 600;
        margin-bottom: 6px;
      }

      .preview-header p {
        font-size: 12px;
        color: #666;
      }

      .map-wrapper {
        background: white;
        border-radius: 8px;
        padding: 24px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        margin-bottom: 20px;
        flex-shrink: 0;
      }

      .map-container {
        width: 100%;
        min-height: 450px;
        border-radius: 4px;
        overflow: hidden;
        background: #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .map-container iframe {
        border: none;
      }

      .placeholder-content {
        text-align: center;
        padding: 60px 20px;
        color: #999;
      }

      .placeholder-content svg {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
        opacity: 0.4;
        stroke: #ccc;
      }

      .placeholder-content p {
        font-size: 13px;
        color: #999;
      }

      .action-buttons {
        display: flex;
        gap: 10px;
        margin-top: 14px;
      }

      .tp-btn-primary {
        flex: 1;
        padding: 10px 20px;
        background: #000;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 600;
        transition: all 0.2s;
      }

      .tp-btn-primary:hover {
        background: #333;
      }

      .tp-btn-primary:disabled {
        background: #ccc;
        cursor: not-allowed;
      }

      .tp-btn-secondary {
        flex: 1;
        padding: 10px 20px;
        background: white;
        color: #333;
        border: 1px solid #d0d0d0;
        border-radius: 4px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 600;
        transition: all 0.2s;
      }

      .tp-btn-secondary:hover {
        background: #f5f5f5;
        border-color: #999;
      }

      .checkbox-item {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 12px;
        padding: 8px 0;
      }

      .checkbox-item input[type="checkbox"] {
        width: 17px;
        height: 17px;
        cursor: pointer;
        accent-color: #000;
      }

      .checkbox-item label {
        font-size: 13px;
        cursor: pointer;
        color: #333;
        flex: 1;
      }

      .status-message {
        padding: 10px 12px;
        border-radius: 6px;
        font-size: 12px;
        margin-top: 16px;
        display: none;
        background: #000;
        color: #f0f0f0;
        transition: all 0.3s ease;
        position: fixed;
        left: 50%;
        bottom: 20px;
        transform: translateX(-50%);
        z-index: 1000;
      }

      .status-message.active {
        display: block;
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
      }
/*Social Media*/        
.tp-contact-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
      }

      .tp-contact-card {
        border: 1px solid #dee2e6;
        border-radius: 4px;
        padding: 8px;
        background: white;
        cursor: pointer;
        transition: all 0.2s;
        position: relative;
      }

      .tp-contact-card:hover {
        border-color: #495057;
        transform: translateY(-1px);
      }

      .tp-contact-card.active {
        background: #212529;
        border-color: #212529;
        color: white;
      }

      .tp-contact-card.active .tp-card-icon {
        background: white;
        color: #212529;
      }
      .tp-contact-card.active .tp-card-icon svg {
        fill: #000;
      }
      .tp-contact-card.active .tp-card-label {
        color: white;
      }

      .tp-card-content {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .tp-card-icon {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #212529;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        flex-shrink: 0;
      }

      .tp-card-label {
        font-size: 12px;
        font-weight: 500;
        color: #212529;
      }

      .tp-contact-input {
        margin-top: 8px;
        display: none;
      }

      .tp-contact-input.show {
        display: block;
      }

      .tp-input {
        width: 100%;
        padding: 6px 8px;
        border: 1px solid #ced4da;
        border-radius: 3px;
        font-size: 12px;
        background: #f8f9fa;
      }

      .tp-input:focus {
        outline: none;
        border-color: #495057;
        background: white;
      }

      .tp-size-row {
        display: flex;
        gap: 10px;
        align-items: center;
      }

      .tp-size-input-group {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 6px;
        background: #f8f9fa;
        padding: 6px 8px;
        border-radius: 3px;
        border: 1px solid #dee2e6;
      }

      .tp-size-label {
        font-size: 12px;
        color: #495057;
        font-weight: 500;
      }

      .tp-size-input {
        width: 50px;
        padding: 4px 6px;
        border: 1px solid #ced4da;
        border-radius: 3px;
        font-size: 12px;
        text-align: center;
        background: white;
      }

      .tp-size-unit {
        font-size: 11px;
        color: #6c757d;
      }

      .tp-button-group {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
      }

      .tp-btn-option {
        padding: 8px;
        border: 1px solid #dee2e6;
        background: white;
        border-radius: 3px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.2s;
        font-weight: 500;
      }

      .tp-btn-option:hover {
        border-color: #495057;
      }

      .tp-btn-option.active {
        background: #212529;
        color: white;
        border-color: #212529;
      }

      .tp-style-options {
        display: flex;
        flex-direction: column;
        gap: 8px;
      }

      .tp-style-card {
        border: 2px solid #dee2e6;
        border-radius: 4px;
        padding: 12px;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .tp-style-card:hover {
        border-color: #495057;
      }

      .tp-style-card.active {
        border-color: #212529;
        background: #f8f9fa;
      }

      .tp-style-preview {
        width: 80px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
        border-radius: 3px;
      }

      .tp-style-preview-icons {
        display: flex;
        gap: 6px;
        flex-direction: column;
      }

      .tp-style-icon-only .tp-style-preview-icons {
        flex-direction: column;
      }

      .tp-style-icon-text .tp-style-preview-icons {
        flex-direction: column;
      }

      .tp-style-preview-icon {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #212529;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: bold;
      }

      .tp-style-icon-text .tp-style-preview-icon {
        width: auto;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 10px;
      }

      .tp-style-info {
        flex: 1;
      }

      .tp-style-label {
        font-size: 13px;
        font-weight: 600;
        color: #212529;
        margin-bottom: 2px;
      }

      .tp-style-desc {
        font-size: 11px;
        color: #6c757d;
      }

      .tp-order-section {
        max-height: 200px;
        overflow-y: auto;
        padding-right: 5px;
      }

      .tp-order-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px;
        background: #f8f9fa;
        border-radius: 3px;
        margin-bottom: 4px;
        border: 1px solid #dee2e6;
      }

      .tp-order-item.disabled {
        opacity: 0.4;
      }

      .tp-order-icon {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #212529;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        flex-shrink: 0;
      }

      .tp-order-name {
        flex: 1;
        font-size: 12px;
        font-weight: 500;
      }

      .tp-order-controls {
        display: flex;
        gap: 3px;
      }

      .tp-btn-move {
        width: 24px;
        height: 24px;
        border: 1px solid #ced4da;
        background: white;
        border-radius: 3px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        transition: all 0.2s;
      }

      .tp-btn-move:hover:not(:disabled) {
        background: #212529;
        color: white;
        border-color: #212529;
      }

      .tp-btn-move:disabled {
        opacity: 0.3;
        cursor: not-allowed;
      }

      .tp-save-section {
        padding: 12px 15px;
        background: white;
        border-top: 1px solid #dee2e6;
      }

      .tp-btn-save {
        width: 100%;
        padding: 10px;
        background: #212529;
        color: white;
        border: none;
        border-radius: 3px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
      }

      .tp-btn-save:hover {
        background: #000;
      }

      .tp-preview-container {
        background: white;
        border-radius: 4px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        padding: 15px;
        height: 100%;
        display: flex;
        flex-direction: column;
      }

      .tp-preview-title {
        font-size: 13px;
        font-weight: 600;
        color: #212529;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }

      .tp-preview-mockup {
        flex: 1;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 4px;
        border: 1px solid #dee2e6;
        position: relative;
        overflow: hidden;
      }

      .tp-preview-device {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0.03;
        font-size: 120px;
        color: #212529;
      }

      .tp-preview-sidebar {
        position: fixed;
        display: flex;
        gap: 12px;
        z-index: 500;
        transition: all 0.3s;
      }

      .tp-preview-sidebar.left {
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
      }

      .tp-preview-sidebar.right {
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
      }

      .tp-preview-sidebar.top {
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
      }

      .tp-preview-sidebar.bottom {
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
      }

      .tp-preview-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #212529;
        color: white;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.3s;
        border-radius: 50%;
      }

      .tp-preview-icon.icon-text {
        border-radius: 50px;
        padding: 0 16px;
        gap: 8px;
      }

      .tp-preview-icon:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
      }

      .tp-icon-label {
        font-size: 12px;
        font-weight: 500;
      }

      .tp-preview-info {
        margin-top: 10px;
        border-radius: 3px;
        font-size: 11px;
        color: #6c757d;
      }
.tooltip .tooltip-inner{
    background-color: #435ebe !important;
    color: #fff !important;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
}
