/* styles.css */

/* Global styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    padding-bottom: 50px;
    padding-top: 100px;
}

body > * {
    max-width: 100vw;
    overflow-x: auto;
}

.diteManage {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    box-shadow: none;
    padding: 0;
    width: 140px;
    margin-bottom: 0;
}

.diteManage > *,
.diteManage > .reminder-btn,
.diteManage > .remove-btn {
    margin: 0 10px
}

.diteManage > .remove-btn {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}

.reminderCheck {
    display: inline-block;
    text-align: center;
    margin: 0;
    padding: 0;
}

.reminder-btn {
    display: inline-block;
    width: 20px; /* Nastavte šířku tlačítka */
    height: 20px; /* Nastavte výšku tlačítka */
    line-height: 20px; /* Vertikální zarovnání textu */
    border-radius: 100%; /* Kulatý tvar */
    border: none; /* Bez okraje */
    background-color: transparent; /* Bez pozadí */
    color: white; /* Barva textu */
    font-size: 14px; /* Velikost písma */
    text-align: center;
    cursor: pointer; /* Ukazatel při najetí myší */
    margin: 0 0; /* Na středu */
    padding: 0; /* Bez paddingu */
    background-color: orange;
}

.reminder-btn:hover {
    color: red; /* Barva textu při hoveru */
}

.zaplacenoCheck, .reminderCheck {
    width: auto;
    padding: 0px;
    margin: 0px;
    border-radius: 0px;
    box-shadow: none;
}

form.zaplacenoCheck > input[type=checkbox] {
    margin: 0px;
    padding: 0px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 2.5em;
}

form:not(.transparent),
.button-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 400px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    width: calc(100%);
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="time"],
input[type="select"],
input[type="password"],
input[type="submit"],
input[type="file"],
textarea,
select {
    width: calc(100%);
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s, border-width 0.3s;
    box-sizing: border-box; /* Zajistí, že padding a border budou zahrnuty do celkové šířky */
}

input[type="file"] {
    padding: 0;
    border-color: transparent;
}

/* Remove Arrows/Spinners - Chrome */
input.plainnumber[type="number"]::-webkit-outer-spin-button,
input.plainnumber[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove Arrows/Spinners - Firefox */
input.plainnumber[type=number] {
    -moz-appearance: textfield;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="time"]:focus,
input[type="select"]:focus,
input[type="password"]:focus,
input[type="submit"]:focus,
textarea:focus,
select:focus {
    border-color: #007bff;
    outline: none;
}

input[type="text"].invalid,
input[type="email"].invalid,
input[type="number"].invalid,
input[type="date"].invalid,
input[type="datetime"].invalid,
input[type="datetime-local"].invalid,
input[type="time"].invalid,
input[type="select"].invalid,
input[type="password"].invalid,
input[type="submit"].invalid,
input[type="file"].invalid,
textarea.invalid,
select.invalid,
input[type="text"].touched:invalid,
input[type="email"].touched:invalid,
input[type="number"].touched:invalid,
input[type="date"].touched:invalid,
input[type="datetime"].touched:invalid,
input[type="datetime-local"].touched:invalid,
input[type="time"].touched:invalid,
input[type="select"].touched:invalid,
input[type="password"].touched:invalid,
input[type="submit"].touched:invalid,
textarea.touched:invalid,
select.touched:invalid {
    border-color: #e74c3c;
    border-width: 2px;
}

input[type="checkbox"].invalid:not(:focus),
input[type="checkbox"].touched:invalid:not(:focus) {
    outline: 2px auto #e74c3c;
    outline-offset: 2px;
}

input[type="file"] {
    display: block;
}

form > small,
form > .error {
    display: block;
    margin-top: -10px;
    margin-bottom: 15px;
}

.header-container a {
    text-decoration: none;
    color: white;
}

input[type="checkbox"] {
    margin-right: 10px;
}

input[type="submit"] {
    padding: 15px;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

a.button {
    display: inline-block;
    padding: 15px;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-bottom: 15px;
    box-sizing: border-box;
    text-decoration: none; /* Odstranění podtržení odkazu */
}

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

.button-container a.button:last-child {
    margin-bottom: 0;
}

.step {
    color: #007bff;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.error {
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 10px;
}

.success {
    color: #2ecc71;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Additional styles for checkboxes and filters */
.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.filter-section {
    margin-bottom: 20px;
    width: 400px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-section label {
    margin-bottom: 5px;
}

.filter-section select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.filter-section select:focus {
    border-color: #007bff;
    outline: none;
}

/* Styles for team list */
.team-list {
    list-style-type: none;
    margin: 0 0 20px 0;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 425px;
}

.team-list > li,
.team-list td,
.team-list th {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.team-list > li:last-child,
.team-list tr:last-child td {
    border-bottom: none;
}

.team-list > li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delete {
    width: 30px !important;
    height: 30px !important;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.remove-btn {
    background: none;
    border: none;
    color: red;
    cursor: pointer;
    font-size: 22px;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* Responsive design */
@media (max-width: 500px) {
    form:not(.transparent), .filter-section, .team-list, .button-container {
        width: 90%;
        padding: 20px;
    }

    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="date"],
    textarea,
    select {
        font-size: 14px;
    }

    input[type="submit"] {
        font-size: 16px;
    }
}

.calendar {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header button {
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 20px;
    transition: background-color 0.3s;
}

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

.calendar-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.calendar-body {
    display: flex;
    flex-direction: column;
}

.calendar-week {
    display: flex;
}

.calendar-day {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    min-height: 100px;
    position: relative;
}

.calendar-day.empty {
    background-color: #f0f0f0;
}

.trenink-info {
    margin-top: 10px;
    padding: 5px;
    background-color: #e7f3ff;
    border: 1px solid #b3d4fc;
    border-radius: 4px;
    font-size: 0.9em;
}

.trenink-info br {
    margin-bottom: 2px;
}

.calendar-week .day {
    width: calc(100% / 7);
    text-align: center;
}

.calendar-day.current-day {
    background-color: rgb(77, 163, 255);
    color: white;
}

.calendar-day.empty {
    background-color: #f0f2f5;
}

/* Header styles */
header {
    width: 100%;
    background-color: #2060a5;
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: absolute;
    top: 0;
    overflow: visible;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Calendar styles */
.calendar {
    max-width: 1100px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.calendar-body {
    display: flex;
    flex-direction: column;
}

.calendar-week {
    display: flex;
}

.calendar-day {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    min-height: 100px;
    position: relative;
}

.calendar-day.empty {
    background-color: #f9f9f9;
}

.calendar-day.current-day {
    background-color: #dff0d8;
    border-color: #3c763d;
}

.trenink-info {
    background-color: #f0f8ff;
    border: 1px solid #add8e6;
    border-radius: 5px;
    padding: 5px;
    margin-top: 5px;
}

.trenink-info a.trenink-link {
    text-decoration: none;
    color: #333;
    display: block;
}

.trenink-info a.trenink-link:hover {
    background-color: #e0e0e0;
}

.day {
    text-align: center;
    font-weight: bold;
    padding: 10px;
}

/* Table styles */
.detail-table {
    width: 800px;
    border-collapse: collapse;
    margin: 0 20px 20px;
}

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

.detail-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    text-align: center;
}

.detail-table tr.filter {
    padding: 0;
}

.detail-table tr.filter input {
    padding: 0;
    margin-bottom: 0;
}

.detail-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.detail-table tr:hover {
    background-color: #f1f1f1;
}

a {
    text-decoration: none;
    color: #2060a5;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-right: 20px;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

nav ul li a:hover {
    background-color: #174a7c;
    border-radius: 5px;
}

nav ul li.dropdown:hover .dropdown-content {
    display: block;
}

nav ul li.dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: #2060a5;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

nav ul li.dropdown .dropdown-content li {
    display: block;
    margin: 0;
}

nav ul li.dropdown .dropdown-content li a {
    padding: 10px 15px;
    white-space: nowrap;
}

.profile-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.gray {
    color: #aaa;
}
