html, body {
    height: 100%;
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
}

footer {
    flex-shrink: 0;
    background-color: #f8f9fa;
    text-align: center;
    padding: 10px 0;
}

.logo-container {
    position: relative;
    text-align: center;
    z-index: 1;
}

.logo {
    max-width: 100%;
    height: auto;
    margin-bottom: -60px;
}

.articles-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.article-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background-color: #f9f9f9;
    transition: box-shadow 0.3s ease;
}

    .article-card:hover {
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

.article-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #8f2e2e;
    margin-bottom: 10px;
}

.article-content {
    font-size: 1rem;
    color: #1b91a1;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.9s ease, transform 0.9s ease;
}

    .btn-back:hover {
        background-color: #0056b3;
        transform: scale(1.05);
    }

    .btn-back:active {
        transform: scale(0.95);
    }

#search-results {
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}

    #search-results.show {
        opacity: 1;
        pointer-events: auto;
    }

#search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.08);
    z-index: 1;
    pointer-events: none;
}

#search-results .list-group-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

#search-results img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 5px;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

#search-results .list-group-item > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    width: 100%;
}

#search-results strong {
    display: inline;
    font-weight: 700;
}

#search-results .gb-title {
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}

#search-results .search-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    white-space: nowrap;
    padding: 8px 12px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    box-sizing: border-box;
    width: 100%;
    border-bottom-left-radius: .375rem;
    border-bottom-right-radius: .375rem;
    font-size: 0.8rem;
    /* font-size: clamp(8px, 1.2vw, 16px); */
    color: #6c757d;
}
    #search-results .search-hint kbd {
        background: #212529;
        color: #fff;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: .6rem;
        font-weight: 600;
    }

#search-results .results-wrapper {
    background: #fff;
    border-radius: .375rem;
    overflow: hidden;
}

#search-results {
    overflow: visible !important;
}

.password-strength-container {
    margin-top: 5px;
}

.password-strength-bar-bg {
    width: 20%;
    height: 6px;
    background-color: #bfbfbf;
    border-radius: 4px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    background-color: #ff4d4d; /* kolor startowy, potem będziemy zmieniać w JS */
    transition: width .2s ease, background-color .2s ease;
}

.password-strength-text {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
}


