/* Google Font Import - Assistant */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;500;600;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Assistant', sans-serif;
}

:root{
    /* ===== Colors ===== */
    /* --body-color: #E4E9F7; */
    --body-color:#f6f6f6;
    --sidebar-color: #FFF;
    /* --primary-color: #e7c977; */
    --primary-color: #cab068;
    --primary-color-light: #f7f7f7;
    --red: #ff3e3e;
    --toggle-color: #0f101b;
    --text-color: black;

    /* ====== Transition ====== */
    --tran-03: all 0.2s ease;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.3s ease;
    --tran-05: all 0.3s ease;
}

body{
    min-height: 100vh;
    background-color: var(--body-color);
    transition: var(--tran-05);
}

::selection{
    background-color: var(--primary-color);
    color: #fff;
}

body.dark{
    --body-color: #161722;
    --sidebar-color: #0f101b;
    --primary-color: #b59a4f;
    --primary-color-light: #161722;
    --red: #ff3e3e;
    --toggle-color: #f7f7f7;
    --text-color: white;
}


.btn{
    height: 30px;
    border-radius: 6px;
    background-color: var(--primary-color);
    color: var(--sidebar-color);
    cursor: pointer;
    transition: var(--tran-05);
    font-size: 16px;
    font-weight: 700;
    outline: none;
    border: none;
    margin-top: 10px;
    padding: 0 20px;
}

.hidden{
    display:none !important;
}

.ta-c{
    text-align:center;
}

.mt-8{
    margin-top:10px;
}

.dialog-overlay {
    width: 100vw;
    height: 100vh;
    background: #0000004a;
    z-index: 10000;
    position: fixed;

    display:none;
}

.dialog-container{
    width: 80%;
    height: 90%;
    background: white;
    padding: 20px;
    border-radius: 6px;
    display:flex;
    flex-direction:column;
    position:relative;
}

.dialog-header {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
}

.dialog-header .close-btn {
    padding: 8px 0 8px 8px;
    font-size: 28px;
}

.modal-container{
    display:none;
}

.dialog-header .text{
    width: 100%; 
    margin-bottom: 6px;
}

.dialog-overlay.open{
    display:flex;
    justify-content: center;
    align-items: center;
}

.dialog-data{
    height: 100%;
    overflow: auto;
}

.dialog-btn{
    display: flex;
    justify-content: center;
    align-items: center;
}

.dialog-btn button{
    height: 36px;
    border-radius: 6px;
    background-color: var(--primary-color);
    color: var(--sidebar-color);
    cursor: pointer;
    transition: var(--tran-05);
    font-size: 16px;
    font-weight: 800;
    outline: none;
    border: none;
    margin-top: 10px;
    padding: 0px 30px;
}

.col{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.f-w{
    width: 100%;
}

.socials-editor input[type="text"]{
    border: none;
    outline: none;
    border-bottom: 1px solid var(--text-color);
    background: transparent;
    height: 30px;
}

.socials-editor svg{
    width: 30px;
    height: 30px;
}

.socials-editor, .worktime-editor, .services-editor, .reviews-editor{
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--body-color);
    margin: 8px;
    border-radius: 6px;
    gap: 32px;
}


.worktime-editor-container, .services-editor-container, .reviews-editor-container{
    display: flex;
    flex-direction: column;
}

.worktime-editor, .services-editor, .reviews-editor{
    justify-content: center;
}


.btn.add-worktime, .btn.add-services, .btn.add-reviews{
    margin: auto;
}

.worktime-editor{
    gap:32px;
    justify-content: space-between;
}



.worktime-editor select, .worktime-editor input[type="time"], .services-editor input, .reviews-editor input {
    border: none;
    padding: 4px 20px;
    border-radius: 6px;
    outline: none;
    color: var(--text-color);
    font-weight: 700;
    width: 120px;
    font-size: 14px;
}

.input-group .preview-container {
    width: 60px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.input-group .preview-container .preview-image {
    max-height: 100%;
    object-fit: contain;
    width: 60px;
}


.reviews-editor .review-image{
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.services-editor input{
    width: auto;
    text-align: center;
}

.reviews-editor input{
    width:auto;
}


.form{
    margin: 0 20%;
    display: flex;
    flex-direction: column;
}

.input-group {
    border-radius: 6px;
    background-color: var(--sidebar-color);
    cursor: pointer;
    transition: var(--tran-05);

    min-height: 50px;
    list-style: none;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.input-group .icon{
    min-width: 60px;
    border-radius: 6px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.input-group input{
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    background-color: var(--sidebar-color);
    color: var(--text-color);
    /* border-radius: 6px; */
    font-size: 17px;
    font-weight: 500;
    transition: var(--tran-05);
}

.input-group input::placeholder{
    color: gray;
}

.input-group input.ltr{
    direction: ltr;
    text-align: right;
}

.input-group.open-modal{
    cursor:pointer;
}

.input-group textarea, .input-group span.textarea{
    margin:15px 0;
    height: 100%;
    width: 100%;
    margin-left: 27px;
    outline: none;
    border: none;
    background-color: var(--sidebar-color);
    color: var(--text-color);
    /* border-radius: 6px; */
    font-size: 17px;
    font-weight: 500;
    transition: var(--tran-05);
}

span.textarea.review-text{
    width: auto;
    display: block;
    border-radius: 6px;
    max-width: 100%;
    margin: 10px 0;
    outline: none;
    border: none;
    background-color: var(--sidebar-color);
    color: var(--text-color);
    transition: var(--tran-05);
    padding: 4px 20px;
    font-size: 14px;
}

.input-group span.textarea{
    width: calc(100% - 85px);
    margin-left: 0;
}

.input-group span.textarea.about[contenteditable]:empty::before {
    content: "אודות";
    color: gray;
}


span.textarea.review-text[contenteditable]:empty::before {
    content: "המלצה";
    color: gray;
}

.form .btn{
    height: 50px;
    border-radius: 6px;
    background-color: var(--primary-color);
    color: var(--sidebar-color);
    cursor: pointer;
    transition: var(--tran-05);
    font-size: 20px;
    font-weight: 800;
    outline: none;
    border: none;
    margin-top: 10px;
}

input.apple-switch {
    position: relative;
    appearance: none; outline: none;
    width: 50px; height: 30px;
    background-color: #ffffff; border: 1px solid #D9DADC;
    border-radius: 50px; box-shadow: inset -20px 0 0 0 #ffffff;
    transition-duration: 200ms;
}

input.apple-switch:after {
    content: "";
    position: absolute;
    top: 1px; left: 1px;
    width: 26px; height: 26px;
    background-color: transparent;
    border-radius: 50%; box-shadow: 2px 4px 6px rgba(0,0,0,0.2);
}
    
input.apple-switch:checked {
    border-color: var(--primary-color);
    box-shadow: inset 20px 0 0 0 var(--primary-color);
}

input.apple-switch:checked:after {
    left: 20px;
    box-shadow: -2px 4px 3px rgba(0,0,0,0.05);
}
    


@media (max-width: 500px){
    .form{
        margin: 0;
    }

    .dialog-container{
        width: 96%;
        height: 90%;
    }

    .worktime-editor{
        gap: 16px;
        flex-direction: column;
        justify-content: center;
    }
}