* {
    box-sizing:border-box;
}

html, body {
    margin:0;
    overflow-x:hidden;
}

body {
    padding-bottom:70px;
    font-family: Arial, sans-serif;
    background:#e6efff;
    overflow-y: visible !important;
}

.top {
    background:#222;
    color:white;
    padding:10px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.top a {
    color:#9fd4ff;
    text-decoration:none;
    margin-left:10px;
}

.content {
    padding:20px;
}

.footer {
    background:#222;
    color:white;
    padding:10px 20px;
    position:fixed;
    bottom:0;
    width:100%;
    box-sizing:border-box;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.3);
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:14px;
    letter-spacing:0.3px;
}
.footer-left {
    text-align:left;
}

.footer-right {
    text-align:right;
}

table {
    border-collapse:collapse;
}

th,td {
    padding:6px;
}

@media (max-width:600px) {
    .footer {
        flex-direction:column;
        gap:4px;
        text-align:center;
    }
}
.welcome {
    text-align:center;
    font-family:"Monotype Corsiva", cursive;
    font-size:48px;
    margin-top:40px;
    margin-bottom:30px;
}
.links {
    text-align:center;
    margin-bottom:30px;
}

.links a {
    margin:0 20px;
    font-size:20px;
    font-weight:bold;
    color:#004a99;
    text-decoration:none;
}

.links a:hover {
    text-decoration:underline;
}
.login-box {
    width:300px;
    margin:0 auto;
    padding:20px;
    background:white;
    border-radius:8px;
    box-shadow:0 0 10px rgba(0,0,0,0.2);
    text-align:center;
}

.login-box input {
    width:100%;
    padding:6px;
    margin-bottom:10px;
    border-radius:6px;
}

.login-box input:focus {
    border-color:#4a7cff;
}

.login-box button {
    border-radius:6px;
    border:1px solid #777;
    background:#f2f2f2;
    cursor:pointer;
    padding:8px 26px;
    font-size:15px;
}

.login-box button:hover {
    background:#e0e0e0;
}

.mail-link {
    margin-top:15px;
    text-align:center;
}

.mail-link a {
    display:inline-block;
    position:relative;
}

.mail-link img {
    display:block;
    margin:0 auto;
    cursor:pointer;
}

.mail-link a:hover::after {
    content:"petrslezacek@centrum.cz";
    position:absolute;
    top:100%;
    left:50%;
    transform:translateX(-50%);
    margin-top:6px;
    font-size:13px;
    color:#333;
    white-space:nowrap;
}

.visits {
    text-align:center;
    margin-top:20px;
    font-size:14px;
}
.dashboard {
    display:flex;
}

.sidebar {
    width:220px;
    background:#d6e3ff;
    padding:20px;
    border-radius:12px;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    
}

.sidebar ul {
    list-style:none;
    padding:0;
}

.sidebar li {
    margin-bottom:8px;
    
}

.main {
    flex:1;
    padding:20px;
}

.tiles {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
    gap:30px;
    margin-top:15px;
}


.tile {
    background:white;
    padding:35px;
    text-align:center;
    border-radius:14px;
    box-shadow:0 6px 12px rgba(0,0,0,0.15);
    text-decoration:none;
    font-weight:bold;
    color:#003399;
    transition:0.2s;
}


.tile:hover {
    transform:translateY(-4px);
    background:#f0f4ff;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: visible;
}
.content {
    margin-top: 10px;
}
.topmenu ul {
    list-style: none;
    margin: 0;
    padding: 0 10px;
    display: flex;
    flex-wrap: wrap;              /* dovolí zalomení do 2 řádků */
    align-items: center;         /* srovná vertikálně */
    gap: 6px 12px;               /* mezery mezi položkami */
    background: #111;
}

.topmenu > ul > li {
    position: relative;
    padding: 6px 10px;
    color: white;
    cursor: pointer;
    white-space: nowrap;   /* aby se text nelámal uvnitř položky */
    font-size: 13px;
    border-radius: 6px;
    background:#160107;

}

.topmenu > ul > li:hover {
    background:#222;
}

/* dropdown */

.topmenu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #dfe8ff;
    min-width: 220px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    padding: 8px 0;
    z-index: 9999;

    max-height: calc(100vh - 80px);
    overflow-y: auto;
}



.topmenu li:hover ul {
    display:block;
}

.topmenu li ul li {
    padding: 8px 12px;
}

.topmenu li ul li a {
    color:#000;
    text-decoration:none;
    font-weight:500;
    display: block;
    padding: 2px 5px;
    font-size: 14px;
}

.topmenu li ul li:hover {
    background: #bccfff;
    border-radius:6px;
    
}
.covid {
    display:flex;
}
.covid-cards {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.covid-card {
    width: 220px;
    padding: 20px;
    background: white;
    border-radius: 14px;
    text-decoration: none;
    color: #0033cc;
    box-shadow: 0 6px 15px rgba(0,0,0,.12);
    transition: 0.2s;
}

.covid-card strong {
    display: block;
    font-size: 16px;
}

.covid-card span {
    font-size: 13px;
    color: #555;
}

.covid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,.18);
}

@media (max-width: 768px) {

    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: auto;
        margin-bottom: 15px;
    }

    .main {
        padding: 10px;
    }

    .tiles {
        grid-template-columns: 1fr;
        gap: 15px;
    }

}/* USERS PAGE */

.user-box {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.user-box table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.user-box th {
    background: #e0ebff;
    padding: 8px;
    text-align: left;
}

.user-box td {
    padding: 6px 8px;
    border-bottom: 1px solid #ddd;
}

.user-box tr:hover {
    background: #f0f4ff;
}

.user-actions a {
    margin-right: 10px;
    text-decoration: none;
    font-weight: bold;
    color: #003399;
}

.user-actions a:hover {
    text-decoration: underline;
}

.user-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}
/* USERS PAGE */

.user-box {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    max-width: 1100px;
    margin: 0 auto 25px auto;
    margin-bottom:25px;
    border:1px solid #d6e0ff;
    margin-top:60px;
}

.user-header {
    font-size:18px;
    font-weight:bold;
    margin-bottom:15px;
}

.user-box table {
    width:100%;
    border-collapse:collapse;
    font-size:14px;
}

.user-box th {
    background:#e0ebff;
    padding:8px;
    text-align:left;
    border-right:1px solid #ccd6ff;
}

.user-box td {
    padding:6px 8px;
    border-bottom:1px solid #ddd;
    border-right:1px solid #ddd;
}

.user-box tr:hover {
    background:#f0f4ff;
}

.user-actions a {
    margin-right:10px;
    font-weight:bold;
    color:#003399;
    text-decoration:none;
}

.user-actions a:hover {
    text-decoration:underline;
}
.user-toolbar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

.user-title {
    font-size:20px;
    font-weight:bold;
}

.user-buttons .btn {
    padding:6px 12px;
    border-radius:6px;
    background:#eee;
    text-decoration:none;
    color:#000;
    margin-left:8px;
}

.user-buttons .primary {
    background:#4a6cff;
    color:white;
}

.auth-box {
    max-width: 420px;
    margin: 60px auto;
}
.user-box.auth-box {
    max-width: 420px !important;
}
