#header.alt2 {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 980px) {
    #header.alt2 {
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
}

    #header.alt2 > a:hover, #header.alt2 > a:focus {
        color: #ffffff;
    }

    #header.alt2 > a[href="#menu"] {
        border-left: 1px solid rgba(255, 255, 255, 0.25);
    }

        #header.alt2 > a[href="#menu"]:hover, #header.alt2 > a[href="#menu"]:focus {
            background-color: rgba(255, 255, 255, 0.065);
        }


/* Modal close button - X v pravém horním rohu */
.modal .close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    z-index: 1000000 !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
}

.modal .close:hover {
    color: #ff0000;
    transform: scale(1.2);
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

/* Removed - using updated .modal-content img styles below */

/* Obrázek v článku */
img.modal-trigger {
    cursor: pointer; /* Změní ukazatel myši na klikací ruku */
    transition: transform 0.2s ease-in-out; /* Jemný efekt při hoveru */
}

img.modal-trigger:hover {
    transform: scale(1.05); /* Zvýraznění při hoveru */
}



/* Obrázek v článku (a jako odkaz) */
img.modal-trigger {
    cursor: pointer; /* Změní ukazatel myši na klikací ruku */
    transition: transform 0.2s ease-in-out; /* Jemný efekt při hoveru */
}

img.modal-trigger:hover {
    transform: scale(1.05); /* Zvýraznění při hoveru */
}

/* Removed - using updated .modal-content img styles below */






/* Obal pro obrázky */
 .image.fit {
    position: relative;
    overflow: hidden;
}

/* Obrázky v bannerech a kartách */
.image.fit img {
    display: block;
    width: 100%;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    transform-origin: center;
}

/* Efekt zoom + fade-out při najetí myší */
.image.fit img:hover {
    transform: scale(1.08);
}

.model-container {
    position: relative; /* Kontejner má relativní pozici, aby se načítací animace umístila správně uvnitř */
    max-height: 500px;
    min-height: 500px !important;
    width: 100%;
    display: block; /* Ensure container takes space immediately */
}

/* Entity count styling */
.entity-count {
    display: inline-block;
   
    color: #000000;
    padding: 0px 0px;
    border-radius: 2px;
    font-size: 0.8em;
    font-weight: n
    ormal;
    margin-left: 0px;
    vertical-align: middle;
}

/* Entity type tabs styling */
.tabs > li > h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tabs > li > h3 .entity-count {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 500;
    margin-left: 12px;
}

.edit-model-container {
    position: relative; /* Kontejner má relativní pozici, aby se načítací animace umístila správně uvnitř */
    max-height: 500px;
    min-height: 500px !important;
    width: 100%;
    display: block; /* Ensure container takes space immediately */
}

/* Edit container specific styles */
[id^="edit-container-"] {
    position: relative;
    max-height: 500px;
    min-height: 500px !important;
    width: 100%;
    display: block;
    overflow: hidden;
    box-sizing: border-box;
}

/* Canvas element inside edit container */
[id^="edit-container-"] canvas {
    width: 100% !important;
    height: 500px !important;
    display: block !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}



.loading-animation {
    position: absolute; /* Načítací animace bude umístěna relativně vůči rodičovskému kontejneru */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 10;
}

/* Pokud chceš například rotující kolečko místo textu */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-animation::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 5px solid #fff;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #3498db; /* Modrá barva */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.custom-modal {
    margin: 0 auto; /* Zarovnání na střed zleva a zprava */
    max-width: 600px; /* Maximální šířka okna */
    margin-top: 80px; /* Odsazení od horního okraje */
}

/* Globální šedivá barva pro všechny odkazy */
a {
    color: #6c757d !important;
    text-decoration: none;
}

a:hover {
    color: #495057 !important;
    text-decoration: underline;
}

.float-end {
    float: right; /* Zarovnání tlačítka doprava */
}

.is-invalid {
    border-color: #dc3545;
}
.invalid-feedback {
    color: #dc3545;
    margin-top: 0.25rem;
}

button:disabled {
    cursor: not-allowed;
    
    opacity: 0.25;
}

/* Form Button Layout - ModelView forms */
form .btn[type="submit"], 
form .btn[data-bs-dismiss="modal"] {
    display: inline-block;
    margin: 5px;
}

/* Ensure buttons are in the same row */
form .btn[type="submit"] {
    margin-right: 10px;
}

form .btn[data-bs-dismiss="modal"] {
    margin-left: 0;
}

.flash-messages {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
}

.alert {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
    position: relative;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert .close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 1.2em;
    line-height: 1;
    cursor: pointer;
    color: #0c3d24;      /* Tmavší odstín zelené – upravte dle potřeby */
}

.alert .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 1.2em;
    line-height: 1;
    cursor: pointer;
    color: #0c3d24;
    padding: 0.5rem;
    z-index: 2;
}

.alert .btn-close:hover {
    color: #000;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-dismissing {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.alert-dismissible {
    padding-right: 3rem;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 0.5rem 1rem;
}


.flash-messages .alert {
    transition: opacity 0.5s ease-in-out; /* Plynulé zmizení */
}

.modal-body {
    max-height: calc(100vh - 200px); /* Přizpůsobte dle potřeby */
    overflow-y: auto; /* Přidání vertikálního rolování */
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap; /* Zajištění přizpůsobení na menší obrazovkách */
}



    .modal {
        display: none;
        position: fixed;
        z-index: 999999 !important;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: rgba(0, 0, 0, 0.95);
        align-items: center;
        justify-content: center;
    }
    
    .modal[style*="flex"] {
        display: flex !important;
    }

    .modal-imag .modal-body {
        display: flex;
        justify-content: center;
        align-items: center;
        max-height: calc(100vh - 60px); /* Výška modálního okna s odečtením paddingu */
        overflow-y: auto;
    }
    
    .modal-imag img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 8px;
    }

    /* Styly pouze pro obrázkové modály - nepoužívat pro Bootstrap modály */
    .modal.image-modal .modal-content {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        background: rgba(0, 0, 0, 0.9) !important;
        border: none !important;
        box-shadow: none !important;
        z-index: 999999 !important;
    }
    
    .modal.image-modal .modal-content img {
        width: 100vw !important;
        height: 100vh !important;
        object-fit: contain !important;
        display: block;
        border: none;
        box-shadow: none;
        cursor: pointer;
    }

    /* Styly pro Bootstrap modály - světlé a centrované */
    .modal.fade .modal-dialog {
        transition: transform 0.3s ease-out;
        transform: translate(0, -50px);
    }
    
    .modal.show .modal-dialog {
        transform: none;
    }
    
    .modal-dialog-centered {
        display: flex;
        align-items: center;
        min-height: calc(100% - 1rem);
    }
    
    .modal-content {
        background-color: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-radius: 0.3rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        position: relative;
        width: 100%;
        pointer-events: auto;
    }
    
    .modal-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding: 1rem 1rem;
        border-bottom: 1px solid #dee2e6;
        border-top-left-radius: calc(0.3rem - 1px);
        border-top-right-radius: calc(0.3rem - 1px);
        background-color: #f8f9fa;
    }
    
    .modal-title {
        margin-bottom: 0;
        line-height: 1.5;
        color: #212529;
    }
    
    .modal-body {
        position: relative;
        flex: 1 1 auto;
        padding: 1rem;
        background-color: #ffffff;
    }
    
    .modal-footer {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        padding: 0.75rem;
        border-top: 1px solid #dee2e6;
        border-bottom-right-radius: calc(0.3rem - 1px);
        border-bottom-left-radius: calc(0.3rem - 1px);
        background-color: #f8f9fa;
    }
    
    .modal-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1040;
        width: 100vw;
        height: 100vh;
        background-color: #000;
        opacity: 0.5;
    }
    
    .modal-backdrop.fade {
        opacity: 0;
    }
    
    .modal-backdrop.show {
        opacity: 0.5;
    }




/* Výchozí nastavení (mobilní zobrazení) */
table.responsive-table .extra-column {
    display: none; /* Skryje další sloupce */
}

/* Pro větší obrazovky (nad 768px) */
@media (min-width: 768px) {
    table.responsive-table .extra-column {
        display: table-cell; /* Zobrazí další sloupce */
    }
}

/* Pro ještě větší obrazovky (nad 1200px) */
@media (min-width: 1200px) {
    table.responsive-table .extra-column {
        display: table-cell;
    }
}

/* Pro velké obrazovky (nad 1500px) */
@media (min-width: 768px) {
    /* Menu positioning for large screens */
    #menu {
        top: 65px !important;
    }
    
    /* Keep scrollbar visible when menu is open */
    body.is-menu-visible {
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Prevent scrolling by disabling pointer events on body content */
    body.is-menu-visible #page-wrapper {
        pointer-events: none !important;
    }
    
    /* Re-enable pointer events for menu */
    body.is-menu-visible #menu {
        pointer-events: auto !important;
    }
    
    /* Make menu scrollable */
    #menu {
        overflow-y: auto !important;
        max-height: calc(100vh - 65px) !important;
    }
}

/* Pro velké obrazovky (nad 1500px) */
@media (min-width: 1200px) {
    /* Menu positioning for large screens */
    #menu {
        top: 70px !important;
    }
    
    /* Keep scrollbar visible when menu is open */
    body.is-menu-visible {
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Prevent scrolling by disabling pointer events on body content */
    body.is-menu-visible #page-wrapper {
        pointer-events: none !important;
    }
    
    /* Re-enable pointer events for menu */
    body.is-menu-visible #menu {
        pointer-events: auto !important;
    }
    
    /* Make menu scrollable */
    #menu {
        overflow-y: auto !important;
        max-height: calc(100vh - 70px) !important;
    }
}

/* Pro velké obrazovky (nad 1500px) */
@media (min-width: 1684px) {
    /* Menu positioning for large screens */
    #menu {
        top: 80px !important;
    }
    
    /* Keep scrollbar visible when menu is open */
    body.is-menu-visible {
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Prevent scrolling by disabling pointer events on body content */
    body.is-menu-visible #page-wrapper {
        pointer-events: none !important;
    }
    
    /* Re-enable pointer events for menu */
    body.is-menu-visible #menu {
        pointer-events: auto !important;
    }
    
    /* Make menu scrollable */
    #menu {
        overflow-y: auto !important;
        max-height: calc(100vh - 80px) !important;
    }
}
.specification-item .fa {
    cursor: pointer;
    margin-right: 10px; /* Přidá mezeru mezi ikonami */
}

.specification-item i:last-child {
    margin-right: 0; /* Odstraní mezeru u poslední ikony */
}


#uploadModal {
    display: none; /* Skryté při načtení stránky */
}




/* Překryvné pozadí */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Poloprůhledné černé pozadí */
    z-index: 999;
}

/* Obsah modálního okna */
.custom-modal-content {
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    max-width: 1024px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10002;
}

/* Zavírací tlačítko */
.custom-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    z-index: 10003;
   
}

.custom-modal-close:hover {
    color: #666;
}

/* Formulář uvnitř modálu */
.custom-modal-field {
    margin-bottom: 15px;
}

.custom-modal-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.image-modal-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Celá šířka obrazovky */
    height: 100vh; /* Celá výška obrazovky */
    background: rgba(0, 0, 0, 0.9); /* Tmavé pozadí */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100002;
    padding: 0;
    overflow: hidden; /* Zabrání přetékání */
}

.image-modal-content img {
    width: 100vw; /* Zabere celou šířku */
    height: 100vh; /* Zabere celou výšku */
    object-fit: contain; /* Zachování poměru stran */
    border-radius: 0; /* Odstranění zaoblených rohů */
    cursor: zoom-in; /* Kurzor indikující možnost zoomu */
    transition: transform 0.4s ease-in-out;
}




/* Zavírací tlačítko */
.image-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    z-index: 10003;
   
}

.image-modal-close:hover {
    color: #666;
}


.image-modal-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown button (vlajka) */
.dropbtn {
    color: #3d4449;
    background-color: transparent;
    padding: 10px;
    text-decoration: none !important; /* Odstraní podtržení */
    border: none; /* Zajistí, že tam není žádný rámeček */
    display: inline-block; /* Zabrání dědičnosti textového stylu */
    cursor: pointer;
    font-size: 24px; /* Zvětšení ikony vlajky */
}



/* Dropdown obsah (menu s jazyky) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #eff1f2;
    min-width: 140px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 100;

    /* Posunutí menu přímo pod vlajku a zarovnání doleva */
    left: 50%;  
    top: 100%; 
    transform: translateX(-50%); /* Posune menu doleva */
}

/* Dropdown odkazy */
.dropdown-content a {
    color: #3d4449;
    padding: 10px 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px; /* Mezera mezi vlajkou a textem */
}

/* Zobrazí dropdown menu při najetí myší */
.dropdown:hover .dropdown-content {
    display: block;
}
.entity-card {
    height: 270px; /* nebo podle potřeby */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* Název entity */
.entity-card h2, .entity-card h3 {
    max-height: 4.2em;
    text-align: center;
    overflow: hidden;
    margin: 5px 0 10px 0;
    font-size: 1.2rem;
    line-height: 1.2;
    white-space: normal;
    display: block;
}


/* Obrázek */
.entity-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.entity-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: opacity 0.3s ease-in-out;
}

/* Efekt při najetí myší */
.entity-image-wrapper:hover .entity-image {
    opacity: 0.3;
}



.banner-image {
    width: 100%;  /* Use 100% instead of 100vw to prevent overflow */
    height: 100vh; /* 100% výšky viewportu */
    object-fit: cover; /* Ořízne obrázek tak, aby pokryl celý prostor */
    display: block; /* Odstraní bílé mezery pod obrázkem */
    top: 0;
    left: 0;
    max-width: 100%; /* Ensure image doesn't exceed container width */
}



.preview-image {
    max-width: 100%; /* Obrázek bude mít maximální šířku dostupného prostoru */
    max-height: 300px; /* Zvýšení maximální výšky */
    border-radius: 8px; /* Zaoblené rohy */
    object-fit: cover; /* Zachování proporcí a oříznutí */
}


/* Plynulý posun */
html {
    scroll-behavior: smooth;
}


.scroll-down {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff !important;
    border-color: #ffffff !important;
    transition: all 0.3s ease;
}

.scroll-down:hover {
    color: #cccccc !important;
    border-color: #cccccc !important;
    transform: translateX(-50%) translateY(-5px);
}




.box {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    background-color: white !important;
    margin-bottom: 0.8rem !important;
}

/* Hlavní nadpis entity H1 - tlustší border */
.box .row .col-12 > h1.entity-main-title {
    padding: 0.25rem 1rem 0.25rem 1rem;
    background-color: #f8f9fa;
    border-left: 8px solid #adb5bd;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-weight: bold;
}

/* Informační text o typu a tvůrci */
.box .row .col-12 > p.entity-info {
    padding: 0.25rem 1rem 0.25rem 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid #adb5bd;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
}

/* Nadpis karty v šedivém boxu - v col-12 */
.box .row .col-12 > h2 {
    padding: 0.25rem 1rem 0.25rem 1rem !important;
    background-color: #f8f9fa !important;
    border-left: 4px solid #adb5bd !important;
    margin: 0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

/* Nadpis karty přímo v boxu (pro starou strukturu) */
.box > h2 {
    padding: 0.25rem 1rem 0.25rem 1rem !important;
    background-color: #f8f9fa !important;
    border-left: 4px solid #adb5bd !important;
    margin: 0 0 1rem 0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

/* Mezera mezi řádky v kartě */
.box > .row {
    margin-bottom: 1rem;
}

.box > .row:last-child {
    margin-bottom: 0;
}

/* Formátování textového obsahu v entity kartách - pouze pro text, ne specifikace */
.box .row {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-left: 0 !important;
}

.box .row > div[class*="col-"] {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

/* Responsive - na mobilech a menších obrazovkách zobrazit pod sebou */
@media screen and (max-width: 980px) {
    .box .row {
        flex-direction: column !important;
    }
    
    .box .row > div[class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem;
    }
    
    .box .row > div[class*="col-"]:last-child {
        margin-bottom: 0;
    }
    
    /* Obrázek na mobilu vyplní výšku boxu */
    .box .row .model-container {
        min-height: 400px;
        width: 100% !important;
        display: block !important;
    }
    
    /* Přepsání inline stylů pro mobily */
    .box .row .model-container .image img {
        width: auto !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* 3D modely na mobilech - zajistit správné rozměry ihned při načtení */
    .box .row .model-container[id^="model-container-"] {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
        width: 100% !important;
        overflow: hidden;
    }
    
    /* Edit kontejnery na mobilech */
    .box .row [id^="edit-container-"] {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
        width: 100% !important;
        overflow: hidden;
    }
    
    /* Canvas element inside model container - zajistit okamžité zobrazení */
    .box .row .model-container[id^="model-container-"] canvas {
        width: 100% !important;
        height: 400px !important;
        display: block !important;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Canvas element inside edit container - zajistit okamžité zobrazení */
    .box .row [id^="edit-container-"] canvas {
        width: 100% !important;
        height: 400px !important;
        display: block !important;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Special fixes for iOS devices (Safari and Chrome on iOS) */
@supports (-webkit-touch-callout: none) {
    .box .row .model-container[id^="model-container-"] {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
    }
    
    .box .row .model-container[id^="model-container-"] canvas {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        position: relative;
        width: 100% !important;
        height: 400px !important;
        min-height: 400px !important;
    }
    
    /* Ensure regular model containers also have proper height on iOS */
    .model-container {
        height: 400px !important;
        min-height: 400px !important;
    }
    
    /* Ensure edit containers also have proper height on iOS */
    [id^="edit-container-"] {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
    }
    
    [id^="edit-container-"] canvas {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        position: relative;
        width: 100% !important;
        height: 400px !important;
        min-height: 400px !important;
    }
}

.box .row > div[class*="col-"] > p {
    flex: 1;
    padding: 0.25rem 1rem 0.25rem 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid #adb5bd;
    line-height: 1.8;
    text-align: justify;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Specifikace (ul) v boxu se šedivými kuličkami */
.box .row > div[class*="col-"] > ul {
    flex: 1;
    padding: 0.25rem 1rem 0.25rem 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid #adb5bd;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem 1rem;
    column-gap: 2rem;
}

.box .row > div[class*="col-"] > ul > li {
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.box .row > div[class*="col-"] > ul > li::before {
    content: "●";
    color: #adb5bd;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
}

/* Vnořené seznamy */
.box .row > div[class*="col-"] > ul > li > ul {
    margin-top: 0.5rem;
    padding-left: 1rem;
    list-style: none;
}

.box .row > div[class*="col-"] > ul > li > ul > li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.25rem;
}

.box .row > div[class*="col-"] > ul > li > ul > li::before {
    content: "○";
    color: #adb5bd;
    font-size: 1em;
    position: absolute;
    left: 0;
    top: 0;
}

/* Obrázek/model container - zabalený do boxu */
.box .row .model-container {
    flex: 1;
    padding: 0.25rem 0 0.25rem 0;
    background-color: #f8f9fa;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.box .row .model-container .image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s ease;
}

.box .row .model-container .image:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(0.98);
}

.box .row .model-container .image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-sizing: border-box;
    transition: all 0.3s ease;
}


.box .row .model-container .image:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Malý náhledový obrázek v EditEntityCard */
.image-preview-small {
    display: inline-block;
}

.image-preview-small .image {
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-preview-small .image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.image-preview-small .image img {
    border-radius: 4px;
    transition: all 0.3s ease;
}

.box2 {
    display: flex;
    align-items: stretch; /* Každá karta bude mít stejnou výšku */
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    width: 100%;

    margin-bottom: 1rem;

}


.box2 p {
flex: 1; /* Text se přizpůsobí dostupnému prostoru */
font-size: 1.1rem;
line-height: 1.6;
text-align: justify;
}

    .box2 > :last-child {
        margin-bottom: 0;
    }

    .box2.alt2 {
        border: 0;
        border-radius: 0;
        padding: 0;
    }

.box2 {
    border-color: rgba(99, 116, 133, 0.25);
}

.box3 {
    display: flex;
    flex-direction: column; /* Obsah bude pod sebou */
    align-items: stretch; /* Každá karta bude mít stejnou výšku */
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    width: 100%;
    margin-bottom: 1rem;
}


.major2 h1 {
    margin-bottom: 0rem !important;
    padding-bottom: 0rem !important;
}

.major2 h3 {
    margin-bottom: 0rem !important;
    padding-bottom: 0rem !important;
}


.wrapper.style {
    background: #dbdbdb !important;
}
.wrapper.style:before, .wrapper.style:after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 0,100 100,100' style='fill:%23dbdbdb%3B' /%3E%3C/svg%3E") !important;
    z-index: 2;
}

.wrapper.style2 {
    background: #e2e2e2;
}

.wrapper.style3 {
    background: #ffffff;
}

.wrapper.style2:before, .wrapper.style2:after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 0,100 100,100' style='fill:%23e2e2e2%3B' /%3E%3C/svg%3E");
    z-index: 2;
}


.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Dynamické sloupce */
    gap: 2rem; /* Mezera mezi kartami */
    margin: 0 0 2rem 0;
    width: 100%;
    justify-content: center;
    align-items: start; /* Zarovnání obsahu nahoře */
}

/* Cookie banner styl */
#cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(34, 34, 34, 0.9); /* 90% neprůhlednost */
  color: #fff;
  padding: 25px 10px;
  text-align: center;
  z-index: 1000;
  display: none;
}

/* Bílé průhledné tlačítko */
.button.transparent-white {
  background: rgba(255, 255, 255, 0.8);
  color: #000;
  border: none;
  transition: background 0.3s ease;
}

.button.transparent-white:hover {
  background: rgba(255, 255, 255, 1);
  color: #000;
}

/* Language Dropdown Switcher Styles */
.language-dropdown {
    position: relative;
    display: inline-block;
    margin: 5px 0;
}

.language-dropdown-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 4px 8px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    min-width: auto;
    width: auto;
    justify-content: space-between;
    white-space: nowrap;
}

.language-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.language-dropdown-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.current-language {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    color: #fff;
    font-size: 13px;
}

.dropdown-arrow {
    font-size: 8px;
    transition: transform 0.3s ease;
    color: #fff;
}

.language-dropdown-btn[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 3px;
    min-width: 120px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
    right: 0;
    left: auto;
}

.language-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.language-option.current {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
    color: #fff;
}

.language-option .language-name {
    font-size: 13px;
    font-weight: 400;
    flex: 1;
    color: #fff;
}

/* Flag icon styling */
.language-option .fi {
    font-size: 16px;
    margin-right: 8px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.current-language .fi {
    font-size: 18px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Center flag icons in dropdown options */
.language-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

/* Scrollbar styling for dropdown */
.language-dropdown-menu::-webkit-scrollbar {
    width: 4px;
}

.language-dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.language-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.language-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive design */
@media (max-width: 768px) {
    .language-dropdown {
        margin: 3px 0;
    }
    
    .language-dropdown-btn {
        padding: 3px 6px;
        font-size: 12px;
        min-width: auto;
    }
    
    .language-dropdown-menu {
        max-height: 250px;
        left: -10px;
        right: -10px;
        min-width: 100px;
    }
    
    .language-option {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .language-option .fi {
        font-size: 14px;
    }
    
    .current-language {
        font-size: 12px;
    }
    
    .current-language .fi {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .language-dropdown-btn {
        padding: 2px 5px;
        font-size: 11px;
    }
    
    .language-dropdown-menu {
        max-height: 200px;
        left: -15px;
        right: -15px;
        min-width: 90px;
    }
    
    .language-option {
        padding: 4px 6px;
        font-size: 11px;
    }
    
    .language-option .fi {
        font-size: 12px;
    }
    
    .current-language {
        font-size: 11px;
    }
    
    .current-language .fi {
        font-size: 14px;
    }
}

/* Header adjustments for language dropdown */
#header .language-dropdown {
    margin: 8px 0;
}

#header.alt .language-dropdown,
#header.alt2 .language-dropdown {
    margin: 5px 0;
}

/* Header scroll effect - make it gray and semi-transparent when scrolling */
#header.scrolled,
#header.alt.scrolled,
#header.alt2.scrolled {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10001 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#header.scrolled > .logo a,
#header.alt.scrolled > .logo a,
#header.alt2.scrolled > .logo a {
    color: #ffffff !important;
}

#header.scrolled > a,
#header.alt.scrolled > a,
#header.alt2.scrolled > a {
    color: #ffffff !important;
}

#header.scrolled > a:hover,
#header.scrolled > a:focus,
#header.alt.scrolled > a:hover,
#header.alt.scrolled > a:focus,
#header.alt2.scrolled > a:hover,
#header.alt2.scrolled > a:focus {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Světlejší logo text a MENU text pro normální header */
#header > .logo a,
#header > .logo a span {
    color: #aaaaaa !important;
}

#header > a[href="#menu"],
#header > a[href="#menu"] span {
    color: #aaaaaa !important;
}

#header > a[href="#menu"]:hover,
#header > a[href="#menu"]:focus,
#header > a[href="#menu"]:hover span,
#header > a[href="#menu"]:focus span {
    color: #888888 !important;
}

/* Pro alt header (homepage banner) - už má světlou barvu, ale můžeme ještě zesvětlit */
#header.alt > .logo a,
#header.alt > .logo a span {
    color: rgba(255, 255, 255, 0.95) !important;
}

#header.alt > a[href="#menu"],
#header.alt > a[href="#menu"] span {
    color: rgba(255, 255, 255, 0.95) !important;
}

#header.alt > a[href="#menu"]:hover,
#header.alt > a[href="#menu"]:focus,
#header.alt > a[href="#menu"]:hover span,
#header.alt > a[href="#menu"]:focus span {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Animation for dropdown items */
.language-option {
    opacity: 0;
    transform: translateX(-10px);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger animation for multiple items */
.language-option:nth-child(1) { animation-delay: 0.05s; }
.language-option:nth-child(2) { animation-delay: 0.1s; }
.language-option:nth-child(3) { animation-delay: 0.15s; }
.language-option:nth-child(4) { animation-delay: 0.2s; }
.language-option:nth-child(5) { animation-delay: 0.25s; }
.language-option:nth-child(6) { animation-delay: 0.3s; }
.language-option:nth-child(7) { animation-delay: 0.35s; }
.language-option:nth-child(8) { animation-delay: 0.4s; }
.language-option:nth-child(9) { animation-delay: 0.45s; }
.language-option:nth-child(10) { animation-delay: 0.5s; }
.language-option:nth-child(11) { animation-delay: 0.55s; }
.language-option:nth-child(12) { animation-delay: 0.6s; }
.language-option:nth-child(13) { animation-delay: 0.65s; }
.language-option:nth-child(14) { animation-delay: 0.7s; }
.language-option:nth-child(15) { animation-delay: 0.75s; }
.language-option:nth-child(16) { animation-delay: 0.8s; }
.language-option:nth-child(17) { animation-delay: 0.85s; }
.language-option:nth-child(18) { animation-delay: 0.9s; }
.language-option:nth-child(19) { animation-delay: 0.95s; }
.language-option:nth-child(20) { animation-delay: 1s; }
.language-option:nth-child(21) { animation-delay: 1.05s; }
.language-option:nth-child(22) { animation-delay: 1.1s; }
.language-option:nth-child(23) { animation-delay: 1.15s; }
.language-option:nth-child(24) { animation-delay: 1.2s; }
.language-option:nth-child(25) { animation-delay: 1.25s; }
.language-option:nth-child(26) { animation-delay: 1.3s; }
.language-option:nth-child(27) { animation-delay: 1.35s; }
.language-option:nth-child(28) { animation-delay: 1.4s; }
.language-option:nth-child(29) { animation-delay: 1.45s; }
.language-option:nth-child(30) { animation-delay: 1.5s; }
.language-option:nth-child(31) { animation-delay: 1.55s; }

/* Focus styles for accessibility */
.language-option:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .language-dropdown-btn {
        border-width: 2px;
        background: rgba(0, 0, 0, 0.8);
        color: #fff;
    }
    
    .language-dropdown-menu {
        border-width: 2px;
        background: rgba(0, 0, 0, 0.95);
    }
    
    .language-option {
        border-bottom-width: 2px;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .language-dropdown-btn,
    .language-dropdown-menu,
    .language-option,
    .dropdown-arrow {
        transition: none;
        animation: none;
    }
}

/* Creator Profile Styles */
.creator-profile {
    min-height: 100vh;
}

.cover-section {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.profile-header {
    position: relative;
    margin-top: -80px;
    z-index: 10;
}

.avatar-container {
    position: relative;
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.profile-info {
    padding-left: 2rem;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.profile-motto {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
}

.social-youtube:hover { background-color: #ff0000; }
.social-instagram:hover { background-color: #e4405f; }
.social-twitter:hover { background-color: #1da1f2; }
.social-facebook:hover { background-color: #1877f2; }
.social-linkedin:hover { background-color: #0077b5; }
.social-github:hover { background-color: #333; }
.social-discord:hover { background-color: #5865f2; }

.profile-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.profile-about {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.youtube-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.profile-support {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: auto;  /* Automatická výška podle obsahu */
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.project-type {
    margin-bottom: 0.5rem;
}

.project-date {
    margin-bottom: 0;
}

/* Creator link styling */
.creator-link {
    color: #6c757d !important;  /* Šedá barva */
    text-decoration: underline !important;  /* Podtržení */
    transition: color 0.2s ease !important;
}

.creator-link:hover {
    color: #495057 !important;  /* Tmavší šedá při hover */
    text-decoration: underline !important;
}

/* Active filter button styling */
.filter-btn.active {
    background: rgba(128, 128, 128, 0.3) !important;
    border-color: rgba(128, 128, 128, 0.5) !important;
}

/* Entity card specific styles - same as homepage */
.entity-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.entity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.entity-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Entity card text alignment - same as homepage */
.entity-card .project-info {
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.5rem;
}

.entity-card h3.project-title {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.entity-card .project-username {
    text-align: left;
    color: #333 !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
}

.entity-card .project-username small.text-muted {
    font-size: 0.9rem !important;
    color: #333 !important;
    font-weight: 600 !important;
    display: inline;
}

.entity-card .project-username small.text-muted a.creator-link {
    display: inline;
}

.entity-card .project-date {
    text-align: left;
    color: #666 !important;
    margin-bottom: 0 !important;
}

.entity-card .project-date small.text-muted {
    font-size: 0.8rem !important;
    color: #666 !important;
    font-weight: 400 !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .profile-header .row {
        text-align: center;
    }
    
    .profile-info {
        padding-left: 0;
        margin-top: 1rem;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Social Links Manager Styles */
.social-links-manager {
    margin-bottom: 1rem;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-link-item:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.social-link-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.social-link-platform {
    flex: 0 0 120px;
}

.social-link-platform select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
}

.social-link-url {
    flex: 1;
}

.social-link-url input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.social-link-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 5px;
}

.social-link-actions button {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-link-actions .btn-move {
    background-color: #6c757d;
    color: white;
    cursor: move;
}

.social-link-actions .btn-move:hover {
    background-color: #5a6268;
}

.social-link-actions .btn-delete {
    background-color: #dc3545;
    color: white;
}

.social-link-actions .btn-delete:hover {
    background-color: #c82333;
}

.add-social-link-section {
    margin-top: 15px;
    text-align: center;
}

.add-social-link-section button {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-social-link-section button:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.social-link-item.empty {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
}

/* Drag and drop styles */
.social-links-container.drag-over {
    background-color: #e3f2fd;
    border: 2px dashed #2196f3;
}

.social-link-item.drag-over {
    border-color: #2196f3;
    background-color: #e3f2fd;
}

/* Responsive design for social links */
@media (max-width: 768px) {
    .social-link-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .social-link-platform,
    .social-link-url,
    .social-link-actions {
        flex: none;
    }
    
    .social-link-actions {
        justify-content: center;
    }
}

/* Accordion Styles for Translations */
.accordion {
    margin-bottom: 2rem;
}

.accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    background-color: #f8f9fa;
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #495057;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.accordion-button:not(.collapsed) {
    background-color: #e9ecef;
    color: #212529;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.2s ease-in-out;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-body {
    padding: 1.25rem;
    background-color: #fff;
}

/* Badge styles for accordion headers */
.accordion-button .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000;
}

.badge.bg-success {
    background-color: #198754 !important;
    color: #fff;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000;
}

/* Global controls styling */
#expandAllBtn, #collapseAllBtn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

#expandAllBtn:hover, #collapseAllBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Table styling within accordions */
.accordion-body .table {
    margin-bottom: 0;
}

.accordion-body .table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.accordion-body .table td {
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

/* Editable field styling */
.accordion-body .editable {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.accordion-body .editable:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Save button styling */
.accordion-body .save-btn {
    transition: all 0.2s ease-in-out;
}

.accordion-body .save-btn:hover {
    transform: scale(1.1);
}

.accordion-body .save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Status row styling */
.table-warning {
    background-color: #fff3cd !important;
}

.table-info {
    background-color: #d1ecf1 !important;
}

.table-success {
    background-color: #d4edda !important;
    transition: background-color 0.5s ease-in-out;
}

/* Temporary success state with animation */
.table-success.temp-success {
    background-color: #d4edda !important;
    animation: successPulse 0.5s ease-in-out;
}

@keyframes successPulse {
    0% { background-color: #d4edda; }
    50% { background-color: #c3e6cb; }
    100% { background-color: #d4edda; }
}

/* Responsive design for accordions */
@media (max-width: 768px) {
    .accordion-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
    
    .accordion-body .table {
        font-size: 0.875rem;
    }
    
    .accordion-body .editable {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Menu positioning - override default centering for full-width panel */
#menu {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#menu .inner {
    margin: 0 !important;
    transform: none !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    background: rgba(96, 96, 96, 0.75) !important;
    border-radius: 0 !important;
    padding: 2rem !important;
    overflow-y: auto;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Menu content layout */
.menu-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.menu-section {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.menu-section h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: none;
}

.menu-section .links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.menu-section .links li {
    padding: 0;
}

.menu-section .links li a {
    display: block;
    padding: 1rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    letter-spacing: 0.05rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.menu-section .links li a:hover,
.menu-section .links li a:focus,
.menu-section .links li a:visited {
    text-decoration: none !important;
    color: #ffffff !important;
}

.menu-section .links li a:hover {
    background: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    text-shadow: none !important;
}

/* Close Menu Button - styled exactly like other menu items */
.menu-close-links {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.menu-close-links li {
    padding: 0;
}

.menu-close-button {
    display: block;
    padding: 1rem 1.5rem;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500 !important;
    letter-spacing: 0.05rem !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
    text-transform: uppercase !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
    font-size: inherit !important;
    font-family: inherit !important;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    /* Reset browser default button styles */
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.menu-close-button:hover,
.menu-close-button:focus {
    text-decoration: none !important;
    color: #000000 !important;
    background: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    text-shadow: none !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    letter-spacing: 0.05rem !important;
    font-size: inherit !important;
    font-family: inherit !important;
}

/* Ensure menu appears correctly when visible */
body.is-menu-visible #menu .inner {
    transform: none !important;
    opacity: 1 !important;
}

/* Remove padding-top from page-wrapper for Entity pages */
body:has(.banner-image) #page-wrapper {
    padding-top: 0 !important;
}

/* Reduce spacing after banner on default entity page */
body:has(.banner-image) #main.wrapper.style {
    margin-top: -1rem !important;
    padding-top: 2rem !important;
}

/* Small menu in top right corner */
#menu {
    position: fixed !important;
    top: 80px ;
    right: 0 !important;
    left: auto !important;
    width: 300px !important;
    height: auto !important;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: none !important;
    padding: 0 !important;
    z-index: 1000 !important;
}

#menu .inner {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    position: relative !important;
}

.menu-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    background: transparent !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1rem !important;
}

.menu-section {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    padding: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.menu-section h3 {
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05rem !important;
}

.menu-section .links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
}

.menu-section .links li {
    padding: 0 !important;
}

.menu-section .links li a {
    display: block !important;
    padding: 0.5rem 0.75rem !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid transparent !important;
    font-weight: 400 !important;
    letter-spacing: 0.02rem !important;
    font-size: 0.9rem !important;
}

.menu-section .links li a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.menu-close-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 1rem 0 !important;
}

.menu-close-button {
    display: block !important;
    padding: 0.5rem 0.75rem !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-weight: 500 !important;
    letter-spacing: 0.05rem !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    font-family: inherit !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.menu-close-button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

/* Mobile responsive design */
@media screen and (max-width: 768px) {
    /* Mobile menu positioning */
    #menu {
        top: 50px !important;
        right: 10px !important;
        width: 280px !important;
        border-radius: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .menu-content {
        padding: 0.5rem 0;
        gap: 0.75rem;
    }
    
    .menu-section {
        padding: 0.75rem;
    }
    
    .menu-section h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .menu-section .links {
        gap: 0.2rem;
    }
    
    .menu-section .links li a {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .menu-close-button {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
    
    /* Smaller language button for mobile */
    .language-dropdown-btn {
        width: 30px !important;
        height: 30px !important;
        padding: 0.25rem !important;
    }
    
    .current-language {
        font-size: 1rem !important;
    }
    
    /* Keep scrollbar visible when menu is open */
    body.is-menu-visible {
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Prevent scrolling by disabling pointer events on body content */
    body.is-menu-visible #page-wrapper {
        pointer-events: none !important;
    }
    
    /* Re-enable pointer events for menu */
    body.is-menu-visible #menu {
        pointer-events: auto !important;
    }
    
    /* Make menu scrollable */
    #menu {
        overflow-y: auto !important;
        max-height: calc(100vh - 50px) !important;
    }
}

@media screen and (max-width: 480px) {
    .menu-section h3 {
        font-size: 1rem;
    }
    
    .menu-section .links li a {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .menu-close-button {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* ============================================ */
/* PERFORMANCE OPTIMIZATIONS */
/* ============================================ */

/* GPU acceleration for form elements */
select, .form-select, .form-control, input[type="text"], 
input[type="number"], textarea {
    will-change: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

/* Optimize dropdowns specifically */
select:focus, .form-select:focus {
    will-change: border-color, box-shadow;
}

/* Optimize modal transitions */
.modal, .modal-dialog {
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
}

/* Optimize table rendering */
.table {
    contain: layout style;
}

/* Optimize buttons */
.btn:hover, button:hover {
    transform: translateZ(0);
}

/* ============================================ */
/* Entity Button Styles - Reusable CSS */
/* ============================================ */
.entity-title-link {
    color: #0d6efd;
    text-decoration: none;
    cursor: pointer;
    padding: 10px 14px;
    background: #e7f1ff;
    border: 1px solid #b6d4fe;
    border-radius: 4px;
    font-weight: 500;
    display: block;
    width: 100%;
    transition: all 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: left;
    line-height: 1.6;
    box-sizing: border-box;
    min-height: auto;
    height: auto;
}

.entity-title-link:hover {
    color: #fff;
    background: #0d6efd;
    border-color: #0d6efd;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Table column width constraints for entity tables */
.entity-table td:nth-child(1) {
    max-width: 250px;
    width: 250px;
}

.entity-table td:nth-child(2) {
    width: 150px;
}

.entity-table td:nth-child(3) {
    width: 120px;
}

.entity-table td:nth-child(4) {
    width: 80px;
}

.entity-table td:nth-child(5) {
    max-width: 400px;
}

.entity-table td:nth-child(6) {
    width: 100px;
}

/* Responsive adjustments for entity tables */
@media (max-width: 768px) {
    .entity-table td:nth-child(1) {
        max-width: 200px;
        width: 200px;
    }
    
    .entity-table td:nth-child(5) {
        max-width: 250px;
    }
}

/* Banner title styling */
.banner-title {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4) !important;
    padding: 2rem 0 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    width: 100% !important;
}

.banner-title h1 {
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 6rem !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive banner title */
@media screen and (max-width: 768px) {
    .banner-title {
        padding: 1.5rem 0 !important;
    }
    
    .banner-title h1 {
        font-size: 2rem !important;
    }
}

@media screen and (max-width: 480px) {
    .banner-title {
        padding: 1rem 0 !important;
    }
    
    .banner-title h1 {
        font-size: 1.5rem !important;
    }
}
