@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-width: 600px; /* Minimalna szerokość dokumentu zgodna z tabelą */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #444;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-left {
    display: flex;
    gap: 10px;
}

.nav-right {
    display: flex;
}

nav a {
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #313131;
}

.container {
    width: 90%;
    margin: 20px auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    font-weight: normal;
    margin-bottom: 20px;
}

/* Style dla tabel */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border: 0px solid black;
    min-width: 600px; /* Minimalna szerokość tabeli */
}

table thead tr:last-child th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

table thead tr:last-child th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

tbody tr td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

tbody tr td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

th, td {
    padding: 8px;
    text-align: left;
}

th {
    background-color: #444444;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

a {
    text-decoration: none;
    color: #ebebeb;
}

a:hover {
    color: #a4a4a4;
}

.edit-button {
    background-color: #505050; 
    color: white;
    font-size: 16px;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

.edit-button:hover {
    background-color: #000000; 
}

.delete-button {
    background-color: #9c0000; 
    color: white;
    font-size: 16px;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

.delete-button:hover {
    background-color: #310000; 
}

.export-button {
    background-color: #001eff; 
    color: white;
    font-size: 14px;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

.export-button:hover {
    background-color: #00115b;
}

.import-button {
    background-color: #1c9800; 
    color: white;
    font-size: 16px;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

.import-button:hover {
    background-color: #115d00; 
}

.light-button {
    padding: 10px 20px;
    background-color: #bdbdbd;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-bottom: 15px;
}

.light-button:hover {
    background-color: #333;
    color: white;
}

.preview-button {
    background-color: #0d18ea; 
    color: white;
    font-size: 16px;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

.preview-button:hover {
    background-color: #000790; 
}
.toggle-result-button{
    background-color: #202469; 
    color: white;
    font-size: 16px;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}
.toggle-result-button:hover{
    background-color: #313697; 
}

/* Styl responsywny dla urządzeń mobilnych */

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 10px;
    }

    .nav-left, .nav-right {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 5px;
    }

    nav a {
        padding: 10px 15px;
    }

    .container {
        width: 95%;
        margin: 10px auto;
        padding: 15px;
    }

    th, td {
        padding: 6px;
    }

    .edit-button, .delete-button, .export-button, .import-button, .preview-button, .light-button {
        padding: 8px 12px;
        font-size: 14px;
        margin-bottom: 5px;
    }
}
