.messenger-call-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.messenger-video-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.messenger-remote-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.messenger-local-video {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    border: 2px solid #fff;
    object-fit: cover;
    background: #000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.messenger-call-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
}

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

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

.messenger-control-btn.video {
    background: #4CAF50;
    color: white;
}

.messenger-control-btn.video.disabled {
    background: #666;
}

.messenger-control-btn.audio {
    background: #2196F3;
    color: white;
}

.messenger-control-btn.audio.disabled {
    background: #666;
}

.messenger-control-btn.hangup {
    background: #f44336;
    color: white;
}

.messenger-call-info {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
}

.messenger-call-status {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.messenger-call-duration {
    font-size: 18px;
    font-weight: bold;
}

.messenger-incoming-call {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    text-align: center;
    min-width: 300px;
}

.messenger-incoming-call h3 {
    margin: 0 0 20px 0;
    color: #333;
}

.messenger-incoming-call-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.messenger-btn-accept {
    background: #4CAF50;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.messenger-btn-reject {
    background: #f44336;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.messenger-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.messenger-container h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 32px;
}

.messenger-user-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.messenger-no-users {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.messenger-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.messenger-user-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.messenger-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.messenger-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    overflow: hidden;
}

.messenger-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.messenger-user-details h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
}

.messenger-user-details p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.messenger-user-actions {
    display: flex;
    gap: 12px;
}

.messenger-btn-call {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.messenger-btn-voice {
    background: #2196F3;
    color: white;
}

.messenger-btn-voice:hover {
    background: #1976D2;
}

.messenger-btn-video {
    background: #4CAF50;
    color: white;
}

.messenger-btn-video:hover {
    background: #388E3C;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
}

/* Alpine.js x-cloak support */
[x-cloak] {
    display: none !important;
}
