body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.lab-hero {
    text-align: center;
    background: #f7f7f7;
    padding: 30px 10px;
}

.lab-layout {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.lab-sidebar {
    width: 250px;
    background: #eee;
    padding: 15px;
    border-radius: 8px;
}

.lab-sidebar ul {
    list-style: none;
    padding: 0;
}

.lab-sidebar li {
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 4px;
}

.lab-sidebar li:hover,
.lab-sidebar li.active {
    background: #4ecdc4;
    color: white;
}

.lab-sidebar li.completed {
    color: green;
    font-weight: bold;
}

.lab-main {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#experiment-canvas {
    width: 100%;
    height: 300px;
    border: 1px solid #ccc;
    background: #fafafa;
    display: block;
    margin-bottom: 15px;
}

.control-group {
    margin-bottom: 10px;
}

.quiz-box {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
}

.ai-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.ai-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.ai-modal-content {
    background: #fff;
    margin: 100px auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.ai-modal-content textarea {
    width: 100%;
    height: 80px;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

#controls-panel {
    margin-bottom: 20px;
}

    /* Responsive */
    @media (max-width: 768px) {
      .lab-layout {
        grid-template-columns: 1fr;
      }
      
      .lab-sidebar {
        height: auto;
      }
    }