/* settings.css */
* {
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
}

:root {
    --primary-color: #ff8000;
    --primary-color-light: #ffb975;
    --primary-color-dark: #964a00;
}

.theme-green {
    --primary-color: #63B22F;
    --primary-color-light: #8BC34A;
    --primary-color-dark: #388E3C;
}

.theme-dark {
    --primary-color: #414141;
    --primary-color-light: #616161;
    --primary-color-dark: #212121;
}

.theme-pink {
    --primary-color: #FF8EAB;
    --primary-color-light: #FFC1D1;
    --primary-color-dark: #C2185B;
}

.theme-neon {
    --primary-color: #D9FF3D;
    --primary-color-light: #E6FF80;
    --primary-color-dark: #A6CC00;
}

.theme-blue {
    --primary-color: #4A90E2;
    --primary-color-light: #7AB3FF;
    --primary-color-dark: #2563EB;
}

html {
    background-color: var(--primary-color);
    transition: background-color 0.5s ease;
}

body {
    margin: 0;
    padding: 15px;
    font-family: "Arial", sans-serif;
    background-color: transparent;
    color: #333;
    height: 100%;
    /* No overflow: hidden here to let selects pop out */
}

/* Background bubbles like main window */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../media/img/bubbles.png');
    background-size: cover;
    opacity: 0.33;
    z-index: -1;
}

h1 {
    font-size: 1.5em;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.settings-container {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-section {
    width: 100%;
}

.settings-section h2 {
    font-size: 1.1em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color-light);
    padding-bottom: 5px;
    transition: color 0.5s ease, border-color 0.5s ease;
}

.video-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #000;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

#localVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.setting-item {
    margin-bottom: 12px;
}

.setting-item label {
    display: block;
    font-weight: bold;
    font-size: 0.85em;
    margin-bottom: 5px;
    color: #555;
}

.setting-item select, 
.setting-item input[type="color"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    font-family: inherit;
    font-size: 0.9em;
    outline: none;
    transition: border-color 0.3s;
}

.setting-item select:focus {
    border-color: var(--primary-color);
}

.setting-item input[type="color"] {
    height: 40px;
    padding: 2px;
    cursor: pointer;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 10px 0;
}
