/* _content/EnergyMonitor/Pages/Config.razor.rz.scp.css */
.config-page[b-584a4h0mok] {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    direction: rtl;
}

.config-header[b-584a4h0mok] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.config-header h1[b-584a4h0mok] {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #f0f0f0;
}

.config-device-selector[b-584a4h0mok] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    background: #16162a;
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid #2a2a3e;
}

.config-device-selector label[b-584a4h0mok] {
    font-size: 13px;
    color: #aaa;
    white-space: nowrap;
}

.config-device-selector select[b-584a4h0mok] {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #2a2a3e;
    background: #1a1a2e;
    color: #f0f0f0;
    font-size: 14px;
    font-family: Vazirmatn, sans-serif;
    outline: none;
}

.config-device-selector select:focus[b-584a4h0mok] {
    border-color: #4361ee;
}

.config-placeholder[b-584a4h0mok] {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.placeholder-icon[b-584a4h0mok] {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.config-placeholder p[b-584a4h0mok] {
    font-size: 16px;
    margin-bottom: 8px;
}

.placeholder-hint[b-584a4h0mok] {
    font-size: 13px;
    color: #555;
}

.config-card[b-584a4h0mok] {
    background: #16162a;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #2a2a3e;
}

.config-card-header[b-584a4h0mok] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2a2a3e;
}

.device-badge[b-584a4h0mok] {
    background: #4361ee20;
    color: #4361ee;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.config-source[b-584a4h0mok] {
    font-size: 12px;
    color: #666;
}

.config-section[b-584a4h0mok] {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a2a3e;
}

.config-section:last-of-type[b-584a4h0mok] {
    border-bottom: none;
}

.section-title[b-584a4h0mok] {
    font-size: 14px;
    font-weight: 700;
    color: #f0f0f0;
    margin: 0 0 16px;
}

.form-row[b-584a4h0mok] {
    margin-bottom: 14px;
}

.form-row label[b-584a4h0mok] {
    display: block;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 6px;
}

.form-row input[b-584a4h0mok] {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #2a2a3e;
    background: #1a1a2e;
    color: #f0f0f0;
    font-size: 14px;
    font-family: Vazirmatn, sans-serif;
    outline: none;
    transition: 0.2s;
    box-sizing: border-box;
}

.form-row input:focus[b-584a4h0mok] {
    border-color: #4361ee;
    box-shadow: 0 0 0 2px #4361ee30;
}

.hint[b-584a4h0mok] {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.config-actions[b-584a4h0mok] {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #2a2a3e;
}

.btn-save[b-584a4h0mok] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #4361ee;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: Vazirmatn, sans-serif;
    cursor: pointer;
    transition: 0.2s;
}

.btn-save:hover:not(:disabled)[b-584a4h0mok] {
    background: #3651d4;
}

.btn-save:disabled[b-584a4h0mok] {
    opacity: 0.5;
    cursor: not-allowed;
}

.config-toast[b-584a4h0mok] {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
}

.config-toast.success[b-584a4h0mok] {
    background: #08998120;
    color: #089981;
    border: 1px solid #08998140;
}

.config-toast.error[b-584a4h0mok] {
    background: #f2364520;
    color: #f23645;
    border: 1px solid #f2364540;
}

.config-toast.saving[b-584a4h0mok] {
    background: #2962ff20;
    color: #2962ff;
    border: 1px solid #2962ff40;
}

.config-note[b-584a4h0mok] {
    margin-top: 16px;
    padding: 10px 14px;
    background: #1a1a2e;
    border-radius: 8px;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.toggle-row[b-584a4h0mok] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.toggle-row > label:first-child[b-584a4h0mok] { flex: 1; min-width: 150px; font-size: 13px; color: #aaa; }
.toggle-row .hint[b-584a4h0mok] { width: 100%; }

.toggle-switch[b-584a4h0mok] {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    display: inline-block;
}
.toggle-switch input[b-584a4h0mok] { opacity: 0; width: 0; height: 0; }
.toggle-slider[b-584a4h0mok] {
    position: absolute; cursor: pointer; inset: 0;
    background: #2a2a3e; border-radius: 26px;
    transition: 0.3s;
}
.toggle-slider[b-584a4h0mok]::before {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    left: 3px; bottom: 3px;
    background: #666; border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider[b-584a4h0mok] { background: #4361ee; }
.toggle-switch input:checked + .toggle-slider[b-584a4h0mok]::before {
    background: #fff;
    transform: translateX(22px);
}

@media (max-width: 480px) {
    .config-page[b-584a4h0mok] { padding: 16px 12px 40px; }
    .config-card[b-584a4h0mok] { padding: 16px; }
}
