:root {
    --bg-color: #050505;
    --sleep-color: #4a5568;
    --awake-color: #00ff9d; /* Electric Mint */
    --awake-glow: rgba(0, 255, 157, 0.4);
    --font-mono: 'Courier New', Courier, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    font-family: var(--font-mono);
    color: var(--sleep-color);
    transition: color 1s ease;
}

/* Canvas takes full screen */
#artifact-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Interface sits on top */
.interface {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    pointer-events: none; /* Let clicks pass through to canvas if needed */
}

/* Header */
.status-display {
    text-align: left;
    opacity: 0.8;
}

.label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

#mood-text {
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: -1px;
}

/* Controls (Centered Bottom) */
.controls {
    pointer-events: auto; /* Re-enable clicks for buttons */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.instruction {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.5s ease;
}

/* Custom Toggle Switch */
.toggle-container {
    position: relative;
    width: 60px;
    height: 30px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    border: 1px solid var(--sleep-color);
    transition: .4s;
    border-radius: 30px;
}

.toggle-thumb {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: var(--sleep-color);
    transition: .4s;
    border-radius: 50%;
}

/* Active State Styling */
.active-mode {
    color: var(--awake-color);
}

.active-mode .toggle-label {
    border-color: var(--awake-color);
    box-shadow: 0 0 15px var(--awake-glow);
}

.active-mode .toggle-thumb {
    transform: translateX(30px);
    background-color: var(--awake-color);
}

/* Footer */
.system-logs {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    text-align: right;
    font-size: 0.7rem;
    opacity: 0.5;
}

.technical-note {
    font-size: 0.6rem;
    margin-top: 5px;
    opacity: 0.3;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    #mood-text { font-size: 1.5rem; }
    .interface { padding: 1.5rem; }
}
