#header.alt2 {
    background-color: #dbdbdb;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    color: #1d1d1d;
    position: absolute;
}

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

    #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 obsah */
.modal-content {
    position: relative;
    width: auto; /* Automatická šířka podle obsahu */
    height: auto; /* Automatická výška podle obsahu */
    padding: 1%; /* Odstranění paddingu */
    box-sizing: border-box; /* Zachování vnitřní struktury */
    background-color: #fff; /* Barva pozadí rámečku */
    border-radius: 8px; /* Zaoblení rohů */
    overflow: hidden; /* Zabraňuje přetékání obsahu */
    margin: auto;
}

/* Obrázek v modálu */
.modal-content img.modal-image {
    width: 100%; /* Obrázek vyplní celý prostor */
    height: auto;
    max-height: 94%; /* Maximální výška obrázku */
    object-fit: contain; /* Zajišťuje, že obrázek zůstane v poměru */
    border-radius: 8px; /* Mírně zaoblené rohy */
    cursor: pointer; /* Změní ukazatel myši na klikací ruku */
}

/* 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 */
}

/* Obrázek v modálu jako odkaz */
.modal-content img.modal-image {
    cursor: pointer; /* Klikací ukazatel pro obrázek v modálu */
}






/* 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;
}

/* 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ř */
}



.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 */
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8); /* Zatmavení pozadí */
}

.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: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 10002;
    }

    .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;
    }

    .modal-content img {
        max-width: 100vw;
        max-height: 100vh;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }




/* 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;
    }
}



.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 {
    min-height: 4.2em;     /* Rezerva pro tři řádky */
    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: 100vw;  /* 100% šířky viewportu */
    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;
}


.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: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff !important;
    border-color: #ffffff !important;
}




.box {

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    background-color: white !important;
 

}

.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;
}

.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;
}

/* 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));
    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;
}

.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;
    }
}
