﻿.toggle-container {
    display: flex;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 4px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 400px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 10px;
}

.toggle-option {
    position: relative;
    margin: 0;
    width: 49%;
    align-content: center;
    align-self: center;
}

    .toggle-option input[type="radio"] {
        display: none;
    }

    .toggle-option label {
        display: flex;
        align-items: center;
        padding: 8px 16px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        background-color: transparent;
        color: #666;
        font-weight: 500;
        user-select: none;
        margin-bottom: 0px;
        justify-content: center;
    }

        .toggle-option label::before {
            content: '';
            margin-right: 8px;
            width: 16px;
            height: 16px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
        }

    /* Ikona osoby dla Klient */
    .toggle-option:first-child label::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    }

    /* Ikona budynku dla Firma */
    .toggle-option:last-child label::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z'/%3E%3C/svg%3E");
    }

    .toggle-option input[type="radio"]:checked + label {
        background-color: white;
        color: #333;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    }

        .toggle-option input[type="radio"]:checked + label::before {
            filter: brightness(0.2);
        }

    .toggle-option label:hover {
        background-color: rgba(255, 255, 255, 0.5);
    }
