:root {
    --primary-color: #1e3a8a;      /* Dark Navy Blue */
    --primary-glow: rgba(30, 58, 138, 0.3);
    --accent-success: #064e3b;     /* Very Dark Green */
    --accent-warning: #78350f;     /* Dark Amber/Brown */
    --accent-error: #7f1d1d;       /* Dark Red */
    --bg-dark: #f8fafc;
    --text-main: #000000;          /* Pure Black for maximum contrast */
    --text-muted: #1e293b;         /* Dark Slate */
    --hud-text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95), 0 0 6px rgba(255, 255, 255, 0.85);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f1f5f9;
    color: var(--text-main);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}
button, input, select, table {
    font-family: inherit;
}
/* Fullscreen Viewport Container */
#viewport-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f1f5f9;
    z-index: 1;
    overflow: hidden;
}
#pybullet-viewport {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 0;
    box-shadow: none;
    cursor: grab;
}
#pybullet-viewport:active {
    cursor: grabbing;
}
/* Transparent HUD Panels with Premium Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    border-radius: 16px;
}
/* Sidebar Styling (Light-HUD layout) */
.sidebar {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 360px;
    height: calc(100vh - 40px);
    z-index: 10;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    pointer-events: auto;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(37, 99, 235, 0.2);
    padding-bottom: 10px;
}
.sidebar-header .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e3a8a;
}
.sidebar-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-shadow: var(--hud-text-shadow);
}
.brand-icon {
    filter: drop-shadow(0 1px 2px rgba(255,255,255,0.8));
}
.badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-shadow: var(--hud-text-shadow);
    border: 1px solid currentColor;
}
.badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.badge.online {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
}
.badge.online::before {
    background: var(--accent-success);
    box-shadow: 0 0 8px var(--accent-success);
}
.badge.offline {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-error);
}
.badge.offline::before {
    background: var(--accent-error);
}
/* Tab Bar Navigation inside Sidebar */
.sidebar-tabs {
    display: flex;
    gap: 4px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 3px;
    justify-content: space-between;
}
.tab-btn {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 4px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}
.tab-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary-color);
}
.tab-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
/* Tab Panel Transitions */
.tab-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.tab-panel.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 1;
    flex-grow: 1;
    min-height: 0;
}
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-section.flex-grow {
    flex-grow: 1;
    min-height: 0;
}
.sidebar-section h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    text-shadow: var(--hud-text-shadow);
}
/* Operations Steps */
.status-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.status-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-shadow: var(--hud-text-shadow);
    transition: all 0.2s ease;
}
.status-step .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(15, 23, 42, 0.5);
    transition: all 0.2s ease;
}
.status-step.active {
    color: var(--primary-color);
}
.status-step.active .dot {
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    border-color: var(--primary-color);
}
.status-step.completed {
    color: var(--accent-success);
}
.status-step.completed .dot {
    background: var(--accent-success);
    border-color: var(--accent-success);
}
.status-step.error {
    color: var(--accent-error);
}
.status-step.error .dot {
    background: var(--accent-error);
    border-color: var(--accent-error);
}
/* Task Plan List */
.plan-list {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    max-height: 120px;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.plan-item {
    font-size: 0.8rem;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    border-left: 3px solid rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}
.plan-item.active {
    background: rgba(37, 99, 235, 0.08);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}
.plan-item.completed {
    border-left-color: var(--accent-success);
    color: rgba(15, 23, 42, 0.4);
    text-decoration: line-through;
    opacity: 0.6;
}
/* Monospace Log Console */
.log-console {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.8rem;
    line-height: 1.4;
    border-radius: 10px;
    padding: 10px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.log-entry {
    color: var(--text-main);
    font-weight: 600;
}
.log-entry.info { color: #1e3a8a; }
.log-entry.success { color: #064e3b; }
.log-entry.warn { color: #78350f; }
.log-entry.error { color: #7f1d1d; }
.placeholder-text {
    color: var(--text-muted);
    text-align: center;
    margin: auto;
    font-size: 0.85rem;
}
/* Scenarios Tab styling */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.scenario-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.scenario-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
    transform: translateY(-1.5px);
}
.scenario-icon {
    color: var(--primary-color);
    background: rgba(30, 58, 138, 0.06);
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scenario-card h4 {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.2;
}
.preset-commands-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.preset-command-item {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}
.preset-command-item:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
/* Objects Tab Table */
.table-container {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.objects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}
.objects-table th, .objects-table td {
    padding: 10px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.objects-table th {
    background: rgba(15, 23, 42, 0.03);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}
.objects-table tr:last-child td {
    border-bottom: none;
}
.objects-table td {
    color: var(--text-main);
    font-weight: 600;
}
.tag-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}
.tag-badge.safe {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}
/* History Tab list */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}
.history-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
}
.history-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--primary-color);
}
.history-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}
.history-card-prompt {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.3;
}
.history-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 6px;
    margin-top: 2px;
}
.history-score {
    font-size: 0.85rem;
    font-weight: 700;
}
.history-score.high { color: #047857; }
.history-score.medium { color: #b45309; }
.history-score.low { color: #b91c1c; }
.history-actions {
    display: flex;
    gap: 4px;
}
.history-action-btn {
    background: transparent;
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--primary-color);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s ease;
}
.history-action-btn:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: var(--primary-color);
}
/* Analytics Tab KPIs & Charts */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.kpi-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.kpi-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
}
.kpi-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0.02em;
}
.analytics-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 12px;
}
.chart-bar-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.chart-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}
.chart-track {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
}
.chart-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
/* System settings form controls */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}
.select-wrapper {
    position: relative;
    width: 100%;
}
.glass-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 24px 8px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
}
.glass-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.1);
}
.select-wrapper::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--text-muted);
    pointer-events: none;
}
/* Floating Chat Input Box & Buttons */
.chat-container {
    position: absolute;
    bottom: 30px;
    left: calc(50% + 180px);
    transform: translateX(-50%);
    width: 650px;
    z-index: 10;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
}
#chat-form {
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative;
}
#chat-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 12px 18px;
    border-radius: 12px;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
}
#chat-input:focus {
    border-color: #1d4ed8;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
}
.chat-action-btn {
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 46px;
    height: 46px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    outline: none;
}
.chat-action-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.12);
}
.chat-action-btn:active {
    transform: translateY(0);
}
#submit-btn {
    background: var(--primary-color);
    color: white;
}
#submit-btn:hover {
    background: #1d4ed8;
}
#submit-btn.is-executing {
    position: relative;
    background: #1e3a8a;
}
#submit-btn.is-executing:hover {
    background: #172554;
}
#submit-btn.is-executing::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: submitExecutionSpin 0.8s linear infinite;
}
#submit-btn .stop-square {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: #fff;
    position: relative;
    z-index: 1;
}
@keyframes submitExecutionSpin {
    to { transform: rotate(360deg); }
}
#submit-btn:disabled, #chat-input:disabled, #mic-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}
/* Pulsing voice recorder active glow */
#mic-btn.recording {
    border-color: var(--accent-error);
    color: var(--accent-error);
    background: rgba(239, 68, 68, 0.08);
    animation: pulseMic 1.5s infinite alternate;
}
@keyframes pulseMic {
    0% {
        box-shadow: 0 0 4px rgba(239, 68, 68, 0.2);
    }
    100% {
        box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
    }
}
.chat-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #0f172a;
    font-weight: 600;
    text-shadow: var(--hud-text-shadow);
}
/* Toggle Switch styling */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.toggle-switch input {
    display: none;
}
.slider {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
    background-color: rgba(15, 23, 42, 0.2);
    border-radius: 18px;
    transition: .3s;
    border: 1px solid rgba(0, 0, 0, 0.15);
}
.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: #0f172a;
    border-radius: 50%;
    transition: .3s;
}
.toggle-switch input:checked + .slider {
    background-color: var(--primary-color);
    border-color: #1d4ed8;
}
.toggle-switch input:checked + .slider:before {
    background-color: white;
    transform: translateX(14px);
}
.toggle-label {
    user-select: none;
}
/* Custom Text and Primary Buttons */
.text-btn {
    background: none;
    border: none;
    color: #1d4ed8;
    cursor: pointer;
    font-weight: 700;
    transition: color 0.2s;
    font-size: 0.8rem;
    text-shadow: var(--hud-text-shadow);
}
.text-btn:hover {
    color: #0f172a;
}
.primary-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px var(--primary-glow);
}
.primary-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 20px rgba(29, 78, 216, 0.4);
}
/* Header overlays */
.header-overlay {
    position: absolute;
    top: 20px;
    left: 390px;
    right: 20px;
    z-index: 10;
    pointer-events: none;
}
.header-overlay h1 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #0f172a;
    text-shadow: var(--hud-text-shadow);
    margin-bottom: 2px;
}
.header-overlay p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-shadow: var(--hud-text-shadow);
}
/* Autocomplete Suggestion Panel styling */
.autocomplete-panel {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(30, 58, 138, 0.15);
    border-radius: 12px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 100;
    max-height: 150px;
    overflow-y: auto;
}
.autocomplete-panel.hidden {
    display: none;
}
.autocomplete-item {
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}
.autocomplete-item:hover {
    background: rgba(30, 58, 138, 0.06);
    color: var(--primary-color);
}
/* Modal Overlay for Score Card */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.modal-content {
    width: 500px;
    max-width: 90%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    border-radius: 16px;
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.modal-content h2 {
    font-size: 1.35rem;
    text-align: center;
    border-bottom: 2px solid rgba(37, 99, 235, 0.2);
    padding-bottom: 10px;
    color: #0f172a;
}
.score-md-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #334155;
}
.score-md-content h3 {
    margin: 10px 0 4px 0;
    font-size: 1rem;
    color: #1d4ed8;
}
.score-md-content ul {
    padding-left: 18px;
    margin-bottom: 8px;
}
.score-md-content li {
    margin-bottom: 2px;
}
.score-md-content strong {
    color: #0f172a;
}
/* Scrollbars styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.25);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 99, 235, 0.45);
}
/* Scrollable Objects Table */
.table-container {
    max-height: calc(100vh - 200px); /* Leave room for header/tabs */
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.objects-table {
    width: 100%;
    border-collapse: collapse;
}

.objects-table thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 10;
    border-bottom: 2px solid #e2e8f0;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.objects-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

/* History Rating Buttons */
.rating-btn {
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    opacity: 0.6;
}

.rating-btn:hover {
    background: #f1f5f9;
    opacity: 0.8;
}

.rating-btn.active {
    background: #e2e8f0;
    border-color: #94a3b8;
    opacity: 1;
    transform: scale(1.1);
}
.catalog-object-row {
    cursor: grab;
    user-select: none;
}
.catalog-object-row:active {
    cursor: grabbing;
}
.catalog-object-row.is-dragging {
    opacity: 0.45;
}
#pybullet-viewport.catalog-drop-target {
    outline: 3px dashed #2563eb;
    outline-offset: -6px;
    filter: saturate(1.1);
}
.object-delete-button {
    position: fixed;
    z-index: 1000;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 21px;
    line-height: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(127, 29, 29, 0.4);
}
.object-delete-button:hover {
    background: #dc2626;
    transform: translate(-50%, -50%) scale(1.08);
}
.object-delete-button.hidden {
    display: none;
}
