body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;

    background:
        linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.35)),
        url("/img/background01.jpg");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

.panel {
    background: rgba(0,0,0,0.55);
    padding: 20px;
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 0 20px rgba(0,0,0,0.35);
}

table {
    border-collapse: collapse;
    width: 100%;
    background: rgba(0,0,0,0.45);
}

th, td {
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px;
}

th {
    background: rgba(255,255,255,0.10);
}

input, select, button {
    padding: 6px;
    border-radius: 6px;
    border: none;
}

button {
    background: rgba(40,120,70,0.85);
    color: white;
    cursor: pointer;
}

button:hover {
    background: rgba(60,160,90,0.95);
}

.controls {
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(0,0,0,0.45);
    border-radius: 12px;
}

canvas {
    width: 100% !important;
    height: 55vh !important;
}

.graph-panel {
    background: rgba(255,255,255,0.72);

    border-radius: 16px;

    padding: 15px;

    box-shadow: 0 0 25px rgba(0,0,0,0.35);

    margin-top: 20px;
}
.footer-bar {
    margin-top: 30px;

    padding: 18px;

    border-radius: 14px;

    background: rgba(0,0,0,0.45);

    text-align: center;

    box-shadow: 0 0 20px rgba(0,0,0,0.25);
}

.footer-button {
    display: inline-block;

    margin-bottom: 12px;

    padding: 10px 18px;

    border-radius: 10px;

    text-decoration: none;

    color: white;

    background: rgba(40,120,70,0.85);

    font-weight: bold;
}

.footer-button:hover {
    background: rgba(60,160,90,0.95);
}

.footer-text {
    font-size: 13px;

    opacity: 0.85;

    line-height: 1.5;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 18px auto 20px auto;
    padding: 12px 20px;

    max-width: 1200px;

    background: rgba(0,0,0,0.55);
    border-radius: 14px;

    box-shadow: 0 0 20px rgba(0,0,0,0.30);
}

.nav-title {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: white;

    padding: 8px 12px;
    border-radius: 8px;

    background: rgba(40,120,70,0.70);

    font-weight: bold;
    font-size: 14px;
}

.nav-links a:hover {
    background: rgba(60,160,90,0.95);
}

.nav-links a.active {
    background: rgba(90,180,110,0.95);
}

.container {
    padding: 30px;
    max-width: 1800px;
    margin: auto;
}

.table-panel {
    background: rgba(0,0,0,0.35);

    color: #111;

    border-radius: 16px;

    padding: 15px;

    box-shadow: 0 0 25px rgba(0,0,0,0.35);

    margin-top: 20px;

    backdrop-filter: blur(5px);
}

.table-panel table {
    background: transparent;
    color: white;
}

.table-panel td {
    background: rgba(255,255,255,0.10);

    color: white;
}

.table-panel th {
    background: rgba(40,120,70,0.65);

    color: white;
}

/* ==========================================================
   Dashboard / Graph Pages
   ========================================================== */

.page-controls {
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(238,238,238,0.85);
    border-radius: 8px;
}

.page-controls select,
.page-controls input,
.page-controls button {
    margin-right: 20px;
    padding: 6px 10px;
    border: 1px solid #888;
    border-radius: 3px;
    background: #fff;
    color: #111;
    font: inherit;
}

.dashboard-table button
{
    min-width: 60px;
    padding: 4px 10px;
}

.dashboard-header {
    padding: 16px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: rgba(255,255,255,0.75);
}

.dashboard-title {
    font-size: 1.8em;
    font-weight: bold;

    /* darker text */
    color: #101010;

    margin-bottom: 6px;
}

.dashboard-subtitle {
    font-size: 1.05em;

    /* darker than before */
    color: #222;
}

.status-pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    margin-top: 10px;
}

.status-ok {
    background: #c8f7c5;
    color: #003800;
}

.status-warn {
    background: #fff0b3;
    color: #6b4f00;
}

.status-bad {
    background: #ffd0d0;
    color: #700000;
}

.status-unknown {
    background: #ddd;
    color: #222;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.dashboard-card {
    padding: 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.72);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dashboard-card-title {
    font-size: 0.90em;

    /* darker */
    color: #333;

    margin-bottom: 8px;
}

.dashboard-card-value {
    font-size: 1.5em;
    font-weight: bold;

    /* darker */
    color: #111;
}

.dashboard-links {
    margin: 18px 0;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.65);
}

.dashboard-links a {
    display: inline-block;
    margin-right: 18px;
    margin-bottom: 6px;
}

.dashboard-raw {
    white-space: pre-wrap;
    overflow-x: auto;
    padding: 12px;
    border-radius: 10px;

    background: rgba(0,0,0,0.85);

    /* slightly brighter */
    color: #f0f0f0;

    font-family: Consolas, monospace;
}

.graph-panel {
    padding: 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.72);
}

.graph-info {
    margin: 10px 0;
    padding: 8px;
    border-radius: 6px;

    background: rgba(255,255,255,0.60);

    /* darker */
    color: #111;
}

.nav-user {
    margin-left: 20px;
    opacity: 0.85;
}

.nav-logout {
    background: #8b2020;
    color: white !important;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
}

.nav-logout:hover {
    background: #b52b2b;
}

.nav-user-badge
{
    display: inline-flex;
    align-items: center;

    padding: 6px 12px;

    background: #dff33f;
    border: 1px solid #9ed0f0;

    border-radius: 8px;

    color: #06496b;
    font-weight: 600;

    margin-left: 10px;
}

.nav-admin-badge
{
    display: inline-flex;
    align-items: center;

    padding: 6px 12px;

    background: #df131f;
    border: 1px solid #9ed0f0;

    border-radius: 8px;

    color: #06496b !important;
    text-decoration: none;

    font-weight: 600;
}

.nav-admin-badge:hover
{
    background: #ccecff;
}

.status-green,
.status-amber,
.status-red
{
    display: inline-block;
    min-width: 80px;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
}

.status-green
{
    background: #d8f7dc;
    color: #146b21;
    border: 1px solid #8fd99a;
}

.status-amber
{
    background: #fff1c7;
    color: #8a6100;
    border: 1px solid #e4c45f;
}

.status-red
{
    background: #ffd8d8;
    color: #8a1c1c;
    border: 1px solid #df8a8a;
}

.status-summary
{
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.status-card
{
    min-width: 120px;
    padding: 14px 18px;
    border-radius: 10px;
    text-align: center;
}

.status-card strong
{
    display: block;
    font-size: 2rem;
    margin-top: 5px;
}

.status-blue
{
    background: #dff3ff;
    color: #06496b;
    border: 1px solid #9ed0f0;
}

/* .nav-links */
{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-dropdown
{
    position: relative;
    display: inline-block;
}

.nav-dropbtn
{
    background: transparent;
    color: inherit;
    border: none;
    cursor: pointer;

    padding: 6px 12px;
    border-radius: 8px;

    font: inherit;
    font-weight: 600;
}

.nav-dropbtn:hover
{
    background: rgba(255,255,255,0.15);
}

.nav-dropdown-content
{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 190px;

    background: rgba(20, 35, 50, 0.96);
    border: 1px solid rgba(160, 210, 240, 0.35);
    border-radius: 10px;

    box-shadow: 0 8px 18px rgba(0,0,0,0.35);

    z-index: 1000;

    padding: 8px 0;
}

.nav-dropdown-content a
{
    display: block;

    padding: 9px 14px;

    color: #dff3ff !important;
    text-decoration: none;

    white-space: nowrap;
}

.nav-dropdown-content a:hover
{
    background: rgba(120, 190, 230, 0.25);
}

.nav-dropdown:hover .nav-dropdown-content
{
    display: block;
}

.nav-user-badge
{
    display: inline-flex;
    align-items: center;

    padding: 6px 12px;

    background: #dff3ff;
    border: 1px solid #9ed0f0;

    border-radius: 8px;

    color: #06496b;
    font-weight: 600;

    margin-left: 10px;
    white-space: nowrap;
}

.nav-admin-badge
{
    background: #dff3ff !important;
    border: 1px solid #9ed0f0 !important;
    color: #06496b !important;
}

.nav-links
{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-dropdown
{
    position: relative;
    display: inline-block;
}

.nav-dropbtn
{
    background: transparent;
    color: inherit;
    border: none;
    cursor: pointer;

    padding: 6px 12px;
    border-radius: 8px;

    font: inherit;
    font-weight: 600;
}

.nav-dropbtn:hover
{
    background: rgba(255,255,255,0.15);
}

.nav-dropdown-content
{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 190px;

    background: rgba(20, 35, 50, 0.96);
    border: 1px solid rgba(160, 210, 240, 0.35);
    border-radius: 10px;

    box-shadow: 0 8px 18px rgba(0,0,0,0.35);

    z-index: 1000;

    padding: 8px 0;
}

.nav-dropdown-content a
{
    display: block;

    padding: 9px 14px;

    color: #dff3ff !important;
    text-decoration: none;

    white-space: nowrap;
}

.nav-dropdown-content a:hover
{
    background: rgba(120, 190, 230, 0.25);
}

.nav-dropdown:hover .nav-dropdown-content
{
    display: block;
}

.nav-user-badge
{
    display: inline-flex;
    align-items: center;

    padding: 6px 12px;

    background: #dff3ff;
    border: 1px solid #9ed0f0;

    border-radius: 8px;

    color: #06496b;
    font-weight: 600;

    margin-left: 10px;
    white-space: nowrap;
}

.nav-admin-badge
{
    background: #dff3ff !important;
    border: 1px solid #9ed0f0 !important;
    color: #06496b !important;
}

/* Press */
.dashboard-table th:nth-child(10),
.dashboard-table td:nth-child(10)
{
    width: 65px;
    min-width: 65px;
    max-width: 65px;
}

.dashboard-table th:nth-child(11),
.dashboard-table td:nth-child(11)
{
    width: 75px;
    min-width: 75px;
}

.dashboard-table th:nth-child(12),
.dashboard-table td:nth-child(12)
{
    min-width: 90px;
}

.dashboard-table th:nth-child(13),
.dashboard-table td:nth-child(13)
{
    min-width: 80px;
    text-align: center;
}

.dashboard-table-panel
{
    width: 100%;
    overflow-x: hidden;
}

.dashboard-table
{
    width: 100%;
    table-layout: auto;
}

.agreement-green {
    background:#2e7d32;
    color:white;
}

.agreement-blue {
    background:#1565c0;
    color:white;
}

.agreement-orange {
    background:#ef6c00;
    color:white;
}

.agreement-red {
    background:#c62828;
    color:white;
}

.agreement-grey {
    background:#616161;
    color:white;
}
