/* Globální styly pro odkazy */
a {
    color: #6c757d;
    /* Šedá barva textu */
    text-decoration: none;
    /* Bez podtržení */
    border: none;
    /* Žádný rámeček */
    background-color: transparent;
    /* Transparentní pozadí */
    outline: none;
    /* Zabránění modrému rámečku */
}

a:hover,
a:focus,
a:active {
    color: #6c757d;
    /* Šedá barva textu při hover, focus a active */
    background-color: transparent;
    /* Transparentní pozadí */
    text-decoration: none;
    /* Žádné podtržení */
    outline: none;
    /* Zabránění modrému outline */
}

/* Speciální focus styling pro přístupnost (jemný box-shadow) */
a:focus {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    /* Jemný stín kolem elementu při focus */
}

/* Styl pro custom file input */
.custom-file-input:focus~.custom-file-label {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.custom-file-label {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

.custom-file-label::after {
    border-left: 1px solid #ced4da;
    padding-left: 0.75rem;
}

/* Utility třídy pro pozicování */
.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.top-0 {
    top: 0;
}

.end-0 {
    right: 0;
}

/* Styly pro tlačítka */
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-sm {
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}

/* Skrytí obsahu */
.content-div {
    display: none;
}

.content-div.active {
    display: block;
}

/* Styl pro seznamy s návrhy */
.suggestions-list,
#hashtag-suggestions,
#category-suggestions {
    position: absolute;
    width: 100%;
    border: 1px solid #ced4da;
    background-color: #fff;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.suggestions-list div,
#hashtag-suggestions div,
#category-suggestions div {
    padding: 8px;

}

.suggestions-list div:hover,
#hashtag-suggestions div:hover,
#category-suggestions div:hover {
    background-color: #f8f9fa;
}

/* Styly pro hashtagy a kategorie */
#assigned-hashtags-list,
#assigned-categories-list {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#assigned-hashtags-list li,
#assigned-categories-list li {
    margin-right: 10px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    display: flex;
    align-items: center;
}

#assigned-hashtags-list li a,
#assigned-categories-list li a {
    margin-left: 8px;
    color: #dc3545;
    text-decoration: none;
}

#assigned-hashtags-list li a:hover,
#assigned-categories-list li a:hover {
    text-decoration: underline;
}

/* Styly pro autocomplete */
.autocomplete-post {
    background-color: #f8f9fa;
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
}

.autocomplete-user {
    background-color: #ffffff;
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
}

.ui-menu-item a {
    color: #6c757d !important;
    /* Přepíše výchozí modrou barvu */
    text-decoration: none !important;
    /* Zabrání podtržení */
    outline: none !important;
    /* Zabrání modrému outline */
    background-color: transparent !important;
    /* Transparentní pozadí */
    border: none !important;
    /* Žádný rámeček */
}

.ui-menu-item a:hover,
.ui-menu-item a:focus,
.ui-menu-item a:active {
    color: #6c757d !important;
    background-color: transparent !important;
}

.ui-menu-item:focus,
.ui-menu-item:hover {
    outline: none;
}

/* Styl pro dělící čáru */
.autocomplete-divider {
    padding: 0;
    margin: 0;
    border: none;
    border-top: 1px solid #ccc;
    margin: 8px 0;
    text-align: center;
    color: #6c757d;
    font-size: 12px;
}

/* Spinner */
.spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.spinner svg {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Překrytí obrázku */
.post-image {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    /* Obsah bude uspořádán vertikálně */
    justify-content: center;
    align-items: center;
    border-radius: 0.25rem;
    color: #ffffff;
    text-align: center;
    /* Zarovnání textu ve středu */
}

.overlay i.bi-eye-slash {
    color: white;
    font-size: 3rem;
    opacity: 0.8;
}

.overlay-status-stack {
    gap: 0.75rem;
}

.overlay-status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.25;
}

.overlay-status-item span,
.overlay-status-item strong {
    margin-top: 0.25rem;
}

/* Formulářové elementy */
#invoice_creator_form_vatPayer label {
    margin: 0 18px 0 3px;
}

textarea {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Card a button styly */
.card.active {
    background-color: #f0f8ff;
    border-color: #007bff;
}

.card-footer .d-flex {
    align-items: center;
}

.card-footer i {
    margin-right: 8px;
    cursor: pointer;
}

#shareButton::after {
    display: none;
}

/* Dropdown menu */
.dropdown-menu {
    min-width: 150px;
    right: 0;
    left: auto;
}

/* Hashtagy */
.hashtag-container {
    display: flex;
    align-items: center;
}

.hashtag-container label {
    margin-right: 10px;
}

#top-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    padding: 10px;
}

#top-hashtags a {
    display: block;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #f0f0f0;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    word-break: break-word;
}

#top-hashtags a:hover {
    background-color: #e0e0e0;
}

/* Social icons */
.social-icons a {
    display: inline-block;
    margin-right: 10px;
}

.social-icons i {
    margin: 0;
}

.social-icons a:last-child {
    margin-right: 0;
}

/* Kategorie */
.categories a {
    text-decoration: none;
}

.categories a:hover {
    text-decoration: none;
}

/* Uživatelé */
.user-info {
    display: flex;
    align-items: center;
}

.user-info img {
    margin-right: 10px;
}

.user-info p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 66px);
    display: flex;
    align-items: center;
}

/* Responzivní styly */
@media (max-width: 576px) {
    .user-info p {
        font-size: 14px;
        max-width: calc(100% - 56px);
    }
}

/* Plátno pro grafy */
.canvas-pie {
    display: block;
    max-width: 320px;
    margin: 20px auto;
    position: relative;
}

.canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

/* Spinner v overlay */
.spinner-overlay {
    position: relative;
}

.spinner-overlay .spinner-border {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Skrytí prvků */
.hiddenClass {
    display: none;
}

#editor-container {
    display: none;
}

.inline,
#useNick {
    display: inline;
}


.ql-editor {
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    padding: 8px;
}

.square-image {
    object-fit: cover;
    object-position: center;

}


.new-line {
    display: block;
    /* Zajistí zobrazení na novém řádku */
    margin-top: 5px;
    /* Volitelný odstup od ikonky */
}

.btn {
    border-radius: 25px !important;
}

#targetFollowerCount,
#subscriberCount {
    cursor: pointer;
}

#newMessageContent,
#sendMessageModal {
    margin: 0 10px;
}

.user-chat {
    cursor: pointer;
    /* Změní kurzor na ukazatel */
    transition: background-color 0.3s, color 0.3s;
    /* Hladká animace změny barev */
    text-decoration: none;
    /* Odstraní podtržení */
}

.uniform-image {
    width: 130px;
    /* Nastav pevnou šířku */
    height: 130px;
    /* Nastav pevnou výšku */
    object-fit: cover;
    /* Zajistí zachování poměru stran a vyplnění celé oblasti */
    border-radius: 5px;
    /* Lehce zaoblí rohy */
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    gap: 5px;
    font-size: 14px;
    /* Menší text */
}

.pagination span,
.pagination a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0;
    text-decoration: none;
    color: #0d6efd;
    background: none;
    border: none;
    transition: color 0.2s ease-in-out;
}

.pagination a:hover {
    color: #0056b3;
}

.pagination .current {
    font-weight: bold;
    color: #0d6efd;
    pointer-events: none;
}

.pagination .disabled {
    color: #6c757d;
    pointer-events: none;
}

.pagination .first a,
.pagination .last a,
.pagination .previous a,
.pagination .next a {
    font-size: 16px;
    /* O něco větší šipky */
}

.pagination .first a,
.pagination .last a {
    font-weight: bold;
}

.pagination .previous a,
.pagination .next a {
    font-size: 18px;
    /* Zvýraznění šipek */
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer p {
    display: flex;
    align-items: center;
    gap: 5px;
    /* Nastavení mezery mezi prvky */
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.footer span,
.footer a {
    display: inline;
    /* Zabrání blokovému chování */
    white-space: nowrap;
    /* Zabrání zalomení textu */
}

/* Odstranění nechtěné klikací oblasti */
.category-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Odstranění přebytečných marginů, které mohly zvětšit klikací oblast */
.category-name,
.cat-menu a,
.cat-menu i {
    margin: 0 !important;
    padding: 0 !important;
}

/* Oprava odkazu, aby měl správnou velikost */
.cat-menu a {
    display: inline-flex !important;
    /* Ujistí se, že odkaz má správnou velikost */
    align-items: center;
    justify-content: center;
    background: none !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ikony správně zarovnáme a odstraníme hover efekt */
.cat-menu i {
    display: inline-block !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    /* Ujistíme se, že ikony jsou interaktivní */
}

/* Odstranění podbarvení při hoveru */
.category-name:hover,
.category-name:focus,
.cat-menu a:hover,
.cat-menu a:focus,
.cat-menu i:hover,
.cat-menu i:focus {
    background: none !important;
    text-decoration: none !important;
    outline: none !important;
}

/* Zajištění, že kurzor je pouze na správných prvcích */
.category-name {
    cursor: pointer !important;
    /* Kurzor bude pouze na názvu */
}

.cat-menu a,
.cat-menu i {
    cursor: pointer !important;
    /* Kurzor bude pouze na ikonách */
}

.category-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.category-option:hover {
    background-color: #f0f0f0;
    /* nebo jiná barva dle designu */
    border-radius: 4px;
}


.invisibleText {
    color: gray !important;
}

.btn-gift-vip {
    color: rgb(66, 138, 233) !important;
}

.custom-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
}

.active-category-btn,
.active-category-btn:hover {
    color: var(--bs-btn-hover-color) !important;
    background-color: var(--bs-btn-hover-bg) !important;
    border-color: var(--bs-btn-hover-border-color) !important;
}




.panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.playlist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .5rem;
}

.playlist-data {
    display: none;
}

.playlist__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .75rem;
    padding: .5rem .75rem;
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.playlist__item:hover,
.playlist__item:focus {
    background: #f9fafb;
}

.playlist__item.is-active {
    border-color: #60a5fa;
    background: #eff6ff;
}

.playlist__index {
    font-variant-numeric: tabular-nums;
    opacity: .6;
    width: 2ch;
    text-align: right;
}

.playlist__title {
    font-weight: 600;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist__actions {
    display: flex;
    gap: .5rem;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .25rem;
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.attachment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem 0.75rem;
}

/* Karta přílohy */
.attachment-item {
    position: relative;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 0.5rem;
    padding: 0.5rem;
    /* základní odsazení */
    background: #fff;
}

/* Tlačítko mazání v rohu; nezakryje text díky padding-right na názvu */
.attachment-item .delete-image {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    z-index: 2;
}

/* Název souboru – jedna řádka, elipsa, místo pro delete tlačítko */
.attachment-item .attachment-name {
    display: block;
    margin-top: 0.5rem;
    padding-right: 2.25rem;
    /* rezerva pro delete btn vpravo nahoře */
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Volitelné zjemnění náhledu obrázku */
.attachment-item .attachment-thumb,
.uniform-image {
    /* reuse existující třídy u fotek */
    width: 100%;
    height: auto;
    border-radius: 0.35rem;
    display: block;
}

#post-attachments-extra a.text-truncate {
    max-width: 100%;
}
label {
    margin: 3px;
}
/* Spacing for invoice Yes/No radio options */
.invoice-create-invoice-options .form-check {
    margin-right: 1.25rem;
}

