* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #FCFCFD;
    color: #333;
    min-height: 100vh;
    display: flex;
    position: relative;
    font-weight: 300;
}

body.dark-mode {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 220px;
    height: 100vh;
    background-color: #FCFCFD;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    color: #333;
}
h1,h2,h3,h4 {
    font-weight: 400;
}
body.dark-mode nav {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

span.logo {
    font-size: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 30px;
}

span.logo img {
    width: 100%;
    margin-right: 10px;
}

.nav-content {
    width: 100%;
    padding: 0px 15px;
}

.menu {
    width: 100%;
}

.menu-item {
    width: 100%;
    border: none;
    font-size: 16px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 30px;
    margin-top: 5px;
    background-color: transparent;
    position: relative;
}

.menu-item.active {
    color: #ff8c00;
    background-color: #ff8c0020;
}

.menu-item:hover {
    background-color: #f5f5f5;
}

body.dark-mode .menu-item:hover {
    background-color: #3c3c3c;
}

.menu-icon {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.socials {
    display: none;
    position: absolute;
    right: 2rem;
    top:2rem;
    display: flex;
    align-items: center;
}

.social-icon {
    height: 20px;
    width: 20px;
    margin: 0rem 0.5rem;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 0.7;
}

.wallet-section {
    width: 100%;
    margin-top: auto;
    display: flex;
    padding: 5px 15px;
    flex-direction: column;
    align-items: center;
}

.wallet-section button {
    width: 100%;
    border: none;
    font-size: 16px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    border-radius: 30px;
    margin-top: 15px;
    background-color: transparent;
}
.wallet-section button img {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}
.wallet-section button:hover {
    background-color: #f5f5f5;
}

body.dark-mode .wallet-section button:hover {
    background-color: #3c3c3c;
}

.wallet-address {
    font-size: 12px;
    color: #969696;
    margin-top: 20px;
}

#connect-wallet {
    background-color: #333;
    color: #fff;
    margin-top: 5px;
    justify-content: center;
}

body.dark-mode #connect-wallet {
    background-color: #757575;
}

.main-content {
    margin-left: 220px;
    width: calc(100% - 220px);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tab-content {
    min-width: 760px;
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.tab-content.active {
    display: flex;
}

.upload-box {
    border: 1px dashed #bdbdbd;
    border-radius: 10px;
    padding: 100px 45px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s;
    position: relative;
}

body.dark-mode .upload-box {
    background-color: #2c2c2c;
    border-color: #757575;
}

.upload-box:hover {
    border-color: #9e9e9e;
}

body.dark-mode .upload-box:hover {
    border-color: #616161;
}

.upload-box.drag-over {
    border-color: #9e9e9e;
    animation: pulse 1s infinite;
}

body.dark-mode .upload-box.drag-over {
    border-color: #616161;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.upload-box p {
    font-size: 1.2rem;
    color: #757575;
}

body.dark-mode .upload-box p {
    color: #b0bec5;
}

.upload-box img.icon {
    width: 20px;
    height: 20px;
    margin-bottom: 15px;
}

.preview-container {
    width: 50%;
    display: none;
    flex-direction: column;
    align-items: center;
    position: relative;
}

body.dark-mode .preview-container {
    background-color: #2c2c2c;
}

.preview-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
}

.upload-new-btn {
    padding: 0.5rem 1rem;
    background-color: #757575;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

body.dark-mode .upload-new-btn {
    background-color: #616161;
}

.upload-new-btn:hover {
    background-color: #616161;
}

body.dark-mode .upload-new-btn:hover {
    background-color: #757575;
}

.result-around {
    width: 50%;
}

.image-around {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
#image-input {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
}
.prompt-section {
    width: 100%;
    max-width: 600px;
    height: auto;
    padding: 4px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333;
    display: none;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-top: 35px;
    flex-wrap: wrap;
}

body.dark-mode .prompt-section {
    background-color: #2c2c2c;
    border-color: #757575;
}

.prompt-section input[type="text"] {
    background-color: transparent;
    border:none;
    border-radius: 4px;
    font-size: 14px;
    width: 70%;
    height: 100%;
    padding: 4px 15px;
    color: #333;
    box-sizing: border-box;
}

body.dark-mode .prompt-section input[type="text"] {
    color: #e0e0e0;
    border-color: #444;
    background-color: #333;
}

.prompt-section input[type="text"]:focus {
    border-color: #9e9e9e;
    outline: none;
}

body.dark-mode .prompt-section input[type="text"]:focus {
    border-color: #616161;
}
#generate-tab .image-around {
    flex-direction: column;
}
.prompt-section .settings-trigger {
    border-radius: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    position: absolute;
    right: 48px;
}
.prompt-section .settings-trigger img {
    width: 18px;
    height: 18px;
}
body.dark-mode .prompt-section .settings-trigger {
    border: 1px solid #ddd;
}

.prompt-section .settings-trigger:hover {
    background-color: #f5f5f5;
}

body.dark-mode .prompt-section .settings-trigger:hover {
    background-color: #444;
}

.prompt-section .settings-trigger svg {
    width: 16px;
    height: 16px;
}

.prompt-section .settings-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    width: 250px;
    z-index: 1000;
    margin-top: 5px;
}

body.dark-mode .prompt-section .settings-dropdown {
    background-color: #2c2c2c;
    border-color: #444;
}

.prompt-section .setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.prompt-section .setting-item label {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

body.dark-mode .prompt-section .setting-item label {
    color: #bbb;
}

.prompt-section .setting-item .lucide-circle-help {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.prompt-section .setting-item .lucide-circle-help:hover {
    opacity: 1;
}

.prompt-section .setting-item select,
.prompt-section .setting-item input[type="text"] {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    padding: 5px;
    color: #333;
    width: 100px;
    height: 30px;
}

body.dark-mode .prompt-section .setting-item select,
body.dark-mode .prompt-section .setting-item input[type="text"] {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
}

.prompt-section .setting-item input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 5px;
    background: #ddd;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-left: 10px;
}

.prompt-section .setting-item input[type="range"]:hover {
    opacity: 1;
}

.prompt-section .setting-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #333;
    cursor: pointer;
    border-radius: 50%;
}

body.dark-mode .prompt-section .setting-item input[type="range"]::-webkit-slider-thumb {
    background: #fff;
}

.prompt-section .setting-item input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #333;
    cursor: pointer;
    border-radius: 50%;
}

body.dark-mode .prompt-section .setting-item input[type="range"]::-moz-range-thumb {
    background: #fff;
}

.prompt-section .setting-item span#safety-value {
    font-size: 14px;
    margin-left: 10px;
    color: #333;
}

body.dark-mode .prompt-section .setting-item span#safety-value {
    color: #e0e0e0;
}

.prompt-section button {
    padding: 0;
    background-color: #ff8c0020;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 4px;
    top: 4px;
}

body.dark-mode .prompt-section button {
    background-color: #616161;
}

.prompt-section button img {
    width: 20px;
    height: 20px;
}

.prompt-section button:hover {
    background-color: #616161;
}

body.dark-mode .prompt-section button:hover {
    background-color: #757575;
}

.tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1001;
    white-space: nowrap;
    pointer-events: none;
}

body.dark-mode .tooltip {
    background-color: #fff;
    color: #333;
}

.result-container {
    width: 100%;
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.result-image-container {
    flex: 1;
    width: 50%;
    padding: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 500px;
    background-color: #ffffff;
    border-radius: 10px;
}

body.dark-mode .result-image-container {
    background-color: #2c2c2c;
}

.preview-container:after {
    content: url('https://img.icons8.com/ios-filled/50/cccccc/right--v1.png');
    position: absolute;
    top: 50%;
    right: 0%;
    transform: translateX(50%);
    z-index: 1;
}

body.dark-mode .preview-container:after {
    content: url('https://img.icons8.com/ios-filled/50/ffffff/right--v1.png');
}

.result-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
}

.download-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

body.dark-mode .download-btn {
    border-color: #757575;
}

.download-btn img {
    width: 20px;
    height: 20px;
}

.download-btn:hover {
    background-color: #9e9e9e;
}

body.dark-mode .download-btn:hover {
    background-color: #616161;
}

.loading-container {
    margin-top: 2rem;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 10px;
}

body.dark-mode .loading-container {
    background-color: #2c2c2c;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #bdbdbd;
    border-top: 4px solid #9e9e9e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

body.dark-mode .spinner {
    border-color: #757575;
    border-top-color: #616161;
}

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

.status-text {
    font-size: 1rem;
    color: #757575;
}

body.dark-mode .status-text {
    color: #b0bec5;
}

.progress-bar-container {
    width: 100%;
    max-width: 500px;
    height: 8px;
    background-color: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #9e9e9e;
    width: 0;
    transition: width 0.3s ease-in-out;
}

.progress-bar.animate-progress {
    animation: simulate-progress 5s infinite;
}

@keyframes simulate-progress {
    0% { width: 0%; }
    50% { width: 80%; }
    100% { width: 100%; }
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #757575;
    color: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    display: none;
    z-index: 1000;
}

body.dark-mode .notification {
    background-color: #616161;
}

p.quote {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 35px;
    font-size: 1.1rem;
    color: #424242;
}

body.dark-mode p.quote {
    color: #b0bec5;
}
p.quote img {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}
.gallery-container {
    margin-top: 2rem;
    width: 100%;
    display: none;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    justify-content: center;
    padding: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: #fff;
}

body.dark-mode .gallery-item {
    background-color: #2c2c2c;
}

.gallery-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}
.gallery-prompt {
    font-size: 11px;
    padding-bottom: 5px;
}
.gallery-image:hover {
    transform: scale(1.01);
}

.gallery-download-btn {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

body.dark-mode .gallery-download-btn {
    border-color: #757575;
}

.gallery-download-btn:hover {
    background-color: #ffffff1a;
}

body.dark-mode .gallery-download-btn:hover {
    background-color: #616161;
}

.gallery-download-btn img {
    width: 18px;
    height: 18px;
}

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

.modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #bdbdbd;
    border-radius: 8px;
    width: 70%;
    max-width: 500px;
    text-align: center;
    color: #333;
}

body.dark-mode .modal-content {
    background-color: #2c2c2c;
    border-color: #757575;
}

.close {
    color: #757575;
    float: right;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

body.dark-mode .close {
    color: #b0bec5;
}

.close:hover,
.close:focus {
    color: #616161;
    text-decoration: none;
}

body.dark-mode .close:hover,
body.dark-mode .close:focus {
    color: #9e9e9e;
}

.accordion {
    width: 100%;
    max-width: 600px;
}

.accordion-item {
    margin-bottom: 10px;
}

.accordion-header {
    width: 100%;
    padding: 10px;
    background-color: #f5f5f5;
    border: 1px solid #bdbdbd;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s;
}

body.dark-mode .accordion-header {
    background-color: #2c2c2c;
    border-color: #757575;
    color: #e0e0e0;
}

.accordion-header:hover {
    background-color: #e0e0e0;
}

body.dark-mode .accordion-header:hover {
    background-color: #3c3c3c;
}

.accordion-content {
    display: none;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #bdbdbd;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

body.dark-mode .accordion-content {
    background-color: #2c2c2c;
    border-color: #757575;
    color: #e0e0e0;
}

.accordion-item.active .accordion-content {
    display: block;
}

@media (max-width: 768px) {
    .main-content {
        margin-top: 120px;
    }
    .upload-box {
        max-width: 100%;
        padding: 50px 20px;
    }
    .preview-container, .result-around {
        width: 100%;
        padding: 20px;
    }
    .prompt-section {
        max-width: 100%;
    }
    .result-image-container {
        width: 100%;
        max-width: 100%;
    }
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 sloupce na mobilu */
    }
    .gallery-image {
        max-width: 150px;
        max-height: 150px;
    }
    nav {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem;
    }
    .menu {
        display: flex;
        flex-direction: row;
    }
    .menu-item {
        margin: 0 0.5rem;
        padding: 5px 10px;
    }
    .socials {
        position: static;
        flex-direction: row;
        margin-top: 1rem;
    }
    .wallet-section {
        flex-direction: row;
        padding: 0;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .accordion-header {
        padding: 5px;
    }
    .accordion-content {
        padding: 5px;
    }
    .prompt-section .settings-dropdown {
        width: 200px;
    }
}

.prompt-section .custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.prompt-section .custom-checkbox-input {
    display: none; /* Skryjeme původní checkbox */
}

.prompt-section .custom-checkbox-label {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    transition: background-color 0.3s, border-color 0.3s;
}

body.dark-mode .prompt-section .custom-checkbox-label {
    border-color: #444;
    background-color: #333;
}

.prompt-section .custom-checkbox-input:checked + .custom-checkbox-label {
    background-color: #ff8c00; /* Oranžové pozadí po zaškrtnutí */
    border-color: #ff8c00;
}

.prompt-section .checkbox-icon {
    width: 12px;
    height: 12px;
    opacity: 0; /* Skrytá výchozí ikona */
    transition: opacity 0.3s;
}

.prompt-section .custom-checkbox-input:checked + .custom-checkbox-label .checkbox-icon {
    opacity: 1; /* Zobrazí ikonu po zaškrtnutí */
}

body.dark-mode .prompt-section .custom-checkbox-input:checked + .custom-checkbox-label .checkbox-icon {
    filter: brightness(0) invert(0); /* Bílá ikona na oranžovém pozadí v dark mode */
}

 .docs-content {
            max-width: 760px;
            padding: 20px;
        
        }

        body.dark-mode .docs-content {
            background-color: #2c2c2c;
        }

        .docs-content h2 {
            font-size: 1.8rem;
            margin-bottom: 25px;
            padding-bottom: 5px;
        }

        body.dark-mode .docs-content h2 {
            color: #e0e0e0;
        }

        .docs-content h3 {
            font-size: 1.5rem;
            color: #555;
            margin: 20px 0 10px;
        }

        body.dark-mode .docs-content h3 {
            color: #b0bec5;
        }

        .docs-content p {
            margin: 25px 0;
            text-indent: 20px;
            line-height: 1.6;
        }

        .docs-content ul, .docs-content ol {
            margin: 10px 0 10px 0px;
            padding-left: 20px;
        }

        .docs-content li {
            margin-bottom: 25px;
            padding-left: 10px;
        }

        .docs-content strong {
        }

        body.dark-mode .docs-content strong {
            color: #ff8c00;
        }

      #help-tab p {
        max-width: 760px;
        text-align: center;
      }  

      #help-tab a {
        text-decoration: underline;
        color:inherit;
      }

      /* Styly pro ukázkovou sekci */
.example-section {
    width: 100%;
    margin: 20px 0;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.dark-mode .example-section {
    background-color: #333;
}
.example-section h3 {
    margin-top: 45px;
    margin-bottom: 25px;
}
.example-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 20px;
}

.example-item {
    text-align: center;
    width: 100%;
    margin-bottom: 35px;
}

.example-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
}

.example-prompt {
    font-size: 0.9rem;
    color: #666;
    padding: 5px 10px;
    background-color: #fff;
    border-radius: 5px;
    display: inline-block;
    width: 100%;
}

body.dark-mode .example-prompt {
    color: #b0bec5;
    background-color: #444;
}

@media (max-width: 768px) {
    .example-row {
        flex-direction: column;
        gap: 10px;
    }
    .example-item {
        max-width: 100%;
    }
}