/* Extra style editan Andhi */
html {
    scroll-behavior: smooth;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.dot {
    transition: transform 0.5s;
}

/* SROLL  */
.scrol {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb, initial) var(--scrollbar-track, initial);
}

.scrol::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.scrol::-webkit-scrollbar-track {
  background-color: var(--scrollbar-track);
  border-radius: 8px;
}

.scrol::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 25px;
}

.scrol::-webkit-scrollbar-track:hover {
  background-color: var(--scrollbar-track-hover, var(--scrollbar-track));
}

.scrol::-webkit-scrollbar-track:active {
  background-color: var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)));
}

.scrol::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover, var(--scrollbar-thumb));
}

.scrol::-webkit-scrollbar-thumb:active {
  background-color: var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)));
}

.scrol::-webkit-scrollbar-corner {
  background-color: var(--scrollbar-corner, transparent);
}

/* CSS untuk modal */
.coupon-modal {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 3s ease,
        visibility 3s ease;
    /* Transisi selama 0.5 detik */
}

.coupon-modal.show {
    opacity: 1;
    visibility: visible;
}

.marker {
    background-color: #9333ea;
    /* Warna ungu Tailwind kelas 500 */
    color: #f9fafb;
    /* Warna teks putih muda */
    padding-left: 0.125rem;
    /* 0.5 * 4px = 2px */
    padding-right: 0.125rem;
    /* 0.5 * 4px = 2px */
    border-radius: 0.25rem;
    /* 4px */
}

.prose code::before,
.prose code::after {
    content: none;
}

:root {
    --tbw-cell-vertical-padding: 4px;
    --tbw-cell-horizontal-padding: 8px;
    --tbw-cell-line-height: 1.5em;
}

.trumbowyg-editor table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--tbw-cell-line-height);
}

.trumbowyg-editor table th,
.trumbowyg-editor table td {
    height: calc(var(--tbw-cell-vertical-padding) * 2 + var(--tbw-cell-line-height));
    min-width: calc(var(--tbw-cell-horizontal-padding) * 2);
    padding: var(--tbw-cell-vertical-padding) var(--tbw-cell-horizontal-padding);
    border: 1px solid #e7eaec;
    text-align: left;
    border: 1px solid #ddd;
}

.trumbowyg-editor {
    height: 250px;
}

.trumbowyg-editor {
    padding: 0.7rem !important;
}


.trumbowyg-dropdown-table {
    z-index: 50 !important;
}

.trumbowyg-editor:focus {
    border: none;
    outline: none;
}

.trumbowyg-info-word {
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 4px 8px;
    font-size: 11px; /* lebih kecil */
    color: rgba(0, 0, 0, 0.4); /* opacity lebih lembut */
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: flex-end;
}

.trumbowyg-info-word span {
    padding-left: 2px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.7); /* opacity lebih lembut */
}

.trumbowyg-editor {
    max-width: 100%;
}

/* 
Untuk Style Dalam Editor
*/

.trumbowyg-editor p,
.trumbowyg-editor table {
    margin-bottom: 10px;
}

.trumbowyg-editor ul {
    list-style-type: disc;
    padding-left: 20px;
}

.trumbowyg-editor ol {
    list-style-type: decimal;
    padding-left: 20px;
}

.trumbowyg-editor a {
    color: #3498db;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    pointer-events: auto;
}

.trumbowyg-editor thead {
    background-color: #f2f2f2;
}

/* Heading styles */
.trumbowyg-editor h1 {
    font-size: 2em;
    margin: 0.67em 0;
    font-weight: bold;
}

.trumbowyg-editor h2 {
    font-size: 1.75em;
    margin: 0.75em 0;
    font-weight: bold;
}

.trumbowyg-editor h3 {
    font-size: 1.5em;
    margin: 0.83em 0;
    font-weight: bold;
}

.trumbowyg-editor h4 {
    font-size: 1.25em;
    margin: 1em 0;
    font-weight: bold;
}

.trumbowyg-editor h5 {
    font-size: 1.1em;
    margin: 1em 0;
    font-weight: bold;
}

.trumbowyg-editor h6 {
    font-size: 1em;
    margin: 1em 0;
    font-weight: bold;
}

/* Blockquote */
.trumbowyg-editor blockquote {
    border-left: 4px solid #ccc;
    padding-left: 10px;
    margin: 1em 0;
    color: #555;
    font-style: italic;
}

/* Code block */
.trumbowyg-editor pre {
    background-color: #f8f8f8;
    padding: 10px;
    overflow-x: auto;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.trumbowyg-editor code {
    background-color: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

/* Images */
.trumbowyg-editor img {
    max-width: 100%;
    height: auto;
}

/* Tables */
.trumbowyg-editor table {
    border-collapse: collapse;
    width: 100%;
}

.trumbowyg-editor th,
.trumbowyg-editor td {
    border: 1px solid #ddd;
    padding: 8px;
}

.trumbowyg-editor th {
    background-color: #f9f9f9;
    font-weight: bold;
}



