﻿/* components/theme-toggle.css */

/* Stylizacja przycisku przełączającego tryb */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none; /* Usunięcie obramówki */
    cursor: pointer;
    outline: none;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
    -webkit-box-shadow: none;
            box-shadow: none; /* Usunięcie cienia */
}

.theme-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px; /* Zmniejszona szerokość SVG */
    height: 24px; /* Zmniejszona wysokość SVG */
    background-image: url('data:image/svg+xml;utf8,<svg height="24px" width="24px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" xml:space="preserve" fill="%23000000"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <circle style="fill:%23ffffff;" cx="256.003" cy="256.003" r="173.835"></circle> <path style="fill:%23000000;" d="M256,116.958c76.667,0,139.042,62.374,139.042,139.042S332.669,395.043,256,395.043L256,116.958 L256,116.958z"></path> <g> <path style="fill:%23ffffff;" d="M256,57.536c-4.804,0-8.698-3.893-8.698-8.698V8.698C247.302,3.893,251.196,0,256,0 s8.698,3.893,8.698,8.698v40.14C264.698,53.643,260.804,57.536,256,57.536z"></path> <path style="fill:%23ffffff;" d="M402.486,118.213c-2.226,0-4.452-0.849-6.15-2.547c-3.397-3.398-3.397-8.905,0-12.301l28.384-28.384 c3.397-3.396,8.905-3.396,12.3,0c3.397,3.398,3.397,8.905,0,12.301l-28.384,28.384 C406.938,117.363,404.711,118.213,402.486,118.213z"></path> <path style="fill:%23ffffff;" d="M503.301,264.698h-40.14c-4.804,0-8.698-3.893-8.698-8.698c0-4.805,3.894-8.698,8.698-8.698h40.14 c4.804,0,8.698,3.893,8.698,8.698C511.999,260.804,508.105,264.698,503.301,264.698z"></path> <path style="fill:%23ffffff;" d="M430.869,439.567c-2.226,0-4.452-0.849-6.15-2.547l-28.384-28.384c-3.397-3.398-3.397-8.905,0-12.301 c3.397-3.396,8.905-3.396,12.3,0l28.384,28.384c3.397,3.398,3.397,8.905,0,12.301C435.32,438.717,433.095,439.567,430.869,439.567z"></path> <path style="fill:%23ffffff;" d="M256,512c-4.804,0-8.698-3.893-8.698-8.698v-40.14c0-4.805,3.894-8.698,8.698-8.698 s8.698,3.893,8.698,8.698v40.14C264.698,508.106,260.804,512,256,512z"></path> <path style="fill:%23ffffff;" d="M81.132,439.567c-2.226,0-4.452-0.849-6.15-2.547c-3.397-3.398-3.397-8.905,0-12.301 l28.384-28.384c3.397-3.396,8.905-3.396,12.3,0c3.397,3.398,3.397,8.905,0,12.301L87.282,437.02C85.584,438.717,83.358,439.567,81.132,439.567z"></path> <path style="fill:%23ffffff;" d="M48.839,264.698H8.699c-4.804,0-8.698-3.893-8.698-8.698c0-4.805,3.894-8.698,8.698-8.698h40.14 c4.804,0,8.698,3.893,8.698,8.698C57.537,260.804,53.642,264.698,48.839,264.698z"></path> <path style="fill:%23ffffff;" d="M109.516,118.213c-2.226,0-4.452-0.849-6.15-2.547L74.982,87.283c-3.397-3.398-3.397-8.905,0-12.301 c3.397-3.396,8.905-3.396,12.3,0l28.384,28.384c3.397,3.398,3.397,8.905,0,12.301C113.968,117.363,111.741,118.213,109.516,118.213z"></path> </g> </g></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    -webkit-transition: background-image 0.3s ease, -webkit-transform 0.3s ease;
    transition: background-image 0.3s ease, -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease, background-image 0.3s ease;
    transition: transform 0.3s ease, background-image 0.3s ease;
    transition: transform 0.3s ease, background-image 0.3s ease, -webkit-transform 0.3s ease;
}

.theme-toggle:focus,
.theme-toggle:active {
    outline: none;
    -webkit-box-shadow: none;
            box-shadow: none; /* Usunięcie domyślnego cienia */
}

/* Zmiana ikony w trybie jasnym */
.light-mode .theme-toggle::after {
    background-image: url('data:image/svg+xml;utf8,<svg height="24px" width="24px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" xml:space="preserve" fill="%23000000"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <circle style="fill:%23000000;" cx="256.003" cy="256.003" r="173.835"></circle> <path style="fill:%23FFFFFF;" d="M256,116.958c76.667,0,139.042,62.374,139.042,139.042S332.669,395.043,256,395.043L256,116.958 L256,116.958z"></path> <g> <path style="fill:%23000000;" d="M256,57.536c-4.804,0-8.698-3.893-8.698-8.698V8.698C247.302,3.893,251.196,0,256,0 s8.698,3.893,8.698,8.698v40.14C264.698,53.643,260.804,57.536,256,57.536z"></path> <path style="fill:%23000000;" d="M402.486,118.213c-2.226,0-4.452-0.849-6.15-2.547c-3.397-3.398-3.397-8.905,0-12.301l28.384-28.384 c3.397-3.396,8.905-3.396,12.3,0c3.397,3.398,3.397,8.905,0,12.301l-28.384,28.384c-2.698,2.698-5.924,3.548-8.15,3.548z"></path> <path style="fill:%23000000;" d="M503.301,264.698h-40.14c-4.804,0-8.698-3.893-8.698-8.698c0-4.805,3.894-8.698,8.698-8.698h40.14 c4.804,0,8.698,3.893,8.698,8.698C511.999,260.804,508.105,264.698,503.301,264.698z"></path> <path style="fill:%23000000;" d="M430.869,439.567c-2.226,0-4.452-0.849-6.15-2.547l-28.384-28.384c-3.397-3.398-3.397-8.905,0-12.301 c3.397-3.396,8.905-3.396,12.3,0l28.384,28.384c3.397,3.398,3.397,8.905,0,12.301C435.32,438.717,433.095,439.567,430.869,439.567z"></path> <path style="fill:%23000000;" d="M256,512c-4.804,0-8.698-3.893-8.698-8.698v-40.14c0-4.805,3.894-8.698,8.698-8.698 s8.698,3.893,8.698,8.698v40.14C264.698,508.106,260.804,512,256,512z"></path> <path style="fill:%23000000;" d="M81.132,439.567c-2.226,0-4.452-0.849-6.15-2.547c-3.397-3.398-3.397-8.905,0-12.301 l28.384-28.384c3.397-3.396,8.905-3.396,12.3,0c3.397,3.398,3.397,8.905,0,12.301L87.282,437.02C85.584,438.717,83.358,439.567,81.132,439.567z"></path> <path style="fill:%23000000;" d="M48.839,264.698H8.699c-4.804,0-8.698-3.893-8.698-8.698c0-4.805,3.894-8.698,8.698-8.698h40.14 c4.804,0,8.698,3.893,8.698,8.698C57.537,260.804,53.642,264.698,48.839,264.698z"></path> <path style="fill:%23000000;" d="M109.516,118.213c-2.226,0-4.452-0.849-6.15-2.547L74.982,87.283c-3.397-3.398-3.397-8.905,0-12.301 c3.397-3.396,8.905-3.396,12.3,0l28.384,28.384c3.397,3.398,3.397,8.905,0,12.301C113.968,117.363,111.741,118.213,109.516,118.213z"></path> </g> </g></svg>');
}

.theme-toggle:hover::after {
    -webkit-transform: translate(-50%, -50%) rotate(180deg);
        -ms-transform: translate(-50%, -50%) rotate(180deg);
            transform: translate(-50%, -50%) rotate(180deg);
}

.theme-toggle {
    background-color: transparent;
    -webkit-box-shadow: none;
            box-shadow: none;
}

.light-mode .theme-toggle {
    /* Dodatkowe style dla przycisku w trybie jasnym, jeśli potrzebne */
}