
.stats-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.stat-item{
    border-radius: 3px;
    padding: 0.75rem 0.2rem;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.1s;
}

.night .stat-item{
    background-color: #181a1b;
    border: 1px solid #444;
}

.stat-label{
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #54738f;
    margin-bottom: 0.4rem;
}

.night .stat-label{
    color:#aaa;
}

.stat-number{
    font-size: 1.4rem;
    line-height: 1.8;
}

.stat-unit{
    font-size: 0.9rem;
    font-weight: 400;
    color: #6f8da8;
}

.night .stat-unit{
    color:#aaa;
}

.test-area{
    border-radius: 3px;
    padding: 2rem 0.5rem;
    text-align: center;
    border: 2px dashed #b6d6f0;
    cursor: pointer;
    user-select: none;
    transition: background 0.1s, border-color 0.1s;
    margin-bottom: 0.75rem;
}

.night .test-area{
    border: 2px dashed #444;
    background-color: #181a1b;
}

.main-text{
    font-size: 0.75rem;
    color: #134f70;
    margin-bottom: 0.75rem;
}

.night .main-text{
    color: #eee;
}

.sub-text{
    color: #527c9c;
}

.night .sub-text{
    color: #aaa;
}

/***********************************************/

.log-section{
    background: rgba(10, 20, 32, 0.9);
    border-radius: 6px;
    padding: 0.75rem 0.75rem;
    color: #e4edf5;
    border: 1px solid #2e4b62;
}

.log-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.log-header h3{
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    height: 1.3rem;
    line-height: 1.3rem;
}

.log-header button{
    background: none;
    border: 1px solid #55758b;
    color: #d2e3f0;
    padding: 0 0.75rem;
    height: 1.3rem;
    line-height: 1.3rem;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
}

.log-container{
    background: #0a121e;
    border-radius: 6px;
    padding: 0.5rem 0.5rem;
    max-height: 7.5rem;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid #2e4b62;
}

.log-container::-webkit-scrollbar {
    width: 4px;
}

.log-container::-webkit-scrollbar-track {
    background: transparent;
}

.log-container::-webkit-scrollbar-thumb {
    background-color: #94a3b8;
    border-radius: 6px;
}

.log-entry{
    padding: 0.3rem 0;
    border-bottom: 1px solid #1f3543;
    color: #b3d6f0;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.log-entry:last-child {
    border-bottom: none;
}

.record-item{
    padding: 0.4rem 0 0.4rem 0.2rem;
    border-bottom: 1px solid #2d3a4f;
    color: #94a3b8;
}

.log-index{
    color: #94a3b8;
    width: 2rem;
}

.log-key {
    background: #1e293b;
    padding: 0.4px 0.5rem;
    display: inline-block;
    border-radius: 30px;
    font-family: monospace;
    color: #cbd5e1;
    margin-right: 0.8rem;
    min-width: 2.5rem;
    text-align: center;
    border: 1px solid #475569;
}

.log-delta {
    font-weight: 500;
    color: #f1f5f9;
}

.log-dir{
    color: #FF9800;
}

/***********************************************/

.empty-placeholder {
    text-align: center;
    color: #6f95b3;
    padding: 2rem 0;
    font-size: 0.7rem;
    background-color: #fff;
    border: 1px solid #cfe0ef;
}

.night .empty-placeholder{
    border:1px solid #444;
    background-color: #232627;
    color: #aaa;
}

.sample-index{
    text-align: center;
    display: inline-block;
    margin-right: 0.5rem;
    float: left;
    color: #567690;
}

.sample-value{
    font-family: 'JetBrains Mono', monospace;
    float: left;
}

.sample-time{
    margin-right: 0.5rem;
}

@media screen and (max-width: 1020px){
    .stats-grid{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 300px){
    .stats-grid{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
}