:root {
    --primary-color: #00ff88;
    --alert-color: #ff4444;
    --bg-overlay: rgba(0, 0, 0, 0.6);
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: #1a1a1a;
    color: white;
    overflow: hidden;
    /* Prevent scrolling */
    height: 100vh;
    width: 100vw;
}

#app-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#output-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through to canvas if needed, but buttons need pointer-events auto */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.status-bar {
    background: var(--bg-overlay);
    padding: 10px 15px;
    border-radius: 20px;
    text-align: center;
    font-weight: bold;
    backdrop-filter: blur(5px);
    align-self: center;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.status-bar.active {
    background-color: var(--primary-color);
    color: black;
}

#gesture-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

#gesture-label {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.2s;
}

:root {
    --primary-color: #00ff88;
    --alert-color: #ff4444;
    --bg-overlay: rgba(0, 0, 0, 0.6);
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: #1a1a1a;
    color: white;
    overflow: hidden;
    /* Prevent scrolling */
    height: 100vh;
    width: 100vw;
}

#app-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#output-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through to canvas if needed, but buttons need pointer-events auto */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.status-bar {
    background: var(--bg-overlay);
    padding: 10px 15px;
    border-radius: 20px;
    text-align: center;
    font-weight: bold;
    backdrop-filter: blur(5px);
    align-self: center;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.status-bar.active {
    background-color: var(--primary-color);
    color: black;
}

#gesture-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

#gesture-label {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.2s;
}

#gesture-confidence {
    font-size: 1rem;
    opacity: 0.8;
}

#controls {
    pointer-events: auto;
    display: flex;
    gap: 10px;
    justify-content: center;
    position: absolute;
    bottom: 30px;
    width: 100%;
    z-index: 20;
}

.btn {
    background: white;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: scale(0.95);
}

.debug-log {
    background: rgba(0, 0, 0, 0.5);
    font-family: monospace;
    font-size: 0.8rem;
    padding: 5px;
    border-radius: 5px;
    max-height: 100px;
    overflow-y: auto;
    pointer-events: auto;
    margin-bottom: 10px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 300px;
}

.sim-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #333;
    color: white;
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
}

.sim-btn:hover {
    background: #444;
}

.btn.secondary {}

#gesture-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

#gesture-label {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.2s;
}

:root {
    --primary-color: #00ff88;
    --alert-color: #ff4444;
    --bg-overlay: rgba(0, 0, 0, 0.6);
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: #1a1a1a;
    color: white;
    overflow: hidden;
    /* Prevent scrolling */
    height: 100vh;
    width: 100vw;
}

#app-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#output-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through to canvas if needed, but buttons need pointer-events auto */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.status-bar {
    background: var(--bg-overlay);
    padding: 10px 15px;
    border-radius: 20px;
    text-align: center;
    font-weight: bold;
    backdrop-filter: blur(5px);
    align-self: center;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.status-bar.active {
    background-color: var(--primary-color);
    color: black;
}

#gesture-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

#gesture-label {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.2s;
}

#gesture-confidence {
    font-size: 1rem;
    opacity: 0.8;
}

#controls {
    pointer-events: auto;
    display: flex;
    gap: 10px;
    justify-content: center;
    position: absolute;
    bottom: 30px;
    width: 100%;
    z-index: 20;
}

.btn {
    background: white;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: scale(0.95);
}

.debug-log {
    background: rgba(0, 0, 0, 0.5);
    font-family: monospace;
    font-size: 0.8rem;
    padding: 5px;
    border-radius: 5px;
    max-height: 100px;
    overflow-y: auto;
    pointer-events: auto;
    margin-bottom: 10px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 300px;
}

.sim-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #333;
    color: white;
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
}

.sim-btn:hover {
    background: #444;
}

.btn.secondary {
    background: #666;
    color: white;
    margin-top: 10px;
}

#watermark {
    position: absolute;
    bottom: 80px;
    /* Above the controls */
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 0;
    text-align: center;
    width: 100%;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}