@import url('style-switcher.css');

:root {
    --matrix-suite-primary: #d63559;
    --icon-fill-hover: #ba2e4d;
}

.wp-block-matrix-suite-progress-bar .progress-outer {
    background-color: #ddd;
    width: 100%;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.wp-block-matrix-suite-progress-bar .progress-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
}

.wp-block-matrix-suite-progress-bar .progress-percent-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    white-space: nowrap;
}

.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.matrix-suite-switcher-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

html:not([data-theme="dark"]) .matrix-suite-icon-light {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

html:not([data-theme="dark"]) .matrix-suite-icon-dark {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scale(0.5);
}

html[data-theme="dark"] .matrix-suite-icon-light {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.5);
}

html[data-theme="dark"] .matrix-suite-icon-dark {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}
