/* Základní reset a globální styly */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

button {
    cursor: pointer;
}

input, button, select, textarea {
    font-family: inherit;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #f8f8f8; /* Sjednocení pozadí všech polí */
    width: 100%; /* Zajištění, že všechny inputy budou zabírat celou šířku */
}

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
    background-color: #f8f8f8; /* Nastavení stejného pozadí jako u ostatních polí */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="date"]:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #007bff;
    background-color: #fff;
}

/* Styl pro tlačítka */
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Styl pro tabulku zaměstnanců */
#persons-employee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#persons-employee-table th, #persons-employee-table td {
    text-align: left;
    padding: 8px;
    border: 1px solid #ddd;
}

#persons-employee-table th {
    background-color: #007bff;
    color: white;
}

#persons-employee-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

#persons-employee-table tr:hover {
    background-color: #ddd;
}

/* Modální překrytí (pro blur efekt) */
#persons-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    backdrop-filter: blur(10px);
}

/* Modální okno */
#persons-employee-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    width: 80%;
    max-width: 800px;
    overflow-y: auto;
    max-height: 84vh;
}

/* Zavírací křížek */
.custom-close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4545;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 5px 8px;
    cursor: pointer;
}

.custom-close-modal:hover {
    background-color: #ff2121;
}

/* Tlačítko pro přidání zaměstnance */
#persons-add-employee-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#persons-add-employee-btn:hover {
    background-color: #218838;
}

/* Responzivní úpravy */
@media (max-width: 768px) {
    #persons-employee-modal {
        width: 95%;
    }
}

/* Stylování pro datumová pole */
.date-inputs-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.date-input-container {
    flex: 1;
    margin-right: 10px;
}

.date-input-container:last-child {
    margin-right: 0;
}

input[type="date"] {
    background-color: #f8f8f8; /* Sjednocení pozadí datumových polí */
}

/* Základní styl pro textová pole a ostatní inputy */
input[type="email"], input[type="tel"] {
    background-color: #f8f8f8; /* Sjednocení pozadí */
}

/* Zobrazení labelů */
label {
    display: block;
    margin-bottom: 5px;
}

/* Stylování pro tituly */
.titles-container {
    display: flex;
    justify-content: space-between;
}

.title-section {
    flex: 1;
    margin-right: 20px;
}

.title-section:last-child {
    margin-right: 0;
}

/* Styl pro pole ANO/NE */
.btn-group {
    display: inline-block;
    margin-top: 8px;
}

.btn-group .btn.active, .btn-group .btn:hover {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

.btn {
    padding: 5px 20px;
    border: 1px solid #ccc;
    cursor: pointer;
    background-color: #f8f8f8;
    margin-right: 5px;
    margin-bottom: 20px;
    color: grey;
}

.btn.active, .btn:hover {
    background-color: #007bff;
    color: white;
}

.btnHover {
    padding: 5px 20px !important;
    border: 1px solid #ccc !important;
    cursor: pointer !important;
    background-color: #007bff !important;
    margin-right: 5px !important;
    margin-bottom: 20px !important;
    color: white !important;
}

/* Sekce pro žádosti */
.requests-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
}

.request-section {
    flex: 1;
    margin-right: 20px;
}


/* Styl pro tlačítka Edit/Delete, aby byla vedle sebe */
.persons-edit-employee, .persons-delete-employee {
    display: inline-block; /* nebo použij flex na jejich rodiče */
    width: auto; /* nebo definuj pevnou šířku, pokud je potřeba */
    margin-right: 5px; /* Dodá mezery mezi tlačítky */
padding:4px 8px;
}

/* Úprava šířky zavíracího křížku */
.custom-close-modal {
    width: 34px; /* nebo max-width: 30px; pokud chceš specifikovat maximální šířku */
    height: auto;
    padding: 5px; /* Upravit padding podle potřeby */
}

/* Jednotné šířky pro všechny inputy ve formuláři */
#persons-employee-modal input[type="text"],
#persons-employee-modal input[type="email"],
#persons-employee-modal input[type="date"],
#persons-employee-modal select {
    width: 100%; /* Zajistí, že všechna pole budou stejně široká */
    box-sizing: border-box; /* Zahrne padding a border do šířky */
}

/* Úpravy pro datumová pole */
.date-inputs-container .date-input-container input[type="date"] {
    background-color: #f8f8f8; /* Nastavení pozadí pro datumová pole */
}

/* Oprava stylů pro buttony Ano/Ne */
.btn-group .btn {
    display: inline-block; /* Zajistí, že buttony budou vedle sebe */
    width: 49%; /* Každý button bude mít poloviční šířku kontejneru */
}

/* Styl pro tlačítko uložení na spodku modálního okna */
#persons-employee-modal .submit-container {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    padding: 10px;
    border-top: 1px solid #ccc;
    box-shadow: 0 -5px 5px -5px rgba(0, 0, 0, 0.1);
    text-align: right;
}

#persons-employee-modal .submit-container button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#persons-employee-modal .submit-container button:hover {
    background-color: #0056b3;
}

