
/* EDITOR CODE */

.decorator_widget_container{
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    background-color: white;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--color-light);
}

.preview_container_wrapper {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.preview_menu {
    width: 300px;
    height: 100%;
}  

.decoration_editor_wrapper {
    border: 1px solid var(--color-light);
    padding: 10px;
    border-radius: 16px;
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.websites_dropdown {
    border: 1px solid var(--color-light);
    border-radius: 6px;
    padding: 5px;
    color: var(--color-accent);
    cursor: pointer;
    min-width: 300px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    outline: none;
    transition: ease-in-out 0.25s;
    background-color: var(--color-white);
}

.websites_dropdown:focus {
    border: 1px solid var(--color-accent)!important;
    color: var(--color-accent)!important;
}

.websites_dropdown_title_wrapper {
    display: block;
}

.websites_dropdown_label_text {
    transition: ease-in-out 0.25s;
    font-weight: 400 !important;
}

.websites_dropdown_title_wrapper:focus-within .websites_dropdown_label_text {
    color: var(--color-accent)!important;
}

.decoration_plan_dropdown_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plan_dropdown {
    width: fit-content;
    user-select: none;
    border-radius: 6px;
    border: 1px solid var(--color-light);
    background-color: white;
    font-size: 11px;
    font-weight: 450;
    padding: 2px;
    color: var(--color-gray);
    cursor: pointer;
    outline: none;
    transition: ease-in-out 0.25s;
}

.plan_dropdown:hover {
    color: var(--color-accent);
}

.decoration_plan_editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.decoration_plan_editor_row div {
    font-size: 10px;
    color: var(--color-gray);
    font-weight: 550;
    margin: 0;
    padding: 0;
    user-select: none;
    text-align: left;
    padding: 0 10px;
}

#decorations_editor_card {
    width: calc(100% - 6px);
}

#decorations_list {
    width: 100%;
    height: calc(100vh - 240px);
    overflow-y: auto;
    padding-right: 2px;
    margin-bottom: 3px;
    border-radius: 6px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.decorations_list_container {
    background-color: var(--color-white);
    border-radius: 10px;
    border: 1px solid var(--color-light);
}

.preview_screen_container {
    width: calc(100% - 300px);
    height: 100%;
    background-color: white;
    border-radius: 10px;
    border: 1px solid var(--color-light);
    display: flex;
    flex-direction: column;
}

.preview_screen {
    position: relative;
    overflow: hidden;
    margin: auto;
    aspect-ratio: 16 / 9;
    border-bottom: 1px solid var(--color-light);
    border-top: 1px solid var(--color-light);
    width: 100%;
    max-height: 75vh;
} 

#preview_iframe {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-top: 0;
    border-bottom: 0;
}

.preview_screen_header {
    border-bottom: 1px solid var(--color-light);
    border-radius: 10px 10px 0 0;
    padding: 4px;
    background-color: var(--color-white);
    width: 100%;
}

.preview_screen_footer {
    border-top: 1px solid var(--color-light);
    border-radius: 0 0 10px 10px;
    padding: 4px;
    background-color: var(--color-white);
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.preview_screen_footer .settings_modal_apply_button2 {
    width: fit-content;
}

.preview_button_container {
    display: flex;
    justify-content: center;
    gap: 4px;
    z-index: 20;
}

.preview_button {
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    border-radius: 5px;
    background-color: white;
    color: var(--color-gray);
    justify-content: center;
    align-items: center;
    font-size: 14px;
    border: 1px solid var(--color-light);
    transition: ease-in-out 0.25s;
}

.preview_button:hover {
    color: var(--color-accent);
}

.preview_button.active{
    background-color: white;
    border: 1px solid var(--color-light);
    color: var(--color-accent);
}


.preview_button span {
    font-size: 18px;
}

.decorations_editor_wrapper {
    display: flex;
    flex-direction: column;
    /* background-color: red; */
    border-radius: 10px;
    border: 1px solid var(--color-light);
    height: 100%;
}

.decorations_editor_top {
    border-bottom: 1px solid var(--color-light);
    border-radius: 10px 10px 0 0;
    padding: 4px;
    background-color: var(--color-white);
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.decorations_editor_title {
    font-size: 11px;
    color: var(--color-gray);
    font-weight: 550;
    margin: 0;
    padding: 0;
    user-select: none;
    margin: auto;
}

.decorations_editor_middle_wrapper {
    background-color: white;
    padding: 8px 2px 8px 8px;
    border-radius: 0;
    border-bottom: 1px solid var(--color-light);
}

.decorations_editor_middle {
    width: 100%;
    margin-bottom: 3px;
}

.decorations_editor_bottom {
    position: relative;
    padding: 4px;
    background-color: var(--color-white);
    border-radius: 0 0 10px 10px;
}

#decorations_editor{
    display: none;
    position: relative;
    /* margin-left: 10px;
    margin-right: 20px; */
    transition: ease-in-out 0.2s;
}

#decorations_editor label,
#decorations_editor select,
#decorations_editor input,
#decorations_editor button {
    display: block;
    margin: 0;
}

#decorations_editor input[type="range"] {
    width: 50%;
    -webkit-appearance: none;
    height: 3px;
    background: var(--color-light);
    border-radius: 3px;
    outline: none;
    margin: 8px 0;
  }

  /* Webkit */
  #decorations_editor input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 16px;
    background: var();
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--color-light);
    transition: background 0.3s;
    background-color: var(--color-white);
  }

  #decorations_editor input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--color-accent);
  }

  /* Firefox */
  #decorations_editor input[type="range"]::-moz-range-thumb {
    width: 8px;
    height: 16px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #333;
  }

.celebration_settings {
    /* height: 60vh; */
    overflow-y: auto;
    /* margin-top: 20px; */
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.decoration_settings_wrapper {
    overflow-y: overlay;
    scrollbar-gutter: stable;
    height: calc(100vh - 494px);
    padding-right: 2px;
}

/* WIDGET CODE */
#widget_button{
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    border-radius: 20px 20px 0px 0px;
    background-color: blue;
    padding: 10px 100px;
    text-align: center;
    color: white;
    cursor: pointer;
}
.close_button{
    cursor: pointer;
}

#widget {
    display: none;
    position: absolute;
    right: 20px;
    bottom: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    padding: 30px;
    z-index: 1;
}

#urlInput {
    width: 60%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
}

#loadButton {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
}

.theme-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.theme-buttons div {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tab_header_middle {
    right: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.tab_header_right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.tab_header_icon_button {
    height: 28px;
    width: 28px;
    border-radius: 6px;
    border: 1px solid var(--color-light);
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray);
    cursor: pointer;
    transition: ease-in-out 0.2s;
}

.tab_header_icon_button:hover {
    color: var(--color-accent);
    border: 1px solid var(--color-light);
    background-color: var(--color-white);
}

.tab_header_icon_button span {
    font-size: 20px;
}

.add_website_domain_container {
    padding: 4px;
    border: 1px solid var(--color-light);
    background-color: white;
    border-radius: 6px 0 0 6px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-width: 320px;
    transition: ease-in-out 0.25s;
    background-color: var(--color-white);
}

.add_website_domain_container:hover .material-symbols-rounded {
    color: var(--color-accent);
}

.add_website_domain_container:hover {
    border: 1px solid var(--color-accent);
}

.add_website_domain_container .material-symbols-rounded {
    font-size: 20px;
    color: var(--color-light);
    transition: ease-in-out 0.25s;
}

input.add_website_domain_input {
    background-color: transparent;
    outline: none;
    border: none;
    width: 100%;
}

.add_website_domain_container:focus-within {
    border: 1px solid var(--color-accent);
}

.add_website_domain_container:focus-within .material-symbols-rounded{
    color: var(--color-accent);
}

.decoration_card{
    position: relative;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.decoration_card_small{
    position: relative;
    width: calc(33.3% - 10px);
    min-width: 300px;
    border-radius: 10px;
    margin-bottom: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.decoration_card_thumbnail{
    width: 100%;
    border-radius: 6px;
    aspect-ratio: 1.6;
}
.decoration_card_title{
    position: relative;
}
.decoration_card_name{
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
}
.decoration_card_subtitle{
    font-size: 12px;
}
.enabled_badge{
    position: absolute;
    right: 10px;
    top: 0px;
    height: 100%;

    font-size: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.top_button{
    position: absolute;
    display: inline-block;
    top: 10px;
    font-size: 16px;
    cursor: pointer;
    color: white;
    transition: all 0.3sease;
    padding: 11px 20px;
    border-radius: 10px;
    z-index: 11;
}
.top_button:hover{
    background-color: var(--color-gray);
}
.top_button.back_button{
    left: 10px;
    background-color: var(--color-accent);
}
.top_button.save_button{
    right: 10px;
    background-color: var(--color-green);
}

.decoration_image{
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
}

.decorations_editor_image_card {
    position: relative;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.decorations_editor_code_card.expanded{
    position: fixed;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    z-index: 100;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.decorations_editor_image{
    height: 100px;
}
.decorations_editor_image_tiny{
    height: 20px;
}


.decorations_editor_code_card {
    position: relative;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
/* Hide native checkbox */
.decoration_checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    padding-left: 2.5px;
    padding-top: 2px;
    border: 1px solid var(--color-light);
    border-radius: 4px;
    background-color: var(--color-white);
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    display: flex;
    transition: ease-in-out 0.25s;
    color: transparent;
    justify-content: center;
    align-items: center;
}

.decoration_checkbox:hover {
    border-color: var(--color-gray);
    background-color: white;
}

/* Checked: blue background and visible ✓ */
.decoration_checkbox:checked {
    background-color: white;
    border-color: var(--color-gray);
    color: var(--color-accent); /* show ✓ */
}
  
/* Insert ✓ when checked */
.decoration_checkbox::before {
    content: "✓";
    position: relative;
    font-weight: bold;
    transform: scale(0);
    transition: transform 0.2s;
}

/* Animate ✓ in */
.decoration_checkbox:checked::before {
    transform: scale(1);
}
  
.decoration_plan_editor_row{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.websites_dropdown_title {
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    display: block;
    gap: 4px;
    height: fit-content;
    position: relative;
    border-radius: 6px 0 0 6px;
    font-size: 13px !important;
    font-weight: 500 !important;
    background-color: white;
    padding: 0 !important;
    border-right: none !important;
    width: fit-content;
}

.decoration_plan_editor_row_count {
    font-size: 10px;
    text-align: center;
    color: var(--color-accent);
    font-weight: 600;
    background-color: var(--color-accent-light);
    padding: 6px;
}

.decoration_time {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-gray);
}