/* Video Call Modal Styles */
.video-call-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.video-call-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.video-call-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.video-call-status {
    font-size: 0.9rem;
    color: #4caf50;
}

.call-duration {
    color: white;
    font-size: 0.9rem;
}

.video-grid {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.video-container {
    position: relative;
    background-color: #000;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.video-container.local {
    width: 200px;
    height: 150px;
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 2;
    border: 2px solid #ffffff;
}

.video-container.remote {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 190px);
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.video-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
}

.control-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

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

.control-button.audio {
    background-color: #2196f3;
}

.control-button.audio.muted {
    background-color: #b0bec5;
}

.control-button.video {
    background-color: #4caf50;
}

.control-button.video.disabled {
    background-color: #b0bec5;
}

.control-button.screen {
    background-color: #ff9800;
}

.control-button.screen.active {
    background-color: #e65100;
}

.control-button.hangup {
    background-color: #f44336;
}

/* Incoming Call Dialog */
.call-dialog {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    width: 300px;
    display: none;
    overflow: hidden;
}

.call-dialog-header {
    padding: 15px;
    background-color: #2196f3;
    color: white;
    font-weight: bold;
}

.call-dialog-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.caller-info {
    margin-bottom: 15px;
    text-align: center;
}

.call-dialog-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.call-dialog-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 48%;
    transition: all 0.2s ease;
}

.call-dialog-button:hover {
    transform: scale(1.05);
}

.accept-call {
    background-color: #4caf50;
    color: white;
}

.decline-call {
    background-color: #f44336;
    color: white;
}

/* Call Button in User Chat */
.call-button {
    margin-left: 10px;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-button i {
    margin-right: 5px;
}

/* Call ringtone audio element */
#call-ringtone {
    display: none;
}
