/* ===== Model Status ===== */
.model-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
}
.model-status.loading {
    background: rgba(91, 95, 230, 0.08);
    color: var(--primary);
}
.model-status.ready {
    background: rgba(102, 187, 106, 0.1);
    color: var(--success-dark);
}
.model-status.error {
    background: rgba(186, 26, 26, 0.1);
    color: var(--error);
}

/* ===== Source Buttons Row ===== */
.source-buttons {
    display: flex;
    gap: 10px;
}
.source-buttons .btn {
    flex: 1;
    min-width: 0;
}

/* ===== Confidence Slider ===== */
.confidence-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.confidence-row label {
    white-space: nowrap;
    min-width: 110px;
}
.slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--outline-variant);
    outline: none;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple1), var(--purple2));
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple1), var(--purple2));
    cursor: pointer;
    border: none;
}

/* ===== Canvas Wrapper ===== */
.canvas-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-container);
    border: 1.5px solid var(--outline-variant);
}
.canvas-wrapper canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}
.canvas-wrapper .btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-color: transparent;
    backdrop-filter: blur(6px);
    font-size: 12px;
    padding: 8px 14px;
}

/* ===== Results List ===== */
.result-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--surface-container-lowest);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
}
.result-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.result-label {
    flex-shrink: 0;
    min-width: 80px;
    font-size: 14px;
    text-transform: capitalize;
}
.result-conf {
    flex-shrink: 0;
    width: 44px;
    text-align: right;
}
.result-bar {
    flex: 1;
    height: 5px;
    background: var(--outline-variant);
    border-radius: 3px;
    overflow: hidden;
}
.result-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ===== Settings Screen ===== */
.theme-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface-container-lowest);
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
    border: 2px solid transparent;
}
.theme-card.selected {
    background: var(--primary-container);
    border-color: var(--primary);
}
.theme-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-container);
}
.theme-card.selected .theme-icon {
    background: var(--primary);
    color: white;
}
