/* Ring Editor Table */
.ring-editor-wrapper {
    overflow-x: auto;
}

.ring-editor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ring-editor-table th,
.ring-editor-table td {
    padding: 6px 8px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
}

.ring-editor-table th {
    background: #f0f0f0;
    font-weight: 600;
    font-size: 12px;
    color: #555;
    white-space: nowrap;
}

.ring-editor-table td input[type="number"] {
    width: 90px;
    padding: 4px 6px;
    text-align: center;
}

.ring-editor-table td input[type="color"] {
    width: 36px;
    height: 28px;
    padding: 1px;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    background: none;
}

.ring-editor-table td input[type="text"] {
    width: 60px;
    padding: 4px 6px;
    text-align: center;
}

.ring-editor-table .ring-label-cell {
    font-weight: 600;
    min-width: 40px;
}

.ring-editor-table .btn-remove-ring {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.ring-editor-table .btn-remove-ring:hover {
    background: #c0392b;
}

.ring-editor-actions {
    margin-top: 8px;
}

/* Preview Panel */
.preview-panel {
    margin-top: 15px;
    text-align: center;
}

.preview-container {
    display: inline-block;
    background: #e0e0e0;
    padding: 20px;
    border-radius: 6px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.1);
}

#previewCanvas {
    display: block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Status bar + controls (match target-sim) */
.status-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 8px;
}

.sim-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Disclaimer (match target-sim) */
.sim-disclaimer {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 3px solid #95a5a6;
    border-radius: 6px;
    color: #666;
    font-size: 12.5px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .ring-editor-table td input[type="number"] {
        width: 70px;
    }

    .preview-container {
        padding: 10px;
    }
}
