body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #495057;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
}

.banner {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

.logo {
    height: 32px;
}

.form-control {
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: transparent;
    border-color: #007bff;
    color: #007bff;
}

.btn-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

.btn-danger {
    background-color: transparent;
    border-color: #dc3545;
    color: #dc3545;
}

.btn-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

video {
    background: #222;
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    aspect-ratio: 16 / 9;
}

#log-container {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 6px;
}

#stats-container {
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 6px;
}

#stats-container p {
    margin-bottom: 5px;
}

.important-note {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.footer {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
    color: #adb5bd;
    font-size: 0.875rem;
}

/* === CORRECTED BUTTON GROUP STYLES === */
.btn-group {
    display: flex; /* Ensures buttons stay side-by-side */
}

/* Remove margin for a clean look */
.btn-group .btn:not(:last-child) {
    margin-right: 0; 
}

/* Remove rounded corners and right border on the inner edges */
.btn-group .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none; /* Removes the right border to prevent color clash */
}

.btn-group .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none; /* Removes the left border to prevent a dividing line */
}

/* Ensure focus state doesn't get hidden by the overlap */
.btn-group .btn:focus {
    z-index: 1;
}

