@font-face {
    font-family: 'Geomanist';
    src: url("../webfonts/geomanist-regular-webfont-2019b686cf48e0ff95d0395c17497be9.woff2") format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Geomanist';
    src: url("../webfonts/geomanist-light-webfont-ad0ae718ca15039c5778c76162e6a7be.woff2") format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Geomanist';
    src: url("../webfonts/geomanist-medium-webfont-26e31781c4e35fbcb13782d0dc85b2ac.woff2") format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Geomanist';
    src: url("../webfonts/geomanist-bold-webfont-33fc5bf460877066b910f205a3255fcb.woff2") format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: block;
}

/* General Reset */
html {
    box-sizing: border-box;
    font-size: 100%;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* Styl ogólny dla ciała strony */
body {
    margin: 0;
    padding: 0;
    font-family: 'Geomanist', Arial, Helvetica, sans-serif;
    background-color: #fff; /* Neutralny, jasnoszary kolor tła */
    color: #333; /* Neutralny ciemnoszary kolor tekstu */
    line-height: 1.6;
}

/* Nagłówki */
h1, h2, h3, h4, h5, h6 {
    color: #222; /* Ciemniejszy kolor nagłówków */
    margin-bottom: 15px;
    text-decoration: none;
}

/* Linki */
a {
    color: #333;
    text-decoration: none;
}

.back {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    margin-top: 15px;
}

a:hover {
    text-decoration: underline;
}

/* Styl dla przycisków */
button {
    background-color: #fc0;
    color: #333;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
}

button:hover {
    background-color: rgb(228, 182, 1);
}

/* Styl dla formularzy */
input[type="text"], input[type="password"], input[type="email"], textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;

}

/* Styl dla formularzy przycisków */
input[type="submit"] {
    background-color: #fc0;
    color: #333;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

input[type="submit"]:hover {
    background-color: #fc0;
}

/* Styl dla sekcji głównej */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Styl dla kontenerów */
.container {
    max-width: 90%;
    padding: 15px;
    background-color: white;
    border-radius: 5px;


}

@media (min-width: 768px) {
    .container {
        max-width: 700px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Nagłówki */
header {
    display: flex;
    flex-wrap: wrap; /* Responsive header */
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fc0;

}

.logo-img {
    height: 40px;
    margin-bottom: 10px; /* Adds spacing for smaller screens */
    text-decoration: none;
}

.user-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Styl dla sekcji wyszukiwarki */
#search-form-wrapper, #login-form-wrapper {
    max-width: 100%;
    margin: 0 auto;

    background-color: #fff;
    border-radius: 8px;
}

@media (min-width: 768px) {
    #search-form-wrapper, #login-form-wrapper {
        max-width: 500px;
    }
}

/* Styl dla błędów formularza */
.form-error {
    color: #e74c3c; /* Czerwony kolor dla błędów */
    font-size: 14px;
    margin-top: 5px;
}

.form-welcome {

    font-size: 16px;
    margin-top: 25px;
    font-weight: 500;
}

/* Styl dla przycisków */
.btn-primary {
    display: inline-block;
    background-color: #fc0;
    color: #333;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
    width: 100%;
    border-radius: 20px;
}

.btn-primary:hover {
    background-color: rgb(226, 181, 3);
}

/* Styl dla grupy formularza */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Styl dla etykiet */
.form-group label {
    display: block;
    margin-bottom: 5px;
    margin-left: 10px;
    color: #333;
    text-align: justify;
}

/* Styl dla checkboxów */
.checkbox-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 12px;
    color: #333;
}

.checkbox-group-input {
    display: flex;
    align-items: center;
}

/* Styl dla błędów */
.alert-danger {
    color: #e74c3c;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.otherdb h3 {

    color:#08a537;

}

/* Styl dla kontenera wyników */
#result-wrapper {
    max-width: 600px;
    margin: 0 auto;

    background-color: #fff;
    border-radius: 8px;
}

/* Styl dla loadera */
.loader {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #fc0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@media (min-width: 768px) {
    .spinner {
        width: 60px;
        height: 60px;
    }
}

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

/* Styl dla kontenera wyników po zakończeniu wyszukiwania */
.result-container {
    padding: 20px;

    border-radius: 4px;
}

.result-container h2 {
    color: #333;
    margin-bottom: 15px;
}

.result-container h3 {
    color: #333;
    margin: 40px 0px 10px;
}

.result-container p {
    font-size: 16px;
    color: #333;
}

.result-container p.disclaimer {
    font-size: 13px;
    color: #333;
    margin-top: 35px;
    margin-bottom: 35px;
    text-align: justify;
}

.result-container p.no-results {
    font-size: 16px;
    color: #e74c3c;
    font-weight: bold;
}

/* Media Queries */
@media (max-width: 767px) {
    .form-group {
        margin-bottom: 15px;
    }

    .btn-primary {
        width: 100%;
    }

    .checkbox-group {
        align-items: flex-start;
    }
}

/** User Panel **/
/* Styl głównego kontenera */
.user-panel-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

/* Nagłówek */
.user-panel-header {
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

/* Przycisk dodawania użytkownika */
.user-panel-add-button {
    margin-bottom: 15px;
    text-align: right;
}

.btn-add-user {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.btn-add-user:hover {
    background-color: #0056b3;
}

/* Styl tabeli */
.user-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.user-table th,
.user-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.user-table thead {
    background-color: #f8f9fa;
}

.user-table-row-odd {
    background-color: #f9f9f9;
}

.user-table-row-even {
    background-color: #ffffff;
}

/* Brak danych w tabeli */
.user-table-no-data {
    text-align: center;
    font-style: italic;
    color: #666;
}

/* Przyciski w tabeli */
.btn-edit-user,
.btn-delete-user {
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    color: white;
    font-size: 12px;
    display: inline-block;
}

.btn-edit-user {
    background-color: #ffc107;
}

.btn-edit-user:hover {
    background-color: #e0a800;
}

.btn-delete-user {
    background-color: #dc3545;
    border: none;
    cursor: pointer;
}

.btn-delete-user:hover {
    background-color: #c82333;
}

/* Formularz usuwania */
.form-delete-user {
    display: inline;
}
