#settings {
    & .rows-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    & .container-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    & .user-info {
        display: flex;
        gap: 12px;
        padding: 0;
        margin: 0;

        & .user-avatar {
            width: 60px;
            height: 60px;
            background-color: var(--md-sys-color-surface-container-high);
        }

        & .user-name {
            font-size: 1.6rem;
            font-weight: 500;
            color: var(--md-sys-color-on-surface);
        }

        & .sync-status {
            font-size: 1rem;
            color: var(--md-sys-color-on-surface-variant);
            font-weight: 400;
        }

        & .sync {
            display: inline-block;
            color: var(--sync-green);
            font-size: 1.1em;
            vertical-align: middle;
            text-shadow: 0 0 8px var(--sync-green, #4ade80), 0 0 2px var(--sync-green, #4ade80);
        }
    }

    & .user-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        justify-content: flex-start;
    }
}

.container>.user-info {
    margin-block-end: 16px !important;
}

.container-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 12px;
    margin-bottom: 18px;

    & h2 {
        font-size: 1.4rem;
        margin: 0;
        color: var(--md-sys-color-on-surface);
        animation: slideIn var(--motion-expressive-default-spatial);
        display: flex;
        align-items: center;
        gap: 8px;
        font-family: "Playfair Display", serif;
    }

    & .material-symbols-rounded {
        margin-block-start: 2px;
    }
}

.options-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: none;
    padding-block: 6px;
    padding-inline: 12px;
    margin: 0;
    font-size: 1rem;
}

.selector-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 6px;
    flex-wrap: wrap;
}

/* Visually hidden legend */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Theme selector styles */
.selector {
    min-width: 80px;
    flex: 0 1 auto;
    padding: 12px 24px;
    border-radius: 8px;
    background-color: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--motion-expressive-fast-spatial);
    border: 1px solid var(--md-sys-color-outline-variant);
    font-family: "Roboto", sans-serif;
    font-size: 0.9rem;
}

.selector:hover {
    background-color: var(--md-sys-color-surface-container-highest);
}

.theme-input,
.color-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.selector:has(.theme-input:checked),
.selector:has(.color-input:checked) {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border-radius: 200px;
    border: 1px solid var(--md-sys-color-outline);
}



/* Accent color selector icon */
.selector[data-color] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selector[data-color]::before {
    content: "circle";
    font-family: "Material Symbols Rounded";
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 1.2rem;
    color: var(--accent-dot-color, #888);
    transition: color 0.2s, content 0.2s;
    pointer-events: none;
    display: inline-block;
    margin-right: 0.2rem;
}

.selector[data-color="blue"]::before {
    --accent-dot-color: rgb(53, 97, 142);
}

.selector[data-color="red"]::before {
    --accent-dot-color: rgb(144, 74, 68);
}

.selector[data-color="yellow"]::before {
    --accent-dot-color: rgb(111, 93, 14);
}

.selector[data-color="violet"]::before {
    --accent-dot-color: rgb(121, 79, 129);
}

.selector[data-color]:has(.color-input:checked)::before {
    content: "check";
    color: var(--md-sys-color-on-primary);
}

/* Checkbox style selector */
.check-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    opacity: 0;
    transition: opacity var(--motion-expressive-default-effects);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
}

.checkbox-style-option {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 2px solid var(--md-sys-color-outline);
    position: relative;
}

.checkbox-style-option:hover {
    background-color: var(--md-sys-color-surface-container-highest);
}

.checkbox-style-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-style-input:checked+.check-icon {
    opacity: 1;
}

.checkbox-style-option:has(.checkbox-style-input:checked) {
    background-color: var(--md-sys-color-primary-container);
    border-color: var(--md-sys-color-primary);
}

.checkbox-style-option .check-icon {
    color: var(--md-sys-color-on-primary-container);
    font-size: 1rem;
}

/* Checkbox style previews */
.checkbox-style-option.circle {
    border-radius: 50%;
}

.checkbox-style-option.square {
    border-radius: 0;
}

.checkbox-style-option.rounded {
    border-radius: 4px;
}

.checkbox-style-option.squircle {
    border-radius: 8px;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 32px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--md-sys-color-surface-container-highest);
    border: 2px solid var(--md-sys-color-outline);
    transition: all var(--motion-standard-fast-spatial);
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 6px;
    bottom: 50%;
    transform: translateY(50%);
    background-color: var(--md-sys-color-outline);
    transition: all var(--motion-standard-fast-spatial);
    border-radius: 50%;
}

.toggle-input:checked+.toggle-slider {
    background-color: var(--md-sys-color-primary);
    border-color: var(--md-sys-color-primary);
}

.toggle-input:checked+.toggle-slider:before {
    transform: translateY(50%) translateX(16px);
    background-color: var(--md-sys-color-on-primary);
    width: 24px;
    height: 24px;
    transition: all var(--motion-standard-fast-spatial);
    content: "done";
    font-family: "Material Symbols Rounded";
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 1rem;
    color: var(--md-sys-color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 24px;
}

@media (min-width: 480px) {
    #settings .rows-container {
        width: 100%;
        padding-inline: 40px;
    }
}


@media (min-width: 768px) {
    #settings .rows-container {
        width: 100%;
        flex-direction: row;
        justify-content: start;
        align-items: start;
        padding-inline: 100px;

        & .container-wrapper {
            width: 50%;
            padding-inline: 0;

            & .container {
                width: 100%;
            }
        }
    }
}

/* Danger Zone styles */
.danger-zone-container {
    border: 2px solid var(--md-sys-color-error);
    background: var(--md-sys-color-error-container);

    & .container-header {
        color: var(--md-sys-color-on-error-container);
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;

        & .material-symbols-rounded {
            color: var(--md-sys-color-on-error-container);
        }
    }
}