.light-style .menu .app-brand.demo {
    height: 64px;
}

.dark-style .menu .app-brand.demo {
    height: 64px;
}

.firma-avatar{
    max-height:80px;
}

.app-brand-logo.demo {
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    display: -ms-flexbox;
    display: flex;
}

.app-brand-text.demo {
    font-size: 1.75rem;
    letter-spacing: -0.45px;
}

.logo2-brand{
    max-height:50px;
}
.app-brand-link {
    position: relative;
}
/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: 62px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
    z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
    display: block !important;
}

.demo-inline-spacing > * {
    margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
    margin-top: 1.875rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing-lg.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
    margin-top: 5rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing-xl.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.rtl-only {
    display: none !important;
    text-align: left !important;
    direction: ltr !important;
}

[dir='rtl'] .rtl-only {
    display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
    #dropdown-variation-demo .btn-group .text-truncate {
        width: 231px;
        position: relative;
    }

        #dropdown-variation-demo .btn-group .text-truncate::after {
            position: absolute;
            top: 45%;
            right: 0.65rem;
        }
}

.layout-demo-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: 1rem;
}

.layout-demo-placeholder img {
    width: 900px;
}

.layout-demo-info {
    text-align: center;
    margin-top: 1rem;
}

.card-round {
    border-top-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.btn-primary {
    background-color: #4c2bc5;
    border-color: #4c2bc5;
}

    .btn-primary:hover, .btn-primary:active, .btn-primary:focus {
        background-color: #6242e2 !important;
        border-color: #6242e2 !important;
    }
.btn-group .btn-primary, .input-group .btn-primary {
    background-color: #4c2bc5;
    border-color: #4c2bc5;
    border-right: solid #4c2bc5;
    border-left: solid #4c2bc5;
}
.btn-primary.show.dropdown-toggle {
    color: #fff !important;
    background-color: #F12535 !important;
    border-color: #F12535 !important;
}

.letterpic {
    width: 45px;
    height: 45px;
    margin-right: 5px;
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
}
#passwordInput {
    width: 30%;
    display: flex;
    position: relative;
}

    #passwordInput input[type="password"], #passwordInput input[type="text"] {
        width: 100%;
        padding: 10px;
        border: 1px solid lightgrey;
        font-size: 15px;
    }

    #passwordInput #showHide {
        font-size: 12px;
        font-weight: 600;
        position: absolute;
        color: red;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        user-select: none;
    }

#passwordStrength {
    width: 100%;
    height: 5px;
    margin: 5px 0;
    display: none;
}

    #passwordStrength span {
        position: relative;
        height: 100%;
        width: 100%;
        background: lightgrey;
        border-radius: 5px;
    }

        #passwordStrength span:nth-child(2) {
            margin: 0 3px;
        }

        #passwordStrength span.active:before {
            position: absolute;
            content: '';
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            border-radius: 5px;
        }

        #passwordStrength span#poor:before {
            background-color: #ff4757;
        }

        #passwordStrength span#weak:before {
            background-color: orange;
        }

        #passwordStrength span#strong:before {
            background-color: #23ad5c;
        }

#passwordInfo {
    font-size: 15px;
}

    #passwordInfo #poor {
        color: red;
    }

    #passwordInfo #weak {
        color: orange;
    }

    #passwordInfo #strong {
        color: green;
    }
.select2-container .select2-selection--single {
    border-radius: 50rem !important;
}
.light-style .select2-container--default .select2-selection {
    min-height: calc(1.4em + 1.5rem + calc(var(--bs-border-width)* 2));
    padding: 0.4rem 0.75rem;
    font-size: 1.063rem;
}
.light-style .select2-container--default .select2-selection--single .select2-selection__arrow {
    min-height: calc(1.4em + 1.5rem + calc(var(--bs-border-width)* 2)) !important;
}
.w-40{
    width:40% !important;
}
.app-brand-logo img{
  /*  height: 50px;*/
}
.bg-sygn-alert {
    background-color: #1466ff !important;
    color: #f6f6f6 !important;
}
.img-qr{
    height:300px;
}
.min-h50{
    min-height:50px;
}
.min-h100 {
    min-height: 100px;
}
.sygn-page-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*min-height: calc(100vh - 1.875rem* 2);*/
}
.step-content-view {
    min-height: 200px;
}
select[aria-readonly="true"] {
    pointer-events: none;
    opacity: 0.85;
}
input[aria-readonly="true"], label[aria-readonly="true"] {
    pointer-events: none;
    opacity: 0.85;
}
.col-bad {
    font-size: 1.125rem;
}
.action-th{
    max-width:120px !important; 
}
.disable-mod {
    pointer-events: none;
    opacity: 0.5;
}
.disable-mod:hover{
    cursor:not-allowed;
}
.avatar-contact{
    height:162px !important;
    width:162px !important;
}

.bg-default {
    background-image: url("../../../images/bitmapa2.png");
    position: absolute;
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
}
#myModal{
    z-index:99999;
}
.light-style .datepicker-dropdown
{
    z-index:100001 !important;
}
.dtr-bs-modal {
  /*  z-index: 99998 !important;*/
}

.MultiFile-list {
    margin-top: 20px;
    
}

    .MultiFile-list>.MultiFile-label {
        border: 1px solid #d4d8dd;
        padding: 8px;
        border-radius: 30rem !important;
        margin-bottom:10px;
    }

.custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    height: calc(1.25em + 1.5rem + 2px);
    margin-bottom: 0;
}
.custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(1.25em + 1.5rem + 2px);
    margin: 0;
    opacity: 0;
}
.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: calc(1.25em + 1.5rem + 2px);
    padding: .75rem 1rem;
    font-weight: 400;
    line-height: 1.25;
    color: #4e5154;
    background-color: #fff;
    border: 1px solid #babfc7;
    border-radius: .25rem;
}
    .custom-file-label::after {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 3;
        display: block;
        height:100%;
        padding: .75rem 1rem;
        line-height: 1.25;
        color: white;
        content: "Wybierz";
        background-color: #ff7e00;
        border-left: inherit;
        border-radius: 0 1.5rem 1.5rem 0;
    }

#buy-row .form-check {
    min-height:180px;
}
.card-mod{
    padding:20px !important;
}

.menu-item.active.sygn-item > .menu-link:not(.menu-toggle) {
    border: 1px solid #1168aa;
}
.bg-menu-theme .menu-sub > .menu-item.sygn-item > .menu-link:before,
.bg-menu-theme .menu-sub > .menu-item.sygn-item.active > .menu-link:not(.menu-toggle):before {
    background-color: #1168aa !important;
}

.menu-item.active.aml-item > .menu-link:not(.menu-toggle) {
    border: 1px solid #f1ba00;
}

.bg-menu-theme .menu-sub > .menu-item.aml-item > .menu-link:before,
.bg-menu-theme .menu-sub > .menu-item.aml-item.active > .menu-link:not(.menu-toggle):before {
    background-color: #f1ba00 !important;
}

.menu-item.active.rodo-item > .menu-link:not(.menu-toggle) {
    border: 1px solid #e57100;
}

.bg-menu-theme .menu-sub > .menu-item.rodo-item > .menu-link:before,
.bg-menu-theme .menu-sub > .menu-item.rodo-item.active > .menu-link:not(.menu-toggle):before,
.bg-menu-theme .menu-item .menu-item.rodo-item > .menu-toggle::before {
    background-color: #e57100 !important;
}
.bg-menu-theme .menu2 > .menu-item > .menu-link:before {
    content: none !important;
}
.table-fixed {
    table-layout: fixed;
}
.table-td-fixed {
    word-wrap: break-word;
}
#selectPodmiotGroup .position-relative {
    flex: 1 1 auto; /* pozwala rosnąć */
    width: 1% !important; /* resetuje inline width: 100% */
    min-width: 0; /* żeby nie wybuchało przy małych ekranach */
}

#selectPodmiotGroup .select2-selection {
    height: 100%; /* dopasowanie do input-group */
}

#selectPodmiotGroup .select2-container .select2-selection {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.app-start-logo img
{
    max-height:55px;
}

.ml-0{
    margin-left:5px !important;
}

/* Chat Content Scrollable */
/* Kontener nadrzędny */
.chat-container {
    position: relative;
    height: 100vh; /* Możesz zmienić na 100% jeśli jest wewnątrz innego diva */
    display: flex;
    flex-direction: column;
    background-color: #f8f9fb;
}

/* Przewijany obszar wiadomości */
.chat-messages-scroll {
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Odstęp pod wiadomościami */
.chat-spacer {
    height: 120px;
}

/* PŁYWAJĄCY PASEK (Kluczowe ustawienia) */
.floating-input-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 0 30px 0;
    /* Półprzezroczysty gradient, aby tekst znikał pod paskiem */
    background: linear-gradient(to top, #f8f9fb 60%, transparent 100%);
    pointer-events: none; /* Pozwala klikać w wiadomości pod spodem, jeśli nie są pod kapsułą */
}

    .floating-input-bar .container-xxl {
        pointer-events: auto; /* Przywraca klikalność samego paska */
    }

/* Kapsuła inputu */
.input-capsule {
    background: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    max-width: 850px;
    margin: 0 auto;
    padding: 8px 15px;
}

    .input-capsule input:focus {
        box-shadow: none;
        outline: none;
    }

/* Elementy UI */
.user-bubble {
    background-color: #e9ecef;
    border-radius: 20px 20px 4px 20px;
    padding: 12px 20px;
    color: #4b5563;
}

.ai-main-card {
    background: white;
    border-radius: 24px;
    max-width: 900px;
}

.source-item {
    min-width: 200px;
    transition: 0.2s;
}

.btn-purple-send {
    background-color: #5d5ce6;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-purple-send:hover {
        background-color: #4b4acf;
    }



.floating-input-container {
    padding: 20px 0 30px 0;
    background: linear-gradient(to top, #ffffff 70%, rgba(255, 255, 255, 0) 100%);
}

/* Główna "pigułka" */
.input-capsule-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px; /* Pełne zaokrąglenie pigułki */
    display: flex;
    align-items: center;
    max-width: 900px; /* Dopasowanie do szerokości kart wiadomości */
    margin: 0 auto;
    padding: 6px 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .input-capsule-wrapper:focus-within {
        border-color: #5d5ce6;
        box-shadow: 0 10px 20px rgba(93, 92, 230, 0.1) !important;
    }

/* Stylizacja inputa wewnątrz pigułki */
.message-input {
    font-size: 0.95rem;
    color: #343a40;
    flex-grow: 1;
}

    .message-input::placeholder {
        color: #adb5bd;
    }

/* Okrągły przycisk wysyłania (fioletowy) */
.btn-send-pill {
    background-color: #5d5ce6; /* Oryginalny kolor TaxSense */
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

    .btn-send-pill:hover {
        background-color: #4b4acf;
        transform: scale(1.05);
    }

/* Mały tekst pod polem */
.text-muted-xs {
    font-size: 11px;
    color: #9ca3af;
}

/* Ikony Boxicons */
.text-muted {
    color: #9ca3af !important;
}

/* Styl bąbelka użytkownika - jasny szary, wyrównany do prawej */
.user-bubble {
    background-color: #f1f4f9 !important;
    color: #2d3748 !important;
    border-radius: 18px 18px 4px 18px !important;
    border: none !important;
    padding: 10px 16px !important;
    max-width: 80%;
}

.card-current-plan {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.pricing-card {
    transition: transform 0.3s ease;
    border: none;
    border-radius: 12px;
}

    .pricing-card:hover {
        transform: translateY(-5px);
    }

.plan-featured {
    border: 2px solid #0d6efd !important;
}

/* Styl bąbelka AI - biały z cieniem, zaokrąglony */
.ai-bubble {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px 18px 18px 18px !important;
    color: #4a5568 !important;
    line-height: 1.6;
}

/* Karty źródeł */
.source-card {
    transition: transform 0.2s;
    border: 1px solid #edf2f7 !important;
}

    .source-card:hover {
        transform: translateY(-2px);
        border-color: #5d5ce6 !important;
    }

/* Formatowanie treści wewnątrz odpowiedzi AI */
.ai-content-body p {
    margin-bottom: 1rem;
}

.ai-content-body ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.ai-content-body strong {
    color: #1a202c;
}

/* Przewijanie poziome źródeł */
.gap-2 {
    gap: 0.5rem !important;
}

.overflow-auto::-webkit-scrollbar {
    height: 4px;
}

.overflow-auto::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

/*
    CSS Chat
*/
.chat-container {
    background-color: #F9FAFB; /* Jasnoszare tło strony, aby białe karty AI były widoczne */
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.chat-history {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
    list-style: none;
    scrollbar-width: thin;
}

/* --- WIADOMOŚCI UŻYTKOWNIKA ("JA") --- */
.user-bubble-ts {
    background-color: #F3F4F6 !important; /* Szary kolor z Twojego screena */
    color: #374151;
    padding: 12px 24px;
    border-radius: 24px 4px 24px 24px; /* Zaokrąglenie specyficzne dla użytkownika */
    display: inline-block;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.5;
    border: none;
}

/* --- WIADOMOŚCI AI (KARTA TAXSENSE) --- */
.ai-bubble-ts {
    background-color: #FFFFFF !important; /* Białe tło karty */
    border: 1px solid #E5E7EB !important; /* Delikatna obwódka */
    border-radius: 20px !important;
    padding: 24px 32px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin-top: 8px;
}

.ai-text-content {
    color: #374151;
    font-size: 1rem;
    line-height: 1.7;
}

    .ai-text-content p {
        margin-bottom: 1rem;
    }

    .ai-text-content ul {
        padding-left: 1.25rem;
        margin-bottom: 1rem;
    }

    .ai-text-content li {
        margin-bottom: 0.5rem;
    }

    .ai-text-content strong {
        color: #111827;
        font-weight: 700;
    }

/* --- SEKCJA ŹRÓDEŁ I PRZYPISÓW --- */
.sources-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: none; /* Dopasowane do obrazka */
}

.source-card-ts {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 220px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s;
}

    .source-card-ts:hover {
        transform: translateY(-2px);
        border-color: #5d5ce6;
    }

.source-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
}

.source-link {
    font-size: 0.75rem;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

/* --- PŁYWAJĄCY INPUT (PIGUŁKA) --- */
.chat-history-footer {
    padding: 20px 0 30px 0;
    background: linear-gradient(to top, #F9FAFB 70%, rgba(249, 250, 251, 0) 100%);
}

.input-capsule-wrapper {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 50px;
    display: flex;
    align-items: center;
    max-width: 850px;
    margin: 0 auto;
    padding: 6px 10px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

    .input-capsule-wrapper:focus-within {
        border-color: #5d5ce6;
    }

.message-input {
    flex-grow: 1;
    border: none !important;
    background: transparent !important;
    padding: 8px 15px;
    outline: none;
    font-size: 0.95rem;
}

/* --- PRZYCISKI I AVATARY --- */
.btn-send-pill {
    background-color: #5d5ce6;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

    .btn-send-pill:hover {
        background-color: #4b4acf;
    }

.user-avatar img {
    object-fit: cover;
    border: 1px solid #E5E7EB;
}

.text-muted {
    color: #9CA3AF !important;
}

/* --- DODATKI --- */
.gap-3 {
    gap: 1rem !important;
}

.overflow-auto::-webkit-scrollbar {
    height: 4px;
}

.overflow-auto::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    border-radius: 10px;
}

.chat-item {
    cursor: pointer;
    font-size: 0.9rem;
    color: #4b4b4b;
    transition: background 0.2s;
}

    .chat-item:hover {
        background-color: #f8f9fa;
    }

.active-chat {
    font-weight: 500;
    color: #000;
}

.border-transparent {
    border-color: transparent !important;
}
/* Ukrywanie scrollbara dla czystego wyglądu */
.sidebar-body::-webkit-scrollbar {
    width: 4px;
}

.sidebar-body::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}

.message-input:disabled {
    cursor: not-allowed;
    color: #a0a0a0;
}

.btn-send-pill:disabled {
    cursor: not-allowed;
    background-color: #e9ecef; /* Delikatne zszarzenie */
    color: #adb5bd;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

    .typing-dots span {
        width: 7px;
        height: 7px;
        background-color: #6c757d;
        border-radius: 50%;
        display: inline-block;
        animation: typing-bounce 1.4s infinite ease-in-out both;
    }

        .typing-dots span:nth-child(1) {
            animation-delay: -0.32s;
        }

        .typing-dots span:nth-child(2) {
            animation-delay: -0.16s;
        }

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

.zrodlo-item {
    background-color: #DFE1E2;
    border-radius: 15px;
}