/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(20, 20, 20, 0.95);
    color: #ccc;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    border-left: 3px solid;
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-hide {
    opacity: 0;
    transform: translateX(400px);
}

.toast-success {
    border-left-color: #4caf50;
}

.toast-info {
    border-left-color: #2196f3;
}

.toast-warning {
    border-left-color: #ff9800;
}

.toast-error {
    border-left-color: #f44336;
}

.toast span {
    flex: 1;
}

/* Debug Panel Styles */
.debug-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(10, 10, 10, 0.95);
    color: #ccc;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    display: none;
}

.debug-panel.visible {
    display: block;
}

.debug-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.debug-panel h3 {
    margin: 0;
    color: #fff;
    font-size: 14px;
}

.debug-panel-close {
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 18px;
    padding: 0 5px;
    border-radius: 3px;
}

.debug-panel-close:hover {
    background: #333;
    color: #fff;
}

.debug-section {
    margin-bottom: 15px;
}

.debug-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    user-select: none;
}

.debug-section-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.debug-section-title {
    font-weight: bold;
    color: #fff;
}

.debug-section-content {
    margin-top: 8px;
    padding-left: 10px;
    border-left: 2px solid #333;
}

.debug-section.collapsed .debug-section-content {
    display: none;
}

.debug-eyeset {
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.debug-eyeset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.debug-eyeset-label {
    font-weight: bold;
    color: #fff;
}

.debug-eyeset-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.debug-eyeset-status.visible {
    background: #4caf50;
    color: #000;
}

.debug-eyeset-status.hidden {
    background: #666;
    color: #fff;
}

.debug-eyeset-status.scripted {
    background: #2196f3;
    color: #fff;
}

.debug-eyeset-status.tracking {
    background: #ff9800;
    color: #000;
}

.debug-eyeset-status.autonomous {
    background: #9e9e9e;
    color: #000;
}

.debug-eyeset-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    font-size: 11px;
    color: #aaa;
}

.debug-eyeset-info-item {
    display: flex;
    justify-content: space-between;
}

.debug-eyeset-info-label {
    color: #777;
}

.debug-eyeset-info-value {
    color: #ccc;
}

/* Test Mode Styles */
.test-mode-overlay {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 450px;
    max-height: calc(100vh - 100px);
    z-index: 10000;
    display: none;
    pointer-events: auto;
}

.test-mode-overlay.visible {
    display: block;
}

.test-mode-panel {
    background: rgba(20, 20, 20, 0.95);
    color: #ccc;
    padding: 20px;
    border-radius: 8px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border: 1px solid #444;
    position: relative;
}

.test-mode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
    cursor: move;
    user-select: none;
}

.test-mode-header h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    cursor: move;
    flex: 1;
}

.test-mode-close {
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 24px;
    padding: 0 10px;
    border-radius: 4px;
    line-height: 1;
    flex-shrink: 0;
}

.test-mode-close:hover {
    background: #333;
    color: #fff;
}

.test-mode-section {
    margin-bottom: 20px;
}

.test-mode-section label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: bold;
}

.test-mode-section select {
    width: 100%;
    padding: 8px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #ccc;
    font-size: 14px;
}

.test-mode-section select:focus {
    outline: none;
    border-color: #2196f3;
}

.test-mode-eyeset-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.test-mode-eyeset-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.test-mode-eyeset-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #444;
}

.test-mode-eyeset-item.selected {
    border-color: #2196f3;
    background: rgba(33, 150, 243, 0.1);
}

.test-mode-eyeset-item input[type="checkbox"] {
    margin-bottom: 5px;
    cursor: pointer;
}

.test-mode-eyeset-item label {
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    margin: 0;
    font-weight: normal;
}

.test-mode-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.test-mode-button {
    flex: 1;
    padding: 12px;
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.test-mode-button:hover {
    background: #1976d2;
}

.test-mode-button:disabled {
    background: #555;
    cursor: not-allowed;
}

.test-mode-button.secondary {
    background: #666;
}

.test-mode-button.secondary:hover {
    background: #777;
}

.test-mode-script-info {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 12px;
    color: #aaa;
}

.test-mode-script-info strong {
    color: #ccc;
}

