@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-family: "Open Sans", serif;
    text-decoration: none;
    color: black;
}

.header {
    margin: 20px;
    width: calc(100vw - 40px);
    height: 10vh;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    background-color: #e4e4e4;
    border-radius: 5px;
    border: solid #b5b5b5 2px;
}

.headerLogo {
    padding: 8px;
    margin-left: 50px;
    border: solid black 1px;
    border-radius: 5px;
}

#loginHeaderLogo span {
    font-size: xx-large;
}

#loginHeaderNapis {
    margin-right: 100px;
    font-size: xx-large;
    font-weight: bold;
}

#loginFormWrapper {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 120px;
}

#loginForm {
    background-color: #e4e4e4;
    border: solid #b5b5b5 2px;
    border-radius: 5px;
    padding: 40px;
    width: 500px;
}

#loginForm form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}


#loginForm button {
    width: fit-content;
    padding: 10px;
    font-size: large;
    margin-top: 10px;
    cursor: pointer;
}

#closeOverlay {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}


.nav-links {
    display: flex;
    justify-content: space-evenly;
    width: 40vw;
}

.nav-links li a {
    font-size: 1.4em;
    transition: all .3s;
}

.logout:hover {
    color: red;
}

.headerLogo {
    margin-left: 50px;
}

.tableOverlay {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

table {
    width: 50%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 14px;
    background-color: #e4e4e4;
    border: solid #b5b5b5 2px;
    border-radius: 5px;
}

/* Table header styling */
table thead th {
    text-align: left;
    background-color: #f8f9fa; /* Light gray background */
    padding: 10px;
    border-bottom: 2px solid #dee2e6;
}

/* Table body rows */
table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

/* Table cell styling */
table td {
    padding: 10px;
    vertical-align: top;
}

/* Alternating row colors for better readability */
table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}


/* Styling for specific columns (if needed) */
table td:first-child {
    font-weight: bold; /* Makes the first column's text bold */
}

.deleteAction {
    color: red;
}

.upravitAction {

}

.zobrazit {
    color: green;
}

/* Overlay styles */
#overlay.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top of other content */
}

#overlay.overlay.hidden {
    display: none; /* Hide the overlay when the 'hidden' class is applied */
}

/* Overlay content styles */
.overlay-content {
    background-color: #e4e4e4;
    border: solid #b5b5b5 2px;
    border-radius: 5px;
    padding: 40px;
    position: relative;
    width: 400px; /* Increased width to fit content better */
}

/* Close button styles */
#closeOverlay {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #e4e4e4;
    border: solid #b5b5b5 1px;
    border-radius: 3px;
}

/* Form styles */
.overlay-content form {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align form items to the left */
}

.formDiv {
    margin: 10px 0;
    width: 100%; /* Ensure formDiv takes full width */
}

.formDiv input {
    background-color: #e4e4e4;
    border: solid black 1px;
    border-radius: 3px;
    height: 30px;
    width: 100%; /* Full width for inputs */
    font-size: large;
    padding: 5px;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.formDiv label {
    font-size: large;
    display: block; /* Ensure labels are on their own line */
    margin-bottom: 5px; /* Add spacing between label and input */
}

.overlay-content button[type="submit"] {
    width: fit-content;
    padding: 10px;
    font-size: large;
    margin-top: 10px;
    cursor: pointer;
    background-color: #e4e4e4;
    border: solid #b5b5b5 1px;
    border-radius: 3px;
}

/* Checkbox styles */
.formDiv input[type="checkbox"] {

    height: auto;
    margin: 0 auto; /* Center checkboxes horizontally */
}

/* Select styles */
.formDiv select {
    background-color: #e4e4e4;
    border: solid black 1px;
    border-radius: 3px;
    height: 30px;
    width: 100%; /* Full width for select */
    font-size: large;
    padding: 5px;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    font-family: inherit; /* Use the same font as the rest of the form */
}

.formDiv select option {
    font-size: large; /* Ensure options have the same font size */
    font-family: inherit; /* Use the same font as the rest of the form */
}

/* Error message styles */
.overlay-content p {
    color: red;
    margin-top: 10px;
}

.formDiv.checkboxDiv {
    display: flex;
    justify-content: space-between;
}

.formDiv.checkboxDiv label {
    display: initial;
}

.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    width: 300px;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.modal-buttons button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#confirmDelete {
    background-color: #e53935;
    color: white;
}

#cancelDelete {
    background-color: #757575;
    color: white;
}
