:root {
    --dv-bg: #f4f7fb;
    --dv-surface: #ffffff;
    --dv-text: #152238;
    --dv-muted: #6b7280;
    --dv-primary: #0f766e;
    --dv-primary-soft: #ccfbf1;
    --dv-accent: #ea580c;
    --dv-border: #dbe4ef;
    --dv-shadow: 0 10px 35px rgba(15, 34, 56, 0.08);
    --dv-radius: 14px;
}

.dv-page {
    background:
        radial-gradient(circle at 10% 10%, rgba(15, 118, 110, 0.08), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(234, 88, 12, 0.09), transparent 30%),
        var(--dv-bg);
    min-height: 100vh;
    color: var(--dv-text);
    padding-bottom: 20px;
}

.dv-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--dv-border);
}

.dv-topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dv-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--dv-text);
}

.dv-brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(130deg, var(--dv-primary), #0ea5a2);
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.3);
}

.dv-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.dv-link {
    text-decoration: none;
    border: 1px solid transparent;
    color: #24425f;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    background: #f7fafc;
}

.dv-link:hover,
.dv-link.active {
    border-color: #99f6e4;
    color: #0f766e;
    background: #ecfeff;
}

.dv-status {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.dv-status.online {
    background: #dcfce7;
    color: #166534;
}

.dv-status.offline {
    background: #fee2e2;
    color: #991b1b;
}

.dv-status.warn {
    background: #ffedd5;
    color: #9a3412;
}

.dv-topbar-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dv-icon-btn {
    border: 1px solid #dbe4ef;
    background: #ffffff;
    color: #173a57;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.dv-icon-btn:hover {
    border-color: #99f6e4;
    color: #0f766e;
    background: #ecfeff;
}

.dv-sync {
    font-size: 12px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    padding: 7px 11px;
}

.dv-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 18px;
}

.dv-hero {
    background: linear-gradient(120deg, #123b56 0%, #0f766e 100%);
    color: #fff;
    border-radius: var(--dv-radius);
    padding: 22px;
    box-shadow: var(--dv-shadow);
    margin-bottom: 18px;
}

.dv-hero small {
    color: rgba(255, 255, 255, 0.86);
}

.dv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.dv-stat {
    background: var(--dv-surface);
    border: 1px solid var(--dv-border);
    border-radius: var(--dv-radius);
    padding: 14px;
    box-shadow: var(--dv-shadow);
}

.dv-stat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dv-stat-top i {
    font-size: 18px;
    color: var(--dv-accent);
}

.dv-stat-value {
    font-weight: 800;
    font-size: 24px;
    color: #14324a;
}

.dv-card {
    background: var(--dv-surface);
    border: 1px solid var(--dv-border);
    border-radius: var(--dv-radius);
    box-shadow: var(--dv-shadow);
    height: 100%;
}

.dv-card-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--dv-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dv-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #173a57;
}

.dv-card-body {
    padding: 14px 16px;
}

.dv-kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    background: #fbfdff;
}

.dv-kv:last-child {
    margin-bottom: 0;
}

.dv-k {
    color: var(--dv-muted);
    font-size: 12px;
}

.dv-v {
    font-weight: 700;
    color: #1e3a56;
}

.dv-copy {
    border: 0;
    background: #ecfeff;
    color: #0f766e;
    border-radius: 8px;
    width: 32px;
    height: 32px;
}

.dv-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.dv-control {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.dv-control.start { background: #dcfce7; color: #166534; }
.dv-control.stop { background: #fee2e2; color: #991b1b; }
.dv-control.restart { background: #ffedd5; color: #9a3412; }
.dv-control.reset { background: #e0f2fe; color: #0c4a6e; }

.dv-ring-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.dv-ring {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.dv-ring svg {
    width: 150px;
    height: 150px;
    max-width: 100%;
    display: block;
}

.dv-ring .dv-circle-bg,
.dv-ring .dv-circle {
    fill: none;
    stroke-width: 2.8;
}

.dv-ring .dv-circle-bg {
    stroke: #e2e8f0;
}

.dv-ring .dv-circle {
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 18px 18px;
    transition: stroke-dasharray 0.35s ease;
}

.dv-ring .dv-circle.dv-cpu { stroke: #0f766e; }
.dv-ring .dv-circle.dv-ram { stroke: #2563eb; }
.dv-ring .dv-circle.dv-disc { stroke: #d97706; }
.dv-ring .dv-circle.dv-net { stroke: #16a34a; }

.dv-ring .dv-pct {
    fill: #173a57;
    font-size: 7.2px;
    font-weight: 800;
    text-anchor: middle;
    dominant-baseline: middle;
}

.dv-ring .dv-label {
    font-size: 12px;
    color: #334155;
    letter-spacing: 0.3px;
}

.dv-ring .chart-value {
    font-size: 15px;
    line-height: 1.15;
    font-weight: 800;
    color: #1f2937;
    word-break: break-word;
}

.dv-ops-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.dv-mini-title {
    font-size: 12px;
    color: var(--dv-muted);
    margin-bottom: 8px;
}

.dv-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dv-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #e0e7ff;
}

.dv-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dv-quick-link {
    text-decoration: none;
    color: #17415f;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    padding: 10px;
    background: #f8fbff;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.dv-quick-link:hover {
    border-color: #99f6e4;
    color: #0f766e;
    background: #ecfeff;
}

.dv-health-score {
    font-size: 34px;
    font-weight: 800;
    color: #173a57;
    line-height: 1;
}

.dv-health-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #edf2f7;
    overflow: hidden;
}

.dv-health-fill {
    height: 100%;
    background: linear-gradient(90deg, #0f766e, #14b8a6);
    transition: width 0.4s ease;
}

.dv-health-fill.warn {
    background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.dv-health-fill.offline {
    background: linear-gradient(90deg, #ef4444, #b91c1c);
}

.dv-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dv-trend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.dv-trend-card {
    border: 1px solid #e8eff7;
    border-radius: 12px;
    padding: 10px;
    background: #fbfdff;
}

.dv-trend-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dv-trend-label {
    font-size: 12px;
    color: #64748b;
}

.dv-trend-value {
    font-weight: 800;
    color: #173a57;
}

.dv-trend-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: #e8eff7;
}

.dv-trend-fill {
    height: 100%;
    width: 0%;
    transition: width 0.35s ease;
}

.dv-trend-fill.cpu { background: linear-gradient(90deg, #0f766e, #14b8a6); }
.dv-trend-fill.ram { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.dv-trend-fill.disk { background: linear-gradient(90deg, #d97706, #f59e0b); }

.dv-extra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.dv-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dv-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e8eff7;
    border-radius: 10px;
    background: #fbfdff;
    padding: 10px;
    margin-bottom: 8px;
}

.dv-list-item:last-child {
    margin-bottom: 0;
}

.dv-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1e3a56;
}

.dv-check input {
    width: 16px;
    height: 16px;
}

.dv-progress-line {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #edf2f7;
    margin-top: 10px;
}

.dv-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0f766e, #14b8a6);
    transition: width 0.3s ease;
}

.dv-activity {
    max-height: 210px;
    overflow-y: auto;
}

.dv-activity-item {
    border-left: 3px solid #0f766e;
    background: #f8fbff;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.dv-activity-item.warn {
    border-left-color: #d97706;
}

.dv-activity-item.error {
    border-left-color: #b91c1c;
}

.dv-activity-time {
    font-size: 11px;
    color: #64748b;
}

@media (max-width: 1200px) {
    .dv-grid,
    .dv-ring-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dv-ops-grid {
        grid-template-columns: 1fr;
    }

    .dv-extra-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dv-topbar-inner {
        flex-wrap: wrap;
    }

    .dv-grid,
    .dv-ring-grid,
    .dv-trend-grid,
    .dv-actions {
        grid-template-columns: 1fr;
    }

    .dv-wrap {
        padding: 14px;
    }
}


/* WISECP v5 client-area bootstrap-independent utilities used by DiyoVM. */
.dv-page .row{display:flex;flex-wrap:wrap;margin-left:-.75rem;margin-right:-.75rem}
.dv-page .row>*{box-sizing:border-box;padding-left:.75rem;padding-right:.75rem;width:100%}
.dv-page .g-3{row-gap:1rem}
.dv-page .align-items-center{align-items:center!important}
.dv-page .mb-1{margin-bottom:.25rem!important}
.dv-page .mb-3{margin-bottom:1rem!important}
.dv-page .fw-bold{font-weight:700!important}
.dv-page .fs-5{font-size:1.25rem!important}
@media (min-width:992px){
  .dv-page .col-lg-3{flex:0 0 auto;width:25%}
  .dv-page .col-lg-4{flex:0 0 auto;width:33.33333333%}
  .dv-page .col-lg-9{flex:0 0 auto;width:75%}
  .dv-page .text-lg-end{text-align:right!important}
}
/* Prevent WISECP theme typography from overriding module dashboard headings. */
.dv-page h1,.dv-page h2,.dv-page h3,.dv-page h4,.dv-page h5,.dv-page h6,
.dv-page p,.dv-page ul,.dv-page ol{margin-top:0}
.dv-page button,.dv-page input,.dv-page select,.dv-page textarea{font:inherit}
