/* resource-dashboard.css — Infrastructure monitoring dashboard */

.rd-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 600px;
    padding: 12px;
    gap: 12px;
    font-family: var(--dx-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: 13px;
    background: #f5f7fa;
}

/* Toolbar */
.rd-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 6px;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.rd-toolbar label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-weight: 500;
}

.rd-input {
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    outline: none;
    transition: border-color .15s;
}
.rd-input:focus { border-color: #4f8ef7; }

.rd-btn {
    background: #4f8ef7;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background .15s;
}
.rd-btn:hover { background: #2d6fd4; }

.rd-spinner { color: #888; font-style: italic; }

/* Service cards */
.rd-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rd-card {
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #ccc;
    padding: 10px 14px;
    min-width: 200px;
    max-width: 260px;
    flex: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
    position: relative;
}

.card-active   { border-left-color: #22c55e; }
.card-busy     { border-left-color: #3b82f6; }
.card-draining { border-left-color: #f59e0b; }
.card-offline  { border-left-color: #ef4444; }
.card-stale    { opacity: .7; }

.rd-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}
.rd-card-header strong { font-size: 13px; color: #1a1a2e; }

.rd-badge {
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.rd-card-pool      { color: #888; font-size: 11px; margin-bottom: 6px; }
.rd-card-metrics   { display: flex; gap: 10px; font-size: 12px; color: #333; margin-bottom: 4px; }
.rd-card-status    { font-size: 11px; font-weight: 600; }
.card-active .rd-card-status   { color: #16a34a; }
.card-busy .rd-card-status     { color: #2563eb; }
.card-draining .rd-card-status { color: #d97706; }
.card-offline .rd-card-status  { color: #dc2626; }
.rd-card-heartbeat { color: #aaa; font-size: 10px; margin-top: 2px; }
.rd-card-version   { color: #ccc; font-size: 10px; }

.rd-empty {
    color: #888;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* Charts section */
.rd-charts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.rd-chart-title {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

.rd-chart {
    width: 100%;
    height: 260px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
