/* Autocomplete styles */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-moz-ui-invalid {
    transition: background-color 5000s ease-in-out 0s;
    background-color: transparent !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Google Maps  */
.pac-container {
    z-index: 10000 !important;
}

/* Toggle switch styles */
.ms-toggle-checkbox:checked ~ .ms-toggle-bg {
    background-color: #09e3e1;
}
.ms-toggle-checkbox:checked ~ .ms-toggle-dot {
    left: 19px;
}

/* Hide arrow for general browsers */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: none;
}

/* For Internet Explorer */
select::-ms-expand {
    display: none;
}

.is-inactive {
    pointer-events: none;
    /* Additional style rules for inactive state */
}

.sortable-ghost {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Verbergt de scrollbar voor alle elementen */
* {
    -ms-overflow-style: none;  /* Voor Internet Explorer en Edge */
    scrollbar-width: none;  /* Voor Firefox */
}

*::-webkit-scrollbar {
    display: none;  /* Voor Chrome, Safari en Opera */
}

/* Datepicker styles */
:root {
    --main-light-color: #f5f5f5; /*is the light grey */
    --main-dark-color: #121331; /* is the text */
    --main-active-color: #2962ff; /*  is the highlight */
}

.datepicker-dropdown {
    border-radius: 6px !important;
    border: 0 !important;
    -webkit-box-shadow: 0px 48px 88px rgba(23, 9, 54, 0.08);
    box-shadow: 0px 48px 88px rgba(23, 9, 54, 0.08);
    box-sizing: border-box;
}

.datepicker-panel>ul[data-view="week"]>li {
    background-color: var(--main-light-color);
    color: var(--main-dark-color);
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    height: initial;
    padding-top: 3px;
    margin-bottom: 4px;
}

.datepicker-panel>ul[data-view="week"]>li:hover {
    background-color: var(--main-light-color);
    color: var(--main-dark-color);
    border-radius: 0px;
}

.datepicker-panel>ul[data-view="week"] li:first-child {
    border-radius: 6px 0 0 6px;
}

.datepicker-panel>ul[data-view="week"] li:last-child {
    border-radius: 0 6px 6px 0;
}

.datepicker-top-left::before,
.datepicker-top-left::after {
    display: none;
}

.datepicker-panel>ul>li.highlighted {
    color: var(--main-active-color);
    background: none !important;
    border: 1px solid var(--main-light-color);
    border-radius: 8px;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
}

.datepicker-panel>ul>li.picked,
.datepicker-panel>ul>li.picked:hover {
    color: var(--main-active-color);
    background: var(--main-light-color);
    border-radius: 8px;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
}

li[data-view="month current"],
li[data-view="year current"] {
    text-align: left;
    color: var(--main-dark-color);
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    padding-left: 15px;
    border-radius: 6px;
}

.datepicker-panel>ul>li:hover {
    background: var(--main-light-color);
    border-radius: 6px;
}

li[data-view="month current"],
li[data-view="year current"],
li[data-view="years current"] {
    margin-bottom: 4px !important;
}

@media screen and (min-width: 768px) {
    .datepicker-dropdown {
        width: 364px;
        padding: 12px;
    }

    .datepicker-panel>ul>li {
        width: 48px;
        height: 48px;
        padding-top: 10px;
    }

    li[data-view="month next"],
    li[data-view="year next"],
    li[data-view="years next"] {
        position: absolute;
        right: 18px;
    }

    li[data-view="month prev"],
    li[data-view="year prev"],
    li[data-view="years prev"] {
        position: absolute;
        right: 66px;
    }

    ul[data-view="months"] li,
    ul[data-view="years"] li {
        padding-top: 0px;
        width: 57px !important;
    }
}

@media screen and (max-width: 768px) {
    .datepicker-panel {
        transform: scale(0.97);
    }
}

/* Button Loader Styles */
.buttonLoader {
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border-top: 3px solid rgba(255, 255, 255, 0.9);
    width: 1.5rem;
    height: 1.5rem;
    background-color: transparent;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    display: inline-block;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}

/* Api Loader */
#api-loader {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: white;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
    opacity: 0;
}

#api-loader .loader-content {
    display: flex;
    align-items: center;
}

#api-loader span {
    font-size: 16px;
    margin-right: 10px;
    color: #333;
}

#api-loader .loader {
    border: 3px solid rgba(255, 255, 255, 0.5); /* Schaduw of lichte tint */
    border-radius: 50%;
    border-top: 3px solid var(--accent--primary-1); /* De primaire accentkleur */
    width: 18px;
    height: 18px;
    background-color: transparent;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Update Loader */
.update-loader {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid rgba(9, 227, 225, 0.9);
    width: 2.5rem;
    height: 2.5rem;
    background-color: transparent;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    display: inline-block;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}

.update-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Focus styles */
input:focus-visible {
    line-height: normal;
    outline: none;
}

/* Checkbox Styles */
input[type="checkbox"]:checked {
    background-color: #09e3e1 !important;
}

/* Toggle Styles */
.toggle-container {
    position: relative;
    display: inline-block;
    width: 50px;  /* Aangepast van 60px naar 50px */
    height: 28px; /* Aangepast van 34px naar 28px */
    margin-bottom: 0px !important;
}

.toggle-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px; /* Aangepast van 34px naar 28px */
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: #09e3e1;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.toggle-container:hover .slider {
    background-color: #09e3df50;
}

/* Skeleton Images */

/* Basis styling voor de start-img klasse */
.start-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.2) 100%);
    animation: skeleton-loader 0.75s infinite;
    z-index: 1;
}

  /* Zorgen dat de content verborgen is terwijl de skeleton loader actief is */
  .start-image img, .start-image div {
    opacity: 0;
  }

  /* Keyframes voor de beweging van links naar rechts */
  @keyframes skeleton-loader {
    0% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(100%);
    }
  }

  /* Cropper */

  .cropper-wrap-box {
    background-color: #000 !important; /* Verander naar een effen kleur */
    background-image: none !important; /* Verwijder het rasterpatroon */
}

/* input disabled  */

input[disabled] {
    background-color: white !important;
    opacity: 1;   /* Zorg ervoor dat het veld niet transparant wordt */
    cursor: not-allowed; /* Optioneel: verander de cursor om aan te geven dat het veld uitgeschakeld is */
}

/* center loader in adding a musicLink */

[data-search="load"] {
    margin-left: auto;
    margin-right: auto;
}

/*OVERWRITE RULES*/
.preview-upload {
    background-size: contain !important;
  }