/* ZÁKLADNÍ STYL */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    padding: 20px;
    margin: 0;
    text-align: center;
}

/* KONTEJNERY */
.container, .container-tab {
    background-color: #f0f0f0;
    border: 1px solid #000000;
    padding: 30px;
    margin: 20px auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.container {
    width: 50%;
}

.container-tab {
    width: 90%;
}

/* DLAŽDICOVÉ MENU */
.container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.tile {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border: 1px solid #000;
    padding: 40px;
    text-decoration: none;
    color: #000;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
    border-radius: 10px;
}

.tile:hover {
    background-color: #ddd;
    transform: scale(1.05);
}

.tile.logout {
    background-color: #ff4d4d;
    color: white;
}

.tile.logout:hover {
    background-color: #cc0000;
}

/* TABULKY */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

th {
    background-color: #333;
    color: #fff;
}

/* FORMULÁŘE */
input[type="text"], input[type="password"], select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #000000;
    box-sizing: border-box;
}

button {
    background-color: #0000ff;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background-color: #000080;
}

.form-control {
    margin-bottom: 10px;
}

/* QR obrázky */
.qr-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.qr-container img {
    margin-right: 20px;
    max-width: 100%;
    height: auto;
}

/* NAVIGACE */
nav {
    background-color: #333;
    padding: 15px;
    text-align: center;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
    margin: 5px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    background-color: #444;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: block;
    white-space: nowrap;
}

nav ul li a:hover {
    background-color: #555;
}

nav ul li a:active {
    background-color: #222;
}

/* DROPDOWN MENU */
nav ul li.dropdown:hover .submenu {
    display: block;
}

nav ul .submenu {
    display: none;
    position: absolute;
    background-color: #444;
    list-style-type: none;
    padding: 0;
    margin: 0;
    top: 100%;
    left: 0;
    min-width: 220px;
    z-index: 999;
    border-radius: 0 0 5px 5px;
}

nav ul .submenu li a {
    display: block;
    padding: 10px 15px;
    background-color: #444;
    color: #fff;
    text-align: left;
    border-bottom: 1px solid #555;
    text-decoration: none;
    white-space: nowrap;
}

nav ul .submenu li a:hover {
    background-color: #555;
}

/* RESPONSIVITA */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 20px;
    }

    .container-tab {
        width: 95%;
        padding: 20px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .qr-container {
        flex-direction: column;
        align-items: center;
    }

    .qr-container img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .tile {
        padding: 30px;
        font-size: 16px;
    }

    .container-grid {
        grid-template-columns: 1fr;
    }
}

.tile h2 {
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.3;
    max-height: 2.6em; /* max. 2 řádky (1.3em x 2) */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;        /* počet řádků */
    -webkit-box-orient: vertical;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
.btn {
    background-color: #0000ff;
    color: #ffffff;
    padding: 10px 10px;
    border: none;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
}

.btn:hover {
    background-color: #000080;
}
.warning {
    background-color: #ffe4b3;
    border: 1px solid #ffa500;
    padding: 10px;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
    border-radius: 5px;
}
.info-text {
    font-size: 0.9em;
    color: #555;
    margin-top: 4px;
}

.section-title, .subsection-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i, .subsection-title i, .tile h2 i {
  font-size: 1.2em;
  margin-right: 0.5rem;
}
