/*!
 * Copyright (c) 2025 Brian Walczak
 * All rights reserved.
 *
 * This source code is licensed under the MIT License found in the
 * LICENSE file in the root directory of this source tree.
*/

.lightMode {
    background: #f3f3f3;
    color: black;
}

.darkMode {
    background: rgb(17, 17, 17);
    color: white;
}

.darkMode select, .darkMode textarea, .darkMode input {
    color: #ffffff;
    border: 2px solid #555555;
    background-color: #333333;
}

.lightMode select .darkMode textarea, .darkMode input {
    color: #000000;
    border: 2px solid #cccccc;
    background-color: #ffffff;
}

.darkMode .popup .content {
    background: rgb(17, 17, 17);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)), rgb(17, 17, 17);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: white;
}

.lightMode .popup .content {
    background: rgb(255, 255, 255);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), rgb(255, 255, 255);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: black;
}

.lightMode .cluster div, .lightMode .marker {
    color: black;
}

.darkMode .cluster div, .darkMode .marker {
    color: white;
}

.darkMode .cluster span {
    color: #dedede;
}

.lightMode .cluster span {
    color: rgb(17, 17, 17);
}

/* Progress bar styles */
.timer-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    border-radius: 10px;
    margin-top: 15px;
}

.timer-fill {
    width: 0%;
    height: 100%;
    background: rgb(145, 145, 145);
    border-radius: 10px;
}

@keyframes fillBar {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* -- Theme Toggle CSS -- */
.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header .toggle {
    cursor: pointer;
    font-size: 25px;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 34px;
    height: 34px;
    pointer-events: auto;
    font-family: 'Material Symbols Outlined';
}

.lightMode .header .toggle {
    filter: grayscale(100%) brightness(0);
}

.lightMode .header #color::before {
    content: "light_mode";
}

.darkMode .header .toggle {
    filter: grayscale(100%) brightness(100);
}

.darkMode .header #color::before {
    content: "dark_mode";
}