:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.logo p {
    color: #7f8c8d;
    font-size: 1.1em;
}

/* Join Container */
.join-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.join-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

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

.input-group input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.separator::before,
.separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #ddd;
}

.separator::before {
    left: 0;
}

.separator::after {
    right: 0;
}

.separator span {
    background: white;
    padding: 0 10px;
    color: #7f8c8d;
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: #3498db;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #2980b9;
}

/* Meeting Container */
.meeting-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.meeting-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.meeting-info {
    flex: 1;
}

.meeting-info h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    color: #212529;
}

.share-button {
    padding: 0.5rem 1rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.share-button:hover {
    background-color: #218838;
}

.participants-info {
    flex: 0 0 200px;
    margin: 0 2rem;
}

.participants-info h3 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-size: 1rem;
}

.participants-list {
    max-height: 150px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.5rem;
}

.participant-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #f1f3f5;
}

.participant-item:last-child {
    border-bottom: none;
}

.participant-name {
    margin-right: auto;
}

.participant-status {
    display: flex;
    gap: 0.5rem;
}

.status-icon {
    color: #6c757d;
}

.status-icon.active {
    color: #28a745;
}

.control-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #f8f9fa;
    color: #212529;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
    transition: all 0.2s;
}

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

.control-button.active {
    background-color: #28a745;
    color: white;
}

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

.leave-button {
    padding: 0.5rem 1rem;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
}

.video-container {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

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

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

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

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

.control-button:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.control-button.active {
    background: #e74c3c;
}

.control-button.active:hover {
    background: #c0392b;
}

/* Chat Container */
.chat-container {
    height: 300px;
    display: flex;
    flex-direction: column;
    background: white;
    border-top: 1px solid #ddd;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.chat-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    background: #f8f9fa;
}

.chat-message.local {
    background: #e3f2fd;
    margin-left: 20%;
}

.chat-input {
    display: flex;
    padding: 10px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}

.chat-input button {
    width: auto;
    padding: 10px 20px;
}

/* Speech Text Container */
.speech-text-container {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

.speech-text-container h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

#speechText {
    max-height: 200px;
    overflow-y: auto;
}

#speechText p {
    margin-bottom: 5px;
    padding: 5px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-wrap: wrap;
    }

    .chat-container {
        height: 250px;
    }
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.share-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
}

.share-modal-content h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.share-link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.share-link-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #f8f9fa;
}

.share-link-container button {
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.share-link-container button:hover {
    background-color: #2980b9;
}

.close-button {
    width: 100%;
    padding: 10px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.close-button:hover {
    background-color: #c0392b;
}