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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: white;
    height: 100vh;
    overflow: hidden;
}

.main-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.video-container {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background-color: #000;
}

.video-item {
    position: relative;
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-name {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: #1a1a1a;
    gap: 0.5rem;
    border-top: 1px solid #2a2a2a;
}

.control-button {
    background-color: #2a2a2a;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-button:hover {
    background-color: #404040;
}

.control-button.leave {
    background-color: #dc3545;
}

.control-button.leave:hover {
    background-color: #c82333;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
}

.close {
    cursor: pointer;
    font-size: 1.5rem;
    color: #666;
}

.modal-body {
    padding: 0;
    display: flex;
    flex: 1;
    overflow: hidden;
}

.settings-menu {
    width: 200px;
    background-color: #2a2a2a;
    padding: 1rem 0;
}

.settings-menu .menu-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
}

.settings-menu .menu-item:hover {
    background-color: #404040;
}

.settings-menu .menu-item.active {
    background-color: #404040;
    color: white;
}

.settings-menu .menu-item i {
    width: 20px;
}

.settings-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
}

.settings-section h3 {
    margin-bottom: 1rem;
    color: #ccc;
}

.device-select {
    width: 100%;
    padding: 0.5rem;
    background-color: #2a2a2a;
    border: 1px solid #404040;
    color: white;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.audio-meter {
    height: 4px;
    background-color: #2a2a2a;
    border-radius: 2px;
    margin: 1rem 0;
}

.test-button {
    padding: 0.5rem 1rem;
    background-color: #2a2a2a;
    border: 1px solid #404040;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.video-preview {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-menu {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 20px;
    background-color: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 200px;
}

.dropdown-menu .menu-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.dropdown-menu .menu-item:hover {
    background-color: #404040;
}

.dropdown-menu .menu-item i {
    width: 20px;
}

/* Show classes */
.show {
    display: block;
}
