body {
    background-color: #121212;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#controls {
    padding: 10px 20px;
    background: #1e1e1e;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    z-index: 100;
}

input[type="text"] {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #252526;
    color: white;
    width: 180px;
}

button {
    padding: 6px 16px;
    background-color: #007acc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}
button:hover { background-color: #005f9e; }

/* --- VIDEO AREA FIX --- */
#videoContainer {
    flex-grow: 1;
    overflow: auto;
    position: relative;
    background-color: #000;
    
    /* GRID places items in the center, but allows scrolling if they overflow */
    display: grid;
    place-items: center; 
}

canvas {
    display: block;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    background-color: #111; 
    outline: none;
}
/* --------------------- */

#zoomBar {
    position: fixed;
    right: 20px;
    top: 55%;
    transform: translateY(-50%);
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(5px);
    padding: 8px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid #444;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 999;
}

.zoom-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #aaa;
    padding: 8px 5px;
    border-radius: 12px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
    width: 50px;
    text-align: center;
}
.zoom-btn:hover { background: rgba(255,255,255,0.1); color: white; }
.zoom-btn.active { background: #007acc; color: white; font-weight: bold; }



/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #444;
    width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: white;
}

.modal-content h3 { margin-top: 0; border-bottom: 1px solid #333; padding-bottom: 10px; }

.setting-group {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}


/*  LOGO STYLE */
.logo { 
    font-family: 'Inter', sans-serif; 
    font-weight: 900; 
    font-size: 1.5em; 
    color: #fff; 
    text-decoration: none; 
    letter-spacing: -0.5px;
    display: inline-block;
}

.logo .mid { 
    color: #007acc; /* The DE part */
}

.logo .dot { 
    color: #10b981; /* The Green Dot */
    font-size: 1.2em;
    line-height: 0;
}


input[type="range"] { width: 100%; cursor: pointer; }
select { padding: 5px; background: #252526; color: white; border: 1px solid #444; }
hr { border: 0; border-top: 1px solid #333; }