/* Globální styly */
body { font-family: Arial, sans-serif; margin: 0; padding: 0; }

/* Původní styly pro header, sidebar, obsah, tabulky atd. */
header.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgb(0, 0, 0);
    border-bottom: 0px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 2000;
}
.sidebar {
    width: 300px;
    background: #000;
    color: #fff;
    position: fixed;
    top: 30px;
    left: 0;
    height: calc(100% - 30px);
    padding: 25px;
    box-sizing: border-box;
}
.sidebar h1 { font-size: 2.25em; margin-bottom: 25px; }
.sidebar nav ul { list-style: none; padding: 0; }
.sidebar nav ul li { margin-bottom: 12.5px; }
.sidebar nav ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 12.5px;
    background: #222;
    border-radius: 5px;
}
.sidebar nav ul li a:hover { background: #444; }

/* Mobilní responsive pro content */
@media (max-width: 768px) {
    .content {
        margin-left: 0 !important;
        margin-top: 10px !important;
        padding: 15px !important;
    }
    
    .sidebar {
        display: none !important;
    }
}
fieldset {
    border: 1.25px solid #ccc;
    padding: 12.5px;
    margin-bottom: 25px;
}
legend { font-weight: bold; margin-bottom: 12.5px; }
label { display: block; margin-bottom: 6.25px; }
select, input[type="text"], input[type="email"], input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 12.5px;
    border: 1.25px solid #ccc;
    border-radius: 5px;
}
button {
    background: #ff0000;
    color: #fff;
    border: none;
    padding: 12.5px 25px;
    border-radius: 6.25px;
    cursor: pointer;
    transition: background 0.3s;
}
button:hover { background: #cc0000; }
/* Drop zone base styling - overridden in specific page CSS files */
#drop_zone {
    border: 2px dashed #ccc;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 25px;
    min-height: 150px;
    line-height: 150px;
    color: #555;
    transition: border 0.3s, color 0.3s;
}
.register-field {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}
.register-field:focus {
    outline: none;
    border-color: #007bff;
}
.error-shadow.register-field {
    box-shadow: 0 0 5px red !important;
}
#drop_zone.dragover { border-color: #000; color: #000; }
a { word-break: break-all; }
footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 12.5px;
}
table.modern-dashboard {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    font-size: 20px;
}
table.modern-dashboard thead {
    background: linear-gradient(135deg, #000, #ff0000);
    color: #fff;
}
table.modern-dashboard th, table.modern-dashboard td {
    padding: 15px;
    text-align: left;
    border-bottom: 1.25px solid #f2f2f2;
}
table.modern-dashboard tbody tr:nth-child(even) {
    background: #f9f9f9;
}
table.modern-dashboard tbody tr:hover {
    background: #f1f1f1;
}
@media screen and (max-width: 600px) {
    table.modern-dashboard,
    table.modern-dashboard thead,
    table.modern-dashboard tbody,
    table.modern-dashboard th,
    table.modern-dashboard td,
    table.modern-dashboard tr {
        display: block;
    }
    table.modern-dashboard thead tr { display: none; }
    table.modern-dashboard tr { margin-bottom: 18.75px; }
    table.modern-dashboard td {
        text-align: right;
        padding-left: 62.5px;
        position: relative;
    }
    table.modern-dashboard td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 18.75px;
        font-weight: bold;
        text-align: left;
    }
}
.row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 15px; }
.col { flex: 1; }
.col.full { flex: 1 1 100%; }
.landing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}
.landing-grid.align-start {
    align-items: start;
}
@media (max-width: 900px) {
    .landing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .landing-grid .box {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}
@media (max-width: 600px) {
    .landing-grid {
        grid-template-columns: 1fr;
    }
    .landing-grid .box {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}
.landing-grid .box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}
.landing-grid .box:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}


/* Styly pro obrázky v novinkách na HOME */
.home-news-image-container {
    position: relative;
    display: inline-block;
    margin: 10px 0;
    cursor: pointer;
}
.home-news-image {
    width: 100%;
    max-width: 250px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.home-news-image:hover {
    transform: scale(1.02);
}
.home-image-overlay {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.home-news-image-container:hover .home-image-overlay {
    opacity: 1;
}

/* Modal styly */
#modalOverlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}
#downloadModal {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 25px;
    border-radius: 6.25px;
    z-index: 1001;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 2.5px 6.25px rgba(0,0,0,0.3);
}
#downloadModal button { margin: 12.5px; }