/* Simulator page styles */

.simulator-panel {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #1e1e2e;
    border-radius: 12px;
    border: 1px solid #333;
}

.simulator-panel h2 {
    margin-top: 0;
    color: #e0e0e0;
}

.simulator-status {
    margin-bottom: 1.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.status-badge.running {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.status-badge.stopped {
    background: rgba(244, 67, 54, 0.15);
    color: #F44336;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.running { background: #4CAF50; }
.status-dot.stopped { background: #F44336; }

.status-details {
    margin-top: 1rem;
    color: #aaa;
}

.status-details p { margin: 4px 0; }
.status-details strong { color: #e0e0e0; }

.simulator-controls {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    margin-top: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.control-group label {
    color: #aaa;
    font-size: 0.85rem;
    font-weight: 500;
}

.sensor-dropdown {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #555;
    background: #2a2a3e;
    color: #e0e0e0;
    font-size: 1rem;
    cursor: pointer;
}

.sensor-dropdown:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.simulator-btn {
    padding: 10px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.simulator-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.start-btn { background: #4CAF50; color: white; }
.start-btn:hover:not(:disabled) { background: #43A047; }

.stop-btn { background: #F44336; color: white; }
.stop-btn:hover:not(:disabled) { background: #E53935; }

.local-mode-notice {
    margin-top: 1rem;
    padding: 12px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    color: #FFC107;
    font-size: 0.9rem;
}

.simulator-message {
    margin-top: 1rem;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.simulator-message.success {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.simulator-message.error {
    background: rgba(244, 67, 54, 0.15);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}
