/* ===================================== dropdown Css =================================================== */
.dropdown-wrapper {
  max-width: 320px;
  margin-bottom: 30px;
}
 
label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: #383838;
}
 
label span {
  color: red;
}
 
.dropdown {
  position: relative;
}
 
.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid #CDCDCD;
  border-radius: 8px;
  background: white;
  cursor: text;
}
.dropdown-item.highlighted {
  background-color: #f0f0f0;
}

 
.dropdown-input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  color: #333;
  border-radius: 10px;
}
 
.dropdown-input::placeholder {
  color: #999;
}
 
.dropdown-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  pointer-events: none;
}
 
.dropdown-list {
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-top: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 100;
  padding: 10px;
}
 
.dropdown-item {
  padding: 8px 14px !important;
  font-size: 14px !important;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid transparent !important;
}
 
.dropdown-item:hover {
  background: #f0f0f0 !important;
}
 
/* ===================================== toggle Css =================================================== */
 
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
 
.toggle-switch {
    position: relative;
    width: 244px;
    height: 40px;
    display: inline-flex;
    justify-content: space-around;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #F0F0F0;
}
 
.toggle-option {
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    min-width: 80px;
    text-align: center;
}
 
.toggle-option-allow{
    padding: 8px 12px 8px 20px;
}
.toggle-option-notallow{
    padding: 8px 12px 8px 20px;
}
 
.toggle-option.active {
    color: white;
}
 
.toggle-option.active:hover {
    background: transparent;
}
 
.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    align-items:center;
    background: #17AE7D;
    border-radius: 25px;
    transition: all 0.3s ease;
    z-index: 1;
}
 
.toggle-slider.not-allow {
    background: #E74C3C;
    transform: translateX(100%);
}
 
.required-asterisk {
    color: #E74C3C;
}
 
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}
 
/* ===================================== Image Box Css =================================================== */
 .upload-box {
    border: 1px solid #ddd;
    border-radius: 12px;
    width: 276px;
    height: 122px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.upload-box:hover {
    border-color: #17AE7D;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}
.upload-icon {
    font-size: 26px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.upload-text-main {
    color: #17AE7D;
    font-size: 0.9rem;
    font-weight: 500;
}
.upload-text-sub {
    color: #6c757d;
    font-size: 0.8rem;
}
.photo-preview {
  position: relative;
    border: 1px solid #ddd;
    border-radius: 16px;
    width: 120px;
    height: 120px;
    background-color: #fafafa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
 
 
.table-container {
  border: 1px solid #ddd;
  border-radius: 12px;
  margin-top: 20px;
}
 
/* .table > :not(caption) > * > * {
  border-bottom-width: 0 !important; 
} */
 
.table thead th {
  background-color: #FAFAFA;
  font-weight: 600;
  border-bottom: 1px solid #ddd !important;
}
 
.table td, .table th {
  vertical-align: middle;
  padding: 12px 15px;
}
 
.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 0, 0, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.edit-btn {
    position: absolute;
    top: 5px;
    right: 30px;
    background-color:#3498DB;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}
 
.remove-btn:hover {
    background-color: rgba(220, 0, 0, 1);
}

.image-edit-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
}
.image-edit-modal .modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
}
.image-edit-modal .close-edit-btn {
    position: absolute; top: 10px; right: 15px;
    font-size: 22px; cursor: pointer;
}
.editor-actions {
    margin-top: 15px;
    display: flex; justify-content: center; gap: 10px;
}
 
 
/* Popup Overlay */
.image-popup {
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
 
/* Image in popup */
.popup-image {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
}
 
/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}
 
/* Navigation Arrows */
.nav-btn {
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 12px;
    z-index: 10000;
}
 
.prev { left: 50px; }
.next { right: 20px; }
 
.popup-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
 
.popup-image {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
 
/* Thumbnail strip container */
.thumbnail-strip {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0;
    gap: 8px;
    margin-top: 20px;
    max-width: 90vw;
}
 
/* Thumbnail images */
.thumbnail-strip img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: opacity 0.3s, transform 0.3s;
}
 
.thumbnail-strip img.active {
    border: 2px solid #17AE7D;
    opacity: 1;
    transform: scale(1.05);
}
 
.thumbnail-strip img:hover {
    opacity: 1;
}
 
 
/* ========================================================= multi-select dropdown =============================================== */
 
.multi-select {
        position: relative;
        /* width: 552px; */
    }
    .multi-select-box {
        position: relative;
        border: 1px solid #ccc;
        border-radius: .25rem;
        padding: 3px 10px;
        background: white;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        gap: 6px;
        min-height: 38px;
        align-items: center;
    }
    .select-box{
      cursor: pointer;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        min-height: 38px;
        align-items: center;
        width: 100%;
    }
    .select-placeholder {
        color: #999;
        line-height: 26px;
    }
    .tag {
        background: #FFFFFF;
        border: 1px solid #CDCDCD;
        border-radius: 8px;
        padding: 4px 10px;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
    }
    .tag .remove {
        font-size: 14px;
        cursor: pointer;
        color: #666;
    }
    .dropdown-multi {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        border: 1px solid #ccc;
        background: white;
        border-radius: .25rem;
        display: none;
        z-index: 1000; /* Use a high z-index to ensure it appears on top */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        max-height: 200px;
        overflow-y: auto;
        padding: 8px;
    }
    .option_multi {
        padding: 6px 10px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        border-radius: .25rem;
        margin: 4px 0;
    }
    .option_multi:hover {
        background-color: #f1f1f1;
    }
    .option_multi.selected {
        border: 1px solid #dee2e6;
        background-color: #f1f1f1;
    }
    .apply-btn {
        background: #17AE7D;
        color: white;
        text-align: center;
        padding: 8px;
        cursor: pointer;
        border-radius: .25rem;
        margin-top: 8px;
        font-size: 14px;
    }
    .apply-btn:hover {
        background: #218838;
    }
    .arrow-icon {
        width: 16px;
        height: 16px;
    }
 
  .search-box {
    width: 100%;
    padding: 6px 8px;
    margin-bottom: 6px;
    border: 1px solid #ccc;
    border-radius: .25rem;
    font-size: 14px;
    outline: none;
}
.search-box:focus {
    border-color: #80bdff;
    box-shadow: 0 0 3px rgba(0,123,255,.25);
}
 
/* -------------------------------------toggle btn ------------------------------------------ */
.toggle {
    appearance: none;
    -webkit-appearance: none;
    width: 50px;
    height: 25px;
    background: #ccc;
    border-radius: 34px;
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
  }
  /* Circle knob */
  .toggle::before {
    content: "";
    position: absolute;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
  }
  /* Checked state */
  .toggle:checked {
    background: #17AE7D; /* Bootstrap success green */
  }
  .toggle:checked::before {
    transform: translateX(25px);
  }
 
/* -------------------------------------faq-card ------------------------------------------ */
 
.faq-card tbody tr { border: none; }
.faq-card tbody td { border: none !important; }
.faq-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}
.faq-card table th,
.faq-card table td {
    vertical-align: middle;
}
.faq-input {
    resize: none;
    border-radius: 10px;
    padding: 10px;
}
.faq-action-btn {
    display: flex;
    gap: 5px;
}
.faq-row {
    border-top: 1px solid #ddd;
    padding: 15px 0;
}
.action-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  padding: 6px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #4b5563; /* Gray background */
  color: #fff;
  cursor: pointer;
  margin-left: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.action-btn img{
    width: 20px;
    height: 20px;
}
.btn-yellow { background-color: #FFBE4C; }
.btn-yellow:hover { background-color: #FFA50A; }
.btn-gray { background-color: #505050; }
.btn-gray:hover { background-color: #383838; }
.btn-blue { background-color: #3498DB; }
.btn-blue:hover { background-color: #1E74AC; }
.btn-green { background-color: #17AE7D !important; }
.btn-green:hover { background-color: #128D66 !important; }
.btn-red { background-color: #E74C3C; }
.btn-red:hover { background-color: #C22918; }
.btn-festival-price { background-color: #FFF2DB; }
 
.register-button-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    background-color: #17AE7D;
    color: #ffffff !important;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
   
}
.register-button-form:hover {
    background-color: #047857;
}
.register-button-form:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.3);
}
.register-button-form:active {
    background-color: #065f46;
    transform: translateY(1px);
}

.booking-mode-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    background-color: #FFFFFF;
    color: #383838 !important;
    border: 1px solid #CDCDCD;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
   
}
.booking-mode-button:hover {
    background-color: #F0F0F0;
}
.booking-mode-button:active {
    border: 1px solid #17AE7D;
    color: #17AE7D;
    background-color: #FFFFFF;
}
.booking-mode-on{
  border: 1px solid #17AE7D;
  color: #17AE7D !important;
  background-color: #FFFFFF;
}

.export-mode-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    background-color: #FFFFFF;
    color: #383838 !important;
    border: 1px solid #CDCDCD;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    justify-content: center;
   
}
.export-mode-button:hover {
    background-color: #F0F0F0;
}
.export-mode-button:active {
    border: 1px solid #17AE7D;
    color: #17AE7D;
    background-color: #FFFFFF;
}

.save-button-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    background-color: #3498DB;
    color: #ffffff !important;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-button-form:hover {
    background-color: #1E74AC;
}

.save-button-form:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(93, 168, 238, 0.3);
}

.save-button-form:active {
    background-color: #1E74AC;
    transform: translateY(1px);
}
 
.clear-button{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  color: #383838 !important;
  border: none;
  border: 1px solid #CDCDCD;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 108px;
}
 
.clear-button:hover{
  color: #E74C3C !important;
}
 
.clear-button:hover .clear-icon {
  width: 24px;
  height: 24px;
   content: url('/admin/assets/icon/clear_hover.svg');
}
 
 
 
.fw-bold {
    font-weight: bold;
}
 
.fs-12 {
    font-size: 12px;
}
 
.text-muted {
    color: #6c757d;
}
 
.form-name{
    font-weight: 600 !important;
    font-size: 18px;
    line-height: 28px;
}
.form-name span{
    margin-bottom: 18px !important;
    color: #383838;
}
 
.form-group {
    max-width: 350px;
}
 
.required-asterisk {
    color: red;
    margin-left: 2px;
}



.multi-select-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.multi-select-dropdown {
  background-color: white;
  border: 1px solid #CDCDCD;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.selected-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-grow: 1;
}

.selected-options .tag {
  background: transparent;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.selected-options .tag span {
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
}

.placeholder-input {
  border: none;
  outline: none;
  flex-grow: 1;
  min-width: 150px;
  cursor: pointer;
  font-size: 14px;
}

.arrow {
  font-size: 14px;
  padding-left: 5px;
  transition: opacity 0.3s ease;
}

.arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

.dropdown-multi-select {
  background-color: white;
  border: 1px solid #ccc;
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  margin-top: 5px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 10px;
}

.multi-select-option {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
  margin-bottom: 8px;
}

.multi-select-option:hover {
  background-color: #f0f0f0;
  border-radius: 10px;
  border-color: #CDCDCD !important;
}

.multi-select-option.selected {
   background-color: #f0f0f0;
  border-radius: 10px;
  border-color: #CDCDCD !important;
}

.multi-select-option .remove-btn {
  margin-left: 10px;
  color: #ff0000;
  font-weight: bold;
  cursor: pointer;
}

.hidden {
  display: none;
}

.multi-select-search {
  width: 100%;
  padding: 5px 10px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.form-check-input{
  width: 15px !important;
  height: 15px !important;
}
.form-check-input:checked {
    background-color: #17AE7D !important;
    border-color: #17AE7D !important;
}

input:focus{
        border-color: #17AE7D !important;
    }

    .editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.editor-wrapper {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    width: 95%;
    height: 90%;
    display: flex;
    flex-direction: column;
}
#tui-image-editor {
    flex: 1;
}
.close-editor {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}

.image-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.image-popup .popup-content {
  max-width: 90%;
  max-height: 80%;
}

#cropperImage {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  margin: auto;
}

.editor-actions {
  margin-top: 15px;
  text-align: center;
  z-index: 10000;
  position: relative;
}

.editor-actions button {
  margin: 0 5px;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background: #28a745;
  color: white;
  cursor: pointer;
}

.editor-actions button:hover {
  background: #218838;
}

.dropdown,
.dropdown-header,
.dropdown-input {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box; 
}
