* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
}

header h1 {
    margin-bottom: 10px;
    font-size: 2.5rem;
}

header p {
    font-size: 18px;
    opacity: 0.9;
}

.instructions {
    background-color: #e3f2fd;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.instructions h3 {
    margin-bottom: 10px;
    color: #1976d2;
}

.instructions ul {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 5px;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.video-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.video-wrapper {
    position: relative;
    width: 45%;
    min-width: 300px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.video-wrapper video {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.video-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-primary {
    background-color: #4a6fa5;
    color: white;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-secondary {
    background-color: #3498db;
    color: white;
}

.btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.status {
    text-align: center;
    padding: 15px;
    background-color: #ecf0f1;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
}

#statusText {
    font-size: 18px;
    font-weight: 500;
}

.chat-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.chat-messages {
    height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 70%;
    word-wrap: break-word;
}

.message.sent {
    background-color: #4a6fa5;
    color: white;
    margin-left: auto;
}

.message.received {
    background-color: #e9ecef;
    color: #333;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
}

.chat-input button {
    padding: 12px 24px;
    background-color: #4a6fa5;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
}

.troubleshooting {
    background-color: #fff8e1;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.troubleshooting h3 {
    margin-bottom: 10px;
    color: #ff8f00;
}

.troubleshooting ul {
    padding-left: 20px;
}

.troubleshooting li {
    margin-bottom: 8px;
}

.troubleshooting strong {
    color: #e65100;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .video-wrapper {
        min-width: 100%;
    }
    
    .video-container {
        flex-direction: column;
        align-items: center;
    }
    
    .video-wrapper video {
        height: 250px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .chat-input {
        flex-direction: column;
    }
    
    .chat-input button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .video-wrapper video {
        height: 200px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    header p {
        font-size: 16px;
    }
    
    #statusText {
        font-size: 16px;
    }
}