/* Globální styl pro stránku */
body {
    font-family: 'Arial', sans-serif;
    color: #00b4d8;
    background-color: #15273f;
    margin: 0;
    padding: 10px;
}
body.popup-body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 20px;
}
body.inframe-body {
    font-family: 'Arial', sans-serif;
    color: #00b4d8;
    background-color: #15273f;
    margin: 0;
    padding: 5px;
}
nav {
    background-color: #004d66;
    padding: 15px;
    text-align: center;
}
nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}
/* Nadpisy pro statusy */
h2 {
    color: #00b4d8; /* Tirkisová barva */
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}
h3 {
    color: #5d8f99; /* Tirkisová barva */
    margin-top: 0px;
    font-size: 12px;
    font-weight: normal;
}
h4 {
    color: #6e9299; /* Tirkisová barva */
    margin-top: 0px;
    font-size: 10px;
    font-weight: normal;
}

/* Hlavní container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.device-row {
    margin: 5px 0;
}

/* pod menu */
.top-div {
    background-color: #004d66;
    margin: 0 auto;
    padding: 15px;
}

/* Styl pro tabulky */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 5px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

/* Styl pro záhlaví tabulky */
table th, table td {
    padding: 6px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #00b4d8; /* Tirkisová barva */
    color: #fff;
    font-weight: bold;
}

/* Řádky tabulky */
table tr:nth-child(even) {
    background-color: #f9f9f9;
}

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

table td {
    color: #333;
}

/* Styl pro container tabulky */
.table-container {
    margin: 5px auto;
    padding: 5px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Styl pro tlačítko zpět */
.back-button {
    margin-bottom: 10px;
}

.back-button a {
    text-decoration: none;
    color: #00b4d8;
    font-weight: bold;
}

.back-button a:hover {
    text-decoration: underline;
}

/* Nadpis složky */
.directory-header {
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

/* Nadpisy podsekcí */
.subheader {
    font-size: 18px;
    color: #00b4d8;
    font-weight: bold;
    margin-top: 10px;
}

/* Seznam složek a souborů */
.folder-list, .file-list {
    list-style-type: none;
    padding: 0;
}

.folder-item, .file-item {
    padding: 8px;
    margin: 5px 0;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.folder-item a, .file-item a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.folder-item a:hover, .file-item a:hover {
    color: #00b4d8;
}

/* Ikony pro soubory */
.preview-icon, .download-icon {
    margin-left: 10px;
    font-size: 16px;
    text-decoration: none;
    color: #00b4d8;
}

.preview-icon:hover, .download-icon:hover {
    color: #0077a3;
}
/*************************************************************** logo.png ***************************************************************/
.logo-fixed {
    position: fixed;
    top: 5px;
    left: 25px;
    height: 45px;
    z-index: 9999;
    pointer-events: none; /* logo nebude překážet kliknutí */
}
@media print {
    .no-print-bacground-logo {
        display: none !important;
    }
}
@media print {
    .print-margin-top {
        height: 30mm;
    }
}
@media print { /* tlačítko menu se netiskne */
    .no-print {
        display: none !important;
    }
}

/*************************************************************** menu.php ***************************************************************/
/* Styl hlavního menu */
.main-menu {
    background-color: #00b4d8;
    height: 20px;
    padding: 5px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}


/* Seznam položek menu */
.main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

/* Odkazy v menu */
.main-menu ul li {
    margin: 0 15px;
}

.main-menu ul li a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
}

.main-menu ul li a:hover {
    text-decoration: underline;
}

/* Menu odhlásit*/
.logout-icon {
    font-size: 20px;
    color: white;
    padding: 2px;
}
.logout-icon:hover {
    color: #ffdddd;
}
.logout-icon svg {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    fill: white;
}
.user-info {
    font-size: 0.9em;
    color: white;
    font-weight: normal;
}


/* Odkazy v menu */
.main-menu ul li {
    margin: 12px 12px;
    vertical-align: middle;
}

.main-menu ul li a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
}

.main-menu ul li a:hover {
    text-decoration: underline;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    text-decoration: none;
    padding: 2px 2px;
    display: block;
}

.has-submenu > a::after {
    content: ' ▼'; /* Šipka dolů */
    font-size: 0.7em;
}

.submenu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: #00b4d8;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 999;
    flex-direction: column;
}

.submenu a {
    color: #00b4d8;
}

a.submenu-link {
    color: #00b4d8;
}


.submenu-link {
    color: #00b4d8;
}

.submenu li a {
    padding: 10px;
    color: #333;
    background: #00b4d8;
    white-space: nowrap;
}

.has-submenu:hover .submenu {
    display: block !important;
}

.submenu li a:hover {
    background: #0097b5;
}

/* IKONY */
.back-icon i {
    font-size: 18px;
    color: white;
}

/* Skryj hamburger menu na velkých obrazovkách */
.menu-toggle {
    display: none;
    background-color: #ffffff;
    color: white;
    padding-left: 80px;
    padding-right: 80px;
    padding-top: 12px;
    cursor: pointer;
    font-size: 18px;
    border: none;
  }
  
  @media (max-width: 1200px) {
    .main-menu {
        position: relative;
    }

    .main-menu ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        background-color: #0097b5;
        z-index: 1000;
    }
  
    .main-menu ul.show {
      display: flex;
    }
  
    .menu-toggle {
        display: block;
        background-color: #333;
        color: white;
        padding: 12px;
        width: 100%;
        text-align: left;
        font-size: 18px;
        border: none;
    }
  
    .main-menu li {
      border-bottom: 1px solid #666;
      width: 100%;
    }
  
    .main-menu a {
        display: block;
        width: 100%;
        padding: 5px;
        color: white;
    }

  }
/* Styl pro tlačítko zpět */
.back-button {
    margin-bottom: 10px;
}

.back-button a {
    text-decoration: none;
    color: #00b4d8;
    font-weight: bold;
}

.back-button a:hover {
    text-decoration: underline;
}

/*************************************************************** network_status_view.php ***************************************************************/

/* Styl pro výpis zařízení */
.device-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    font-family: Arial, sans-serif;
    background-color: #ccd3db;
    color: #e0f7fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    padding: 0px;
}

.device-table th, .device-table td {
    padding: 10px 10px;
    border-bottom: 1px solid #586272;
    text-align: left;
}

.device-table th {
    background-color: #004d66;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.device-table tr:nth-child(even) {
    background-color: #b0c0d6;
    font-size: 12px;
}

.device-table tr {
    background-color: #dbdde0;
    font-size: 12px;
}

.device-table tr:hover {
    background-color: #ffffff;
}

.indent {
    padding-left: 30px;
}
/* Kontejner pro dvě sekce */
.device-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    padding-top: 30px;
}

/* Výchozí styl: sekce pod sebou */
.device-layout .left,
.device-layout .right {
    flex: 1 1 100%;
}

/* Na větších obrazovkách: sekce vedle sebe */
@media (min-width: 768px) {
    .device-layout .left {
        flex: 1 1 58%;
    }
    .device-layout .right {
        flex: 1 1 38%;
    }
}

/* Vyskakovací okno s informacemi */
.popup {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: black;
    padding: 20px;
    border: 2px solid #004d66;
    border-radius: 8px;
    z-index: 9999;
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
/*************************************************************** Tlačítka ***************************************************************/

/* Styl tlačítek stejného vzhledu jako odkazy */
.diagnose-button,
.diagnose-button:visited,
.diagnose-button:active,
.diagnose-button-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #00b4d8;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.diagnose-button:hover,
.diagnose-button-button:hover {
    background-color: #0077a3;
}