/* Custom styles for ESP32 Monitor Nazox Integration */
.metric-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.metric-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #556ee6;
}
.metric-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0.35rem;
    margin-bottom: 0;
}
.metric-card small {
    color: #74788d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}
.research-chart {
    height: 310px;
    position: relative;
}
.chart-card h5 {
    font-size: 1.05rem;
}
.chart-card .btn {
    flex-shrink: 0;
}
.chart-card p {
    min-height: 40px;
}
#report .table td {
    vertical-align: middle;
}
#report details summary, #filters summary, #reportFilters summary {
    cursor: pointer;
    color: #556ee6;
    font-weight: 600;
}
.wiring-diagram {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #eff2f7;
    border-radius: 8px;
    padding: 12px;
}
.wiring-diagram svg {
    display: block;
    width: 100%;
    min-width: 680px;
    height: auto;
}
@media print {
    .vertical-menu, #page-topbar, .footer, .btn, .no-print {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    .page-content {
        padding: 0 !important;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    .research-chart {
        height: 280px !important;
    }
    .chart-card {
        break-inside: avoid;
    }
    .chart-card .btn {
        display: none !important;
    }
    #report .col-xl-6 {
        width: 100%;
    }
    #reportContext {
        color: #000 !important;
    }
    #statusMessage {
        display: none;
    }
    #report table {
        font-size: 9pt;
    }
    .table-responsive {
        overflow: visible !important;
    }
    .wiring-diagram {
        overflow: visible;
    }
    .wiring-diagram svg {
        min-width: 0;
    }
}

/* Login authentication background styling */
.authentication-bg {
    background-image: url("../images/esp32-login-bg.jpg") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 100vh;
}
.authentication-bg .bg-overlay {
    background-color: rgba(15, 23, 42, 0.4) !important;
}


