.content-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1700px; /* Zväčšená maximálna šírka */
    margin: 0 auto;
    padding: 20px;
}

.side-column {
    flex: 0 0 25%; /* Zmenšené z 30% na 22% */
    min-width: 250px; /* Mierne zmenšená minimálna šírka */
}

.main-content {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
    width: 56%; /* Garantuje širší stredný stĺpec */
}

/* Zabezpečenie, aby tabuľky využívali celú šírku stĺpca */
.card table {
    width: 100%;
    table-layout: fixed;
}

.card table th,
.card table td {
    padding: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Optimalizácia pre tabuľky v strednom stĺpci */
.main-content .card table th,
.main-content .card table td {
    padding: 10px;
    font-size: 14px;
}

/* Zabezpečenie, že obsah kariet v strednom stĺpci má dostatok miesta */
.main-content .card {
    margin-bottom: 20px;
    width: 100%;
}

/* Responzívne prispôsobenie pre menšie obrazovky */
@media (max-width: 1400px) {
    .content-wrapper {
        padding: 10px;
    }
    
    .side-column {
        flex: 0 0 20%;
        min-width: 200px;
    }
}

.card-content.always-open {
    display: block !important; /* Sekcia je vždy zobrazená */
}

.card-header.no-toggle {
    cursor: default; /* Zmení kurzor na neinteraktívny */
}

/* Štýly pre novú navigáciu */
.nav-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    background: white;
    margin: 20px auto;
    max-width: 800px;
}
.nav-item {
    padding: 10px 30px;
    border: 2px solid #1a73e8;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}
.nav-item:hover {
    background-color: #e8f0fe;
}
.nav-item.active {
    background-color: #1a73e8;
    color: white;
}

/* Štýly pre skrývanie/zobrazovanie sekcií */
.content-section {
    display: none;
}
.content-section.active {
    display: block;
}

.custom-width {
    width: 70%;          /* Nastav podľa potreby, napr. 70% alebo viac */
    max-width: 1000px;   /* Maximálna šírka stĺpca pre lepšie zobrazenie na širokých obrazovkách */
    margin: 0 auto;      /* Zarovnanie na stred */
}

/* Vylepšené vyhľadávacie pole */
.search-form {
    width: 100%;
    margin: 10px auto;
}

.search-wrapper {
    display: flex;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-right: none;
    font-size: 16px;
    outline: none;
    border-radius: 6px 0 0 6px;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #1a73e8;
}

.search-button {
    padding: 12px 25px;
    background-color: #1a73e8;
    color: white;
    border: none;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #0d62c9;
}








/* Štýl pre samostatný obrázok trhu - úplne bez rámčeka */
.standalone-market-image {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border: none;
    box-shadow: none;
    padding: 0;
    background: none;
}













.offer-container {
    margin-top: 15px;
    width: 100%;
}

.offer-form-inline {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.offer-header-inline {
    display: flex;
    align-items: center;
    margin-right: 15px;
    color: #1a73e8;
    font-weight: bold;
}

.offer-header-inline i {
    margin-right: 8px;
    color: #1a73e8;
}

.offer-input-group {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.offer-input {
    flex-grow: 1;
    margin-right: 10px;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    max-width: 150px;
}

.offer-button {
    display: flex;
    align-items: center;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.offer-button:hover {
    background-color: #1557b0;
}

.offer-button i {
    margin-right: 5px;
}

@media (max-width: 600px) {
    .offer-form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .offer-header-inline {
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .offer-input-group {
        flex-direction: column;
    }
    
    .offer-input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
        max-width: none;
    }
    
    .offer-button {
        width: 100%;
    }
}















/* Vylepšené vyhľadávacie okno pre Word Market */
#wordmarket-section .search-box {
    display: flex;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    position: relative;
}

#wordmarket-section .search-box input[type="text"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: 2px solid #1a73e8;
    border-right: none;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#wordmarket-section .search-box input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(26, 115, 232, 0.2);
}

#wordmarket-section .search-box button {
    padding: 12px 25px;
    background-color: #1a73e8;
    color: white;
    border: 2px solid #1a73e8;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wordmarket-section .search-box button:hover {
    background-color: #0d62c9;
}

#wordmarket-section .search-box button i {
    margin-right: 5px;
}

/* Animácia pre fokus */
@keyframes searchFocus {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

#wordmarket-section .search-box input[type="text"]:focus {
    animation: searchFocus 0.5s ease;
}

/* Responzívne úpravy */
@media (max-width: 768px) {
    #wordmarket-section .search-box {
        flex-direction: column;
        max-width: 100%;
    }

    #wordmarket-section .search-box input[type="text"] {
        border-radius: 25px;
        border-right: 2px solid #1a73e8;
        margin-bottom: 10px;
    }

    #wordmarket-section .search-box button {
        border-radius: 25px;
        width: 100%;
    }
}


/* uprava tlacidiel pre vyhladavanie  */

#wordmarket-section .search-wrapper {
    display: flex;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

#wordmarket-section .search-wrapper:hover {
    transform: translateY(-5px); /* Vyzdvihnutie prvku */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Väčší a výraznejší shadow */
}

#wordmarket-section .search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-right: none;
    font-size: 16px;
    outline: none;
    border-radius: 6px 0 0 6px;
    transition: all 0.3s ease;
}

#wordmarket-section .search-input:focus,
#wordmarket-section .search-wrapper:hover .search-input {
    border-color: #1a73e8;
}

#wordmarket-section .search-button {
    padding: 12px 25px;
    background-color: #1a73e8;
    color: white;
    border: none;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
    transition: all 0.3s ease;
}

#wordmarket-section .search-button:hover {
    background-color: #0d62c9;
    transform: scale(1.05); /* Mierne zväčšenie tlačidla */
}

/* Pridáme jemnú animáciu pre celý wrapper */
@keyframes searchWrapperPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

#wordmarket-section .search-wrapper:hover {
    animation: searchWrapperPulse 0.5s ease;
}








/* FAQ sekcia */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    background-color: #f8f9fa;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #1a73e8;
    transition: background-color 0.3s ease;
}

.faq-question::before {
    content: '+';
    margin-right: 10px;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::before {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    background-color: white;
    color: #333;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 15px;
    opacity: 1;
}

.faq-question:hover {
    background-color: #e8f0fe;
}



/* Štýly pre počítadlo slov */
.word-counter {
    display: flex;
    align-items: center;
    margin-right: 20px;
    padding: 5px 10px;
    background-color: #f1f8e9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.counter-icon {
    font-size: 20px;
    color: #43a047;
    margin-right: 8px;
}

.counter-info {
    display: flex;
    flex-direction: column;
}

.counter-label {
    font-size: 12px;
    color: #666;
}

.counter-value {
    font-size: 18px;
    font-weight: bold;
    color: #43a047;
}

/* Animácia pre počítadlo */
.counter-value {
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}





.standalone-word-counter {
    display: flex; align-items: center; justify-content: center; 
    margin: 15px auto; max-width: 400px; 
    background-color: #f1f8e9; border-radius: 10px; 
    padding: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.standalone-word-counter .counter-icon {
    margin-right: 10px; font-size: 24px; color: #43a047;
}

.standalone-word-counter .counter-info {
    display: flex; flex-direction: row; align-items: center;
}

.standalone-word-counter .counter-label {
    margin-right: 10px; color: #666; font-size: 14px;
}

.standalone-word-counter .counter-value {
    font-size: 20px; font-weight: bold; color: #43a047;
}






.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    margin: 10px 0;
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25em solid #007bff;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
    margin-bottom: 8px;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}





/*  dizajn pre  kyc vyber  */

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
    font-weight: 500;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

.kyc-info-box {
    animation: pulse-subtle 2s infinite;
}

@keyframes pulse-subtle {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.credit-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.credit-actions .btn {
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.credit-actions .btn i {
    font-size: 16px;
}

/* Responzívne pre menšie obrazovky */
@media (min-width: 768px) {
    .credit-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .credit-actions .btn {
        flex: 1;
        max-width: 200px;
    }
}



/* ===================================
   zaciatok  USER SEARCH AUTOCOMPLETE STYLES
   =================================== */

/* OPRAVA: Karta musí mať overflow: visible */
.card[data-section="user-search"] {
    overflow: visible !important;
}

.card[data-section="user-search"] .card-content {
    overflow: visible !important;
}

/* Kontajner pre user search */
.user-search-container {
    width: 100%;
    position: relative;
}

/* Wrapper pre search input */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Input pole */
.user-search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.user-search-input:focus {
    border-color: #1a73e8;
    background-color: white;
    box-shadow: 0 0 8px rgba(26, 115, 232, 0.2);
}

.user-search-input::placeholder {
    color: #999;
}

/* Ikona lupy v inpute */
.search-input-wrapper .search-icon {
    position: absolute;
    right: 15px;
    color: #999;
    pointer-events: none;
    transition: color 0.3s ease;
}

.user-search-input:focus + .search-icon {
    color: #1a73e8;
}

/* Autocomplete výsledky */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff !important; /* OPRAVENÉ */
    border: 2px solid #1a73e8 !important; /* OPRAVENÉ */
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    margin-top: 2px;
}

.autocomplete-results.show {
    display: block;
}

/* SUPER SILNÉ pravidlo pre autocomplete */
.card[data-section="user-search"] .autocomplete-results .autocomplete-item {
    background-color: #ffffff !important;
    color: #333 !important;
}

.card[data-section="user-search"] .autocomplete-results .autocomplete-item:hover {
    background-color: #e8f0fe !important;
}

/* Jednotlivé položky */
.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    background-color: #ffffff !important; /* OPRAVENÉ */
    color: #333 !important; /* OPRAVENÉ */
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #e8f0fe !important; /* OPRAVENÉ */
}

.autocomplete-item i {
    color: #1a73e8;
    font-size: 16px;
}

.autocomplete-item .user-nickname {
    font-weight: 500;
    color: #333 !important; /* OPRAVENÉ */
    flex-grow: 1;
}

.autocomplete-item .word-count {
    font-size: 12px;
    color: #666 !important; /* OPRAVENÉ */
    background-color: #f1f8e9;
    padding: 3px 8px;
    border-radius: 12px;
}

/* Žiadne výsledky */
.no-results {
    padding: 15px;
    text-align: center;
    color: #999 !important; /* OPRAVENÉ */
    font-style: italic;
    background-color: #ffffff !important; /* OPRAVENÉ */
}

/* Loading state */
.autocomplete-loading {
    padding: 15px;
    text-align: center;
    color: #1a73e8 !important; /* OPRAVENÉ */
    background-color: #ffffff !important; /* OPRAVENÉ */
}

.autocomplete-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .user-search-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 10px 35px 10px 12px;
    }
    
    .autocomplete-results {
        max-height: 250px;
    }
    
    .autocomplete-item {
        padding: 10px 12px;
    }
}

/* Icon blue style pre konzistenciu s ostatnými kartami */
.icon-blue {
    background-color: #e3f2fd;
    color: #1a73e8;
}

/* ===================================
   Koniec USER SEARCH AUTOCOMPLETE STYLES
   =================================== */

