/* =========================================================
   1. BLAZOR-LAYOUT RESET & GLOBALS
   ========================================================= */
* {
    box-sizing: border-box;
    /* Custom Scrollbars für Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 120, 120, 0.4) transparent;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden !important;
    font-family: 'Segoe UI Light', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#app {
    height: 100vh;
    width: 100vw;
    display: flex;
    overflow: hidden;
    background: var(--app-bg) !important;
}

.page, main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent !important;
    overflow: hidden;
}

.content {
    flex-grow: 1;
    padding: 0.5rem;
    height: 100%;
    background: transparent !important;
    overflow: hidden;
}

.app-glass-wrapper {
    height: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-row {
    display: none !important;
}

/* Error UI & Validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* =========================================================
   2. FARB-VARIABLEN (Light & Dark Mode)
   ========================================================= */
:root {
    --app-bg: linear-gradient(135deg, #f0f2f5 0%, #e1e4e8 100%);
    --panel-bg: rgba(255, 255, 255, 0.65);
    --panel-border: rgba(255, 255, 255, 0.8);
    --text-main: #1a1a1a;
    --text-muted: #777777;
    --input-bg: rgba(255, 255, 255, 0.85);
    --input-border: rgba(0, 0, 0, 0.15);
    --list-hover: rgba(0, 0, 0, 0.05);
    --accent-green: #48a56a;
    --glass-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --neu-shadow-light: #ffffff;
    --neu-shadow-dark: #c5c5c5;
}

@media (prefers-color-scheme: dark) {
    :root {
        --app-bg: linear-gradient(135deg, #121212 0%, #181818 100%);
        --panel-bg: rgba(30, 30, 30, 0.75);
        --panel-border: rgba(255, 255, 255, 0.08);
        --text-main: #f5f5f5;
        --text-muted: #a0a0a0;
        --input-bg: rgba(0, 0, 0, 0.5);
        --input-border: rgba(255, 255, 255, 0.15);
        --list-hover: rgba(255, 255, 255, 0.08);
        --glass-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        --accent-green: #5ebf81;
        --neu-shadow-light: rgba(255,255,255,0.05);
        --neu-shadow-dark: rgba(0,0,0,0.6);
    }
}

/* =========================================================
   3. GLASS UI KOMPONENTEN (Karten, Listen, Inputs)
   ========================================================= */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    display: flex;
    flex-grow: 1;
}

.glass-card {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    padding: 0.75rem;
}

.glass-list-item {
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 2px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

    .glass-list-item:hover {
        background: var(--list-hover);
    }

    .glass-list-item.active {
        background: rgba(72, 165, 106, 0.1);
        border: 1px solid rgba(72, 165, 106, 0.2);
    }

.glass-input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.85rem;
    font-weight: 400;
    height: 30px;
    width: 100%;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea.glass-input {
    height: auto;
    min-height: 40px;
    resize: vertical;
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(72, 165, 106, 0.2);
}

.glass-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: none;
    margin-bottom: 2px;
    color: var(--text-muted);
    display: block;
}

.section-title {
    font-size: 1rem;
    font-weight: 400;
    color: var(--accent-green);
    text-transform: none;
    margin-top: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--input-border);
    padding-bottom: 2px;
}

.widget-header {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.75rem;
}

    .widget-header i {
        color: var(--accent-green);
        font-size: 1rem;
    }

/* =========================================================
   4. SIDEBAR & NAVIGATION (Dynamisch & Profil Oben)
   ========================================================= */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.main-content {
    flex-grow: 1;
    overflow-y: auto;
    background: var(--app-bg);
    transition: width 0.3s ease;
}

.custom-sidebar {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-right: 1px solid var(--panel-border);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
}

    .custom-sidebar.expanded {
        width: 250px !important;
        min-width: 250px !important;
        padding: 1.5rem 1rem !important;
        flex-shrink: 0;
    }

    .custom-sidebar.collapsed {
        width: 80px !important;
        min-width: 80px !important;
        padding: 1.5rem 0.5rem !important;
        flex-shrink: 0;
    }

/* Neuer Top-Bereich (Profil ganz oben) */
.sidebar-top-area {
    display: flex;
    flex-direction: column;
    padding: 1rem 10px;
    border-bottom: 1px solid var(--panel-border);
    margin-bottom: 1rem;
    gap: 15px;
}

.custom-sidebar.collapsed .sidebar-top-area {
    padding: 1rem 5px;
    align-items: center;
}

.brand-container {
    display: flex;
    align-items: center;
    color: var(--text-main);
}

.brand-icon {
    font-size: 1.6rem;
    color: var(--accent-green);
    margin-right: 10px;
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    transition: opacity 0.2s;
}

.custom-sidebar.collapsed .brand-text {
    opacity: 0;
    display: none;
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s;
}

    .sidebar-toggle:hover {
        color: var(--text-main);
        background: var(--list-hover);
    }

/* Sidebar Profile (Neues Design & Zentrierung) */
.sidebar-profile {
    display: flex;
    align-items: center;
    background: transparent;
    transition: all 0.3s ease;
    width: 100%;
}

.custom-sidebar.collapsed .sidebar-profile {
    justify-content: center;
    margin: 0;
}

.profile-avatar-link {
    display: block;
    flex-shrink: 0;
    transition: transform 0.2s;
    border-radius: 50%;
}

    .profile-avatar-link:hover {
        transform: scale(1.1);
    }

.sidebar-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
    border: 2px solid var(--accent-green);
    box-shadow: 0 4px 10px rgba(72, 165, 106, 0.2), inset 0 2px 4px rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.custom-sidebar.collapsed .sidebar-avatar {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
}

.profile-info {
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.2s;
    white-space: normal; /* Erlaubt Umbruch bei langen Namen */
}

.custom-sidebar.collapsed .profile-info {
    opacity: 0;
    display: none;
}

.profile-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 3px;
    word-break: break-word; /* Wichtig für lange Namen */
}

.profile-role {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nav Buttons */
.nav-btn {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none !important;
    color: var(--text-muted);
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .nav-btn .icon {
        font-size: 1.3rem;
        min-width: 24px;
        text-align: center;
        margin-right: 12px;
        color: var(--text-muted);
        transition: margin 0.2s;
    }

    .nav-btn:hover {
        background: var(--list-hover);
        color: var(--text-main);
    }

        .nav-btn:hover .icon {
            color: var(--text-main);
        }

    .nav-btn.active {
        background: var(--accent-green);
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(72, 165, 106, 0.3);
    }

        .nav-btn.active .icon {
            color: #ffffff !important;
            transform: scale(1.1);
        }

.logout-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

    .logout-btn:hover .icon {
        color: #dc3545;
    }

/* Eingeklappte Nav-Buttons */
.custom-sidebar.collapsed .nav-btn {
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    margin: 0 auto 5px auto;
}

    .custom-sidebar.collapsed .nav-btn .icon {
        margin-right: 0;
        font-size: 1.4rem;
    }

    .custom-sidebar.collapsed .nav-btn .text {
        display: none;
    }

.spacer {
    flex-grow: 1;
}

/* =========================================================
   5. CUSTOM SCROLLBARS (Modern & Minimalistisch)
   ========================================================= */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(120, 120, 120, 0.4);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(120, 120, 120, 0.7);
    }

/* =========================================================
   6. UI CONTROLS (Buttons, Switches, Loader, Formulare)
   ========================================================= */
/* Action Buttons */
.action-btn {
    height: 2.2em;
    border-radius: 30em;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 3px 3px 8px var(--neu-shadow-dark), -3px -3px 8px var(--neu-shadow-light);
    background-color: var(--input-bg);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 16px;
    white-space: nowrap;
}

    .action-btn::before {
        content: '';
        width: 0;
        height: 100%;
        border-radius: 30em;
        position: absolute;
        top: 0;
        left: 0;
        background-image: var(--btn-gradient, linear-gradient(to right, #0fd850 0%, #f9f047 100%));
        transition: .4s ease;
        display: block;
        z-index: -1;
    }

    .action-btn:hover::before {
        width: 100%;
    }

    .action-btn:hover {
        color: #111 !important;
    }

    .action-btn:active {
        transform: scale(0.96);
    }

.btn-green {
    --btn-gradient: linear-gradient(to right, #0fd850 0%, #f9f047 100%);
}

.btn-red {
    --btn-gradient: linear-gradient(to right, #ff4b1f 0%, #ff9068 100%);
    color: #dc3545;
}

.btn-neutral {
    --btn-gradient: linear-gradient(to right, #e2e2e2 0%, #f0f0f0 100%);
    box-shadow: 2px 2px 6px var(--neu-shadow-dark), -2px -2px 6px var(--neu-shadow-light);
    border: 1px solid var(--input-border);
}

@media (prefers-color-scheme: dark) {
    .btn-neutral {
        --btn-gradient: linear-gradient(to right, #3a3a3a 0%, #4a4a4a 100%);
        color: #ddd;
    }

    .action-btn:hover {
        color: #fff !important;
    }

    .btn-green:hover, .btn-neutral:hover {
        color: #111 !important;
    }
}

/* Switches */
.switch {
    --switch-width: 32px;
    --switch-height: 18px;
    --switch-bg: rgb(131, 131, 131);
    --switch-checked-bg: var(--accent-green);
    --circle-diameter: 14px;
    --switch-offset: calc((var(--switch-height) - var(--circle-diameter)) / 2);
    --switch-transition: all .2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
    display: inline-block;
    margin-top: 1px;
}

    .switch input {
        display: none;
    }

    .switch svg {
        transition: all .2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
        position: absolute;
        height: auto;
    }

    .switch .checkmark {
        width: 8px;
        color: var(--switch-checked-bg);
        transform: scale(0);
    }

    .switch .cross {
        width: 5px;
        color: var(--switch-bg);
    }

.slider {
    box-sizing: border-box;
    width: var(--switch-width);
    height: var(--switch-height);
    background: var(--switch-bg);
    border-radius: 999px;
    display: flex;
    align-items: center;
    position: relative;
    transition: var(--switch-transition);
    cursor: pointer;
}

.circle {
    width: var(--circle-diameter);
    height: var(--circle-diameter);
    background: #fff;
    border-radius: inherit;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--switch-transition);
    z-index: 1;
    position: absolute;
    left: var(--switch-offset);
}

.switch input:checked + .slider {
    background: var(--switch-checked-bg);
}

    .switch input:checked + .slider .checkmark {
        transform: scale(1);
    }

    .switch input:checked + .slider .cross {
        transform: scale(0);
    }

    .switch input:checked + .slider .circle {
        left: calc(100% - var(--circle-diameter) - var(--switch-offset));
        box-shadow: -1px 1px 2px rgba(0,0,0,0.2);
    }

/* Radio / Tabs Group */
.glass-radio-group {
    --bg: var(--input-border);
    --text: var(--text-muted);
    display: flex;
    position: relative;
    background: var(--bg);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    box-shadow: inset 1px 1px 4px rgba(0, 0, 0, 0.05), inset -1px -1px 6px rgba(255, 255, 255, 0.5), 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width: fit-content;
    height: 2.2em;
}

@media (prefers-color-scheme: dark) {
    .glass-radio-group {
        box-shadow: inset 1px 1px 4px rgba(255, 255, 255, 0.1), inset -1px -1px 6px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.2);
    }
}

.glass-radio-group input {
    display: none;
}

.glass-radio-group label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    font-size: 0.8rem;
    padding: 0 1rem;
    cursor: pointer;
    font-weight: 400;
    color: var(--text);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease-in-out;
    margin: 0;
}

    .glass-radio-group label:hover {
        color: var(--text-main);
    }

.glass-radio-group input:checked + label {
    color: #fff;
    font-weight: 600;
}

@media (prefers-color-scheme: dark) {
    .glass-radio-group input:checked + label {
        color: #111;
    }
}

.glass-glider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(100% / 3);
    border-radius: 1rem;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.37, 1.95, 0.66, 0.56), background 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

#tab-home:checked ~ .glass-glider {
    transform: translateX(0%);
    background: linear-gradient(135deg, #48a56a, #66c78a);
    box-shadow: 0 0 12px rgba(72, 165, 106, 0.4), 0 0 8px rgba(255, 255, 255, 0.3) inset;
}

#tab-stamm:checked ~ .glass-glider {
    transform: translateX(100%);
    background: linear-gradient(135deg, #48a56a, #66c78a);
    box-shadow: 0 0 12px rgba(72, 165, 106, 0.4), 0 0 8px rgba(255, 255, 255, 0.3) inset;
}

#tab-akte:checked ~ .glass-glider {
    transform: translateX(200%);
    background: linear-gradient(135deg, #48a56a, #66c78a);
    box-shadow: 0 0 12px rgba(72, 165, 106, 0.4), 0 0 8px rgba(255, 255, 255, 0.3) inset;
}

/* Radio Inputs (Insurance) */
.radio-inputs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    border-radius: 6px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    padding: 2px;
    width: 100%;
    font-size: 0.85rem;
    height: 30px;
}

    .radio-inputs .radio {
        flex: 1 1 auto;
        text-align: center;
    }

        .radio-inputs .radio input {
            display: none;
        }

        .radio-inputs .radio .name {
            display: flex;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            border: none;
            padding: 2px 0;
            color: var(--text-muted);
            transition: all .15s ease-in-out;
            height: 100%;
            margin: 0;
        }

        .radio-inputs .radio input:checked + .name {
            background-color: var(--panel-bg);
            font-weight: 700;
            color: var(--accent-green);
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

/* Gender Radio Buttons */
.gender-radio {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;
}

    .gender-radio input {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        z-index: 10;
        cursor: pointer;
        margin: 0;
    }

    .gender-radio .bg-circle {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .gender-radio svg {
        position: absolute;
        z-index: 2;
        transition: all 0.3s ease;
        width: 18px;
        height: 18px;
    }

    .gender-radio.male .bg-circle {
        background: #e0f2fe;
    }

    .gender-radio.male svg {
        stroke: #60a5fa;
        fill: none;
    }

    .gender-radio.male input:checked ~ .bg-circle {
        transform: scale(1.15);
        box-shadow: 0 0 0 2px #60a5fa;
    }

    .gender-radio.female .bg-circle {
        background: #fce7f3;
    }

    .gender-radio.female svg {
        fill: #f472b6;
    }

    .gender-radio.female input:checked ~ .bg-circle {
        transform: scale(1.15);
        box-shadow: 0 0 0 2px #f472b6;
    }

    .gender-radio.diverse .bg-circle {
        background: #f3f4f6;
    }

    .gender-radio.diverse svg {
        stroke: #9ca3af;
        fill: none;
    }

    .gender-radio.diverse input:checked ~ .bg-circle {
        transform: scale(1.15);
        box-shadow: 0 0 0 2px #9ca3af;
    }

/* Loader */
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    --color: var(--accent-green);
    --animation: 2s ease-in-out infinite;
    padding: 1rem 0;
}

    .loader .circle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 20px;
        height: 20px;
        border: solid 2px var(--color);
        border-radius: 50%;
        margin: 0 8px;
        background-color: transparent;
        animation: circle-keys var(--animation);
    }

        .loader .circle .dot {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: var(--color);
            animation: dot-keys var(--animation);
        }

        .loader .circle .outline {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 20px;
            height: 20px;
            border-radius: 50%;
            animation: outline-keys var(--animation);
        }

.circle:nth-child(2) {
    animation-delay: 0.3s;
}

.circle:nth-child(3) {
    animation-delay: 0.6s;
}

.circle:nth-child(4) {
    animation-delay: 0.9s;
}

.circle:nth-child(5) {
    animation-delay: 1.2s;
}

.circle:nth-child(2) .dot {
    animation-delay: 0.3s;
}

.circle:nth-child(3) .dot {
    animation-delay: 0.6s;
}

.circle:nth-child(4) .dot {
    animation-delay: 0.9s;
}

.circle:nth-child(5) .dot {
    animation-delay: 1.2s;
}

.circle:nth-child(1) .outline {
    animation-delay: 0.9s;
}

.circle:nth-child(2) .outline {
    animation-delay: 1.2s;
}

.circle:nth-child(3) .outline {
    animation-delay: 1.5s;
}

.circle:nth-child(4) .outline {
    animation-delay: 1.8s;
}

.circle:nth-child(5) .outline {
    animation-delay: 2.1s;
}

@keyframes circle-keys {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes dot-keys {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes outline-keys {
    0% {
        transform: scale(0);
        outline: solid 20px var(--color);
        outline-offset: 0;
        opacity: 1;
    }

    100% {
        transform: scale(1);
        outline: solid 0 transparent;
        outline-offset: 20px;
        opacity: 0;
    }
}

/* Avatar Selector Grid for Profile Page */
.avatar-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.avatar-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.5), 0 2px 8px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    .avatar-option:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.05);
        color: var(--text-main);
    }

    .avatar-option.selected {
        border-color: var(--accent-green);
        background: linear-gradient(135deg, rgba(72, 165, 106, 0.1), rgba(72, 165, 106, 0.02));
        color: var(--accent-green);
        box-shadow: 0 4px 12px rgba(72, 165, 106, 0.3), inset 0 2px 4px rgba(255,255,255,0.5);
        transform: scale(1.05);
    }

/* ==================================================
   UIVERSE PATIENTENLISTE TOGGLE BUTTON
   ================================================== */
.btn-list-toggle {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: 14px;
    font-family: inherit;
    width: 11rem;
    height: 2.6rem;
    margin-right: 10px;
}

    .btn-list-toggle .circle {
        transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
        position: relative;
        display: block;
        margin: 0;
        width: 2.6rem;
        height: 2.6rem;
        background: #64748b;
        border-radius: 1.625rem;
    }

        .btn-list-toggle .circle .icon {
            transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
            position: absolute;
            top: 0;
            bottom: 0;
            margin: auto;
            background: #fff;
        }

            .btn-list-toggle .circle .icon.arrow {
                transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
                left: 0.625rem;
                width: 1.125rem;
                height: 0.125rem;
                background: none;
            }

                .btn-list-toggle .circle .icon.arrow::before {
                    position: absolute;
                    content: "";
                    top: -0.28rem;
                    right: 0.0625rem;
                    width: 0.625rem;
                    height: 0.625rem;
                    border-top: 0.125rem solid #fff;
                    border-right: 0.125rem solid #fff;
                    transform: rotate(45deg);
                }

    .btn-list-toggle .button-text {
        transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 0.55rem 0;
        margin: 0 0 0 1.85rem;
        color: #475569;
        font-weight: 700;
        line-height: 1.6;
        text-align: center;
        font-size: 0.8rem;
        z-index: 10;
        pointer-events: none;
    }

    .btn-list-toggle:hover .circle {
        width: 100%;
    }

        .btn-list-toggle:hover .circle .icon.arrow {
            background: #fff;
            transform: translate(1rem, 0);
        }

    .btn-list-toggle:hover .button-text {
        color: #fff;
    }

    .btn-list-toggle.is-open .circle .icon.arrow {
        transform: rotate(180deg);
        left: 0.85rem;
    }

    .btn-list-toggle.is-open:hover .circle .icon.arrow {
        transform: rotate(180deg) translate(-1rem, 0);
    }

@media (prefers-color-scheme: dark) {
    .btn-list-toggle .button-text {
        color: #cbd5e1;
    }

    .btn-list-toggle:hover .button-text {
        color: #1e293b;
    }

    .btn-list-toggle .circle {
        background: #94a3b8;
    }

        .btn-list-toggle .circle .icon {
            background: #1e293b;
        }

            .btn-list-toggle .circle .icon.arrow::before {
                border-color: #1e293b;
            }

    .btn-list-toggle:hover .circle .icon.arrow {
        background: #1e293b;
    }
}