* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #b0e0e1, #1d3b3c, #b0e0e1);
    color: white;
    height: 100vh;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
}

.logo i {
    color: #06694f;
}

.room-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
}

.room-info button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.setup-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.setup-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.setup-container h2 {
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.join-button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #24ac9c;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.join-button:hover {
    background: #19776c;
}

.info-text {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.main-content {
    flex: 1;
    display: flex;
    gap: 20px;
}

.video-container {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.participants {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    flex: 1;
}

.video-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    height: 500px;
}

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

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.video-placeholder i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.5);
}

.user-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #35adea, #1b87bd);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.sidebar-section h2 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.participant-list {
    list-style: none;
    max-height: 150px;
    overflow-y: auto;
}

.participant-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    max-width: 80%;
    align-self: flex-start;
}

.message.own {
    background: green;
    align-self: flex-end;
}

.message-sender {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 3px;
}

.message-text {
    font-size: 14px;
}

.message-time {
    font-size: 10px;
    text-align: right;
    opacity: 0.7;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.chat-input button {
    padding: 10px 15px;
    border-radius: 20px;
    border: none;
    background: #39bcd3;
    color: white;
    cursor: pointer;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.call {
    background: #4CAF50;
    color: white;
}

.hangup {
    background: #f44336;
    color: white;
}

.mute {
    background: #f1a83c;
    color: white;
}

.video {
    background: #45a6f5;
    color: white;
}

.screen-share {
    background: #bd2cd6;
    color: white;
}

.control-btn:hover {
    transform: scale(1.1);
}

.control-btn.active {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.hidden {
    display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .participants {
        grid-template-columns: 1fr;
    }
    
    .video-card {
        height: 200px;
    }
    
    .sidebar {
        max-height: 300px;
    }
}