* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #18263b;
}

.sidebar {
    width: 235px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    background: #142337;
    padding: 28px 16px;
    color: white;
}

.brand {
    font-size: 28px;
    font-weight: 800;
    padding: 0 12px 32px;
    letter-spacing: 2px;
}

.brand span {
    display: block;
    font-size: 11px;
    margin-top: 8px;
    color: #9aafc9;
}

.nav-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: #90a2ba;
    margin: 10px 12px 16px;
}

.sidebar a {
    display: block;
    text-decoration: none;
    color: #b8c7da;
    padding: 13px;
    margin-bottom: 5px;
    border-radius: 7px;
    font-size: 14px;
}

.sidebar a:hover,
.sidebar a.active {
    background: #294763;
    color: white;
}

main {
    margin-left: 235px;
    padding: 32px;
    max-width: 1800px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

h1 {
    font-size: 28px;
    margin: 0;
}

h2 { font-size: 19px; }

p {
    font-size: 14px;
    color: #69788b;
    line-height: 1.6;
}

.status {
    padding: 10px 15px;
    background: #fff2db;
    color: #946010;
    border-radius: 6px;
    font-size: 12px;
}

.notice {
    background: #eef3fa;
    color: #52667f;
    border: 1px solid #dbe4f0;
    padding: 14px;
    margin: 20px 0;
    border-radius: 7px;
    font-size: 13px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.metric, .panel, .module {
    background: white;
    border: 1px solid #e1e7ee;
    border-radius: 10px;
    padding: 22px;
}

.metric-label {
    font-size: 13px;
    color: #65758b;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    margin: 16px 0;
}

.muted {
    font-size: 12px;
    color: #8190a2;
}

.panel { margin: 24px 0; }

.empty {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #758398;
}

.modules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.module {
    text-decoration: none;
    color: inherit;
}

.module:hover { border-color: #4783bf; }

.module span {
    font-size: 12px;
    color: #3577b5;
    font-weight: bold;
}

footer {
    margin-top: 35px;
    color: #8995a5;
    font-size: 12px;
}

@media (max-width: 1000px) {
    .metrics, .modules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    main {
        margin-left: 0;
        padding: 18px;
    }

    .metrics, .modules {
        grid-template-columns: 1fr;
    }
}
