/* public/css/dashboard.css - Light Theme */

/* --- PLANET TABLE --- */
.planet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 10px;
}

.planet-table th {
    text-align: left;
    color: var(--km-text-light);
    /* #636E72 */
    font-weight: 600;
    padding: 8px 6px;
    border-bottom: 2px solid var(--km-border);
}

.planet-table td {
    padding: 8px 6px;
    border-bottom: 1px solid var(--km-border);
    color: var(--km-text);
}

.planet-row:hover {
    background: rgba(42, 75, 89, 0.05);
    /* Teal tint */
}

.planet-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--km-teal);
}

.dignity-tag {
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 600;
}

.dignity-R {
    color: #d35400;
    background: rgba(211, 84, 0, 0.1);
    border: 1px solid rgba(211, 84, 0, 0.2);
}

.dignity-C {
    color: #c0392b;
    background: rgba(192, 57, 43, 0.1);
}

.dignity-Ex {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

/* --- CHART VISUALIZER --- */
.chart-viz-container {
    width: 100%;
    aspect-ratio: 1/1;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 1px solid var(--km-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-viz-container svg {
    max-width: 100%;
    max-height: 100%;
}

/* --- TOGGLES & CONTROLS --- */
.control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--km-text-light);
    font-weight: 500;
}

.toggle-input {
    display: none;
}

.toggle-track {
    width: 36px;
    height: 20px;
    background: #bdc3c7;
    border-radius: 10px;
    position: relative;
    transition: 0.3s;
}

.toggle-input:checked+.toggle-track {
    background: var(--km-teal);
}

.toggle-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked+.toggle-track::after {
    transform: translateX(16px);
}