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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #4a6fa5;
    color: white;
    border-radius: 10px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #4a6fa5;
}

.section {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.hidden {
    display: none;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

button {
    background-color: #4a6fa5;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
    margin-bottom: 10px;
}

button:hover {
    background-color: #3a5a80;
}

button:disabled,
button:disabled:hover {
    background-color: #a9b4c4;
    cursor: not-allowed;
}

#join-btn {
    background-color: #28a745;
    font-size: 18px;
    padding: 15px 30px;
}

#join-btn:hover {
    background-color: #218838;
}

#chat-section {
    text-align: center;
}

#users-list {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 5px;
    min-height: 50px;
}

.user-item {
    display: inline-block;
    margin: 5px;
    padding: 8px 15px;
    background-color: #4a6fa5;
    color: white;
    border-radius: 20px;
    font-size: 14px;
}

#video-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.video-wrapper {
    position: relative;
    margin: 10px;
    width: 45%;
    min-width: 300px;
}

@media (max-width: 768px) {
    .video-wrapper {
        width: 100%;
    }
}

video {
    width: 100%;
    height: auto;
    background-color: #000;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.video-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
}

.controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.status {
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    font-weight: bold;
}

.status.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.hint {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    margin-bottom: 0;
}

#room-code {
    font-family: monospace;
}

#share-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background-color: #eef3fa;
    border: 1px solid #cfdcec;
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.share-label {
    font-weight: bold;
    color: #33465e;
}

#share-link {
    flex: 1 1 240px;
    min-width: 0;
    font-family: monospace;
    font-size: 14px;
    padding: 8px 10px;
    border: 1px solid #cfdcec;
    border-radius: 4px;
    background-color: #fff;
}

#copy-link {
    margin: 0;
    padding: 8px 16px;
    font-size: 14px;
}
