:root {
    --amypo-green: #388e3c;
    --amypo-black: #000000;
    --ui-bg: rgba(255, 255, 255, 0.95);
    --accent: #1976d2;
    --border-color: #ddd;
}

body {
    margin: 0;
    overflow: hidden;
    background: #eef3f8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
#header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 30;
    box-sizing: border-box;
}

.home-btn:hover {
    background: #2e7d32 !important;
}

/* Floating Panels */
#ui {
    position: absolute;
    top: 75px;
    left: 15px;
    background: var(--ui-bg);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 260px;
    z-index: 20;
}

#lab-table {
    position: absolute;
    top: 75px;
    right: 15px;
    background: var(--ui-bg);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 280px;
    max-height: 60vh;
    overflow-y: auto;
    z-index: 20;
}

/* Specific UI Elements */
.btn {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    transition: 0.2s;
}

.btn.active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Tour Overlay */
#tour-overlay {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.85);
    padding: 15px 30px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
    max-width: 700px;
    width: 90%;
    border: 2px solid var(--amypo-green);
}

.tour-controls {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.tour-btn {
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    padding: 8px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    color: #2c3e50;
    transition: 0.2s;
}

.tour-btn:hover {
    background: #e0e6ed;
}

/* Visualization Area */
.viz-area {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    background: radial-gradient(circle at center, #ffffff 0%, #cbd5e1 100%);
}

#labCanvas {
    width: 100%;
    height: 100%;
}

/* Tray & Draggables */
.draggable-item:hover {
    transform: scale(1.1);
    border-color: var(--amypo-green) !important;
}

/* Data Table */
.data-table th {
    background: #f1f5f9;
    padding: 8px;
    font-size: 0.8em;
}

.data-table td {
    padding: 8px;
    border: 1px solid #eee;
}

/* Misc */
.formula-box {
    line-height: 1.5;
}

#tour-arrow {
    position: absolute;
    width: 0;
    height: 0;
    display: none;
    z-index: 1002;
    pointer-events: none;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 25px solid var(--amypo-green);
    animation: bounceLeft 1s infinite alternate;
}

@keyframes bounceLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-10px);
    }
}

/* --- SPLASH SCREEN --- */
#start-splash {
    animation: fadeIn 0.5s ease-out;
}

#start-tour-btn:hover {
    transform: scale(1.05);
    background: #2e7d32 !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
}

#start-tour-btn:active {
    transform: scale(0.98);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}