Loading files
/* ==========================================================================
OWL Controller (Networked) - AI Tab
Model selection and class filtering for YOLO detection
========================================================================== */
.ai-panel {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
gap: 1rem;
padding: 1rem 2rem;
}
/* Status banner — same pattern as GPS */
.ai-status-banner {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.6rem 1rem;
border-radius: var(--radius-md);
font-weight: 700;
font-size: 1rem;
letter-spacing: 1px;
}
.ai-status-banner.connected {
background: var(--success);
color: white;
}
.ai-status-banner.no-model {
background: var(--warning);
color: #1a1a2e;
}
.ai-status-banner.disconnected {
background: #555;
color: #aaa;
}
/* Model selector row */
.ai-model-row {
display: flex;
flex-direction: column;
gap: 0.5rem;
background: #f5f7fa;
border-radius: var(--radius-md);
padding: 0.8rem 1rem;
}
.ai-model-selector {
display: flex;
align-items: center;
gap: 1rem;
}
.ai-model-row label {
font-weight: 700;
font-size: 0.9rem;
color: var(--text-dark);
white-space: nowrap;
}
.select-wrapper {
flex: 1;
min-width: 0;
position: relative;
}
.select-wrapper::after {
content: '';
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 6px solid #666;
pointer-events: none;
}
.ai-model-select {
width: 100%;
padding: 0.6rem 2rem 0.6rem 0.8rem;
font-size: 1rem;
border: 2px solid #ddd;
border-radius: var(--radius-sm);
background: white;
color: var(--text-dark);
cursor: pointer;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.ai-model-select:focus {
border-color: var(--primary);
outline: none;
}
.ai-model-info {
display: flex;
gap: 0.5rem;
align-items: center;
}
.ai-model-badge {
display: inline-block;
padding: 0.25rem 0.6rem;
border-radius: var(--radius-sm);
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.5px;
background: #e8edf2;
color: var(--text-light);
}
.ai-model-badge.seg {
background: #d5f5e3;
color: #1e8449;
}
.ai-model-badge.det {
background: #d6eaf8;
color: #2471a3;
}
/* Classes section */
.ai-classes-section {
flex: 1;
display: flex;
flex-direction: column;
background: #f5f7fa;
border-radius: var(--radius-md);
padding: 0.8rem 1rem;
min-height: 0;
overflow: hidden;
}
.ai-classes-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.5rem;
}
.ai-classes-title {
font-weight: 700;
font-size: 0.9rem;
color: var(--text-dark);
}
.ai-classes-hint {
font-size: 0.8rem;
color: var(--text-light);
}
/* Button grid */
.ai-classes-grid {
flex: 1;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-content: flex-start;
overflow-y: auto;
padding: 0.25rem 0;
}
.ai-class-btn {
min-width: 140px;
min-height: 56px;
padding: 0.5rem 1rem;
font-size: 1rem;
font-weight: 600;
border: 3px solid #ccc;
border-radius: var(--radius-md);
background: white;
color: var(--text-dark);
cursor: pointer;
transition: all 0.15s ease;
text-transform: capitalize;
user-select: none;
-webkit-user-select: none;
}
.ai-class-btn:active {
transform: scale(0.97);
}
.ai-class-btn.selected {
background: var(--primary);
color: white;
border-color: var(--primary);
box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}
/* Action bar */
.ai-action-bar {
display: flex;
justify-content: flex-end;
gap: 0.75rem;
padding-top: 0.25rem;
}
46296531dThis file is pinned to the selected release. Download the original to open it in your design tool.