/* 
 * OV Call Final - Styles
 * WebRTC Call System Styling
 */

.ov-call-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
}

/* Friends List */
.ov-friends-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.ov-friend-card {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: white;
    text-align: center;
}

.ov-friend-card.online {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.ov-friend-card.offline {
    border-color: #ccc;
    background: #f5f5f5;
    opacity: 0.6;
}

/* Call Buttons */
.ov-call-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.ov-call-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.ov-call-btn.voice {
    background: #2196F3;
    color: white;
}

.ov-call-btn.video {
    background: #4CAF50;
    color: white;
}

.ov-call-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Notifications */
.ov-notifications {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

.ov-notification {
    padding: 15px;
    margin: 15px 0;
    border: 2px solid #FF9800;
    border-radius: 8px;
    background: #fff3e0;
}

/* Call Area */
.ov-call-area {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    display: none;
}

.ov-call-area.active {
    display: block;
}

.ov-videos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.ov-videos video {
    width: 100%;
    height: 200px;
    background: #000;
    border-radius: 8px;
}

.ov-call-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.ov-control-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.ov-control-btn.end {
    background: #f44336;
    color: white;
}

.ov-control-btn.mic {
    background: #2196F3;
    color: white;
}

.ov-control-btn.cam {
    background: #4CAF50;
    color: white;
}

.ov-control-btn.screen {
    background: #FF9800;
    color: white;
}

/* Status */
.ov-status {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.ov-status.connected {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ov-status.calling {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Debug Panel */
.ov-debug-panel {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

.ov-debug-panel.collapsed {
    display: none;
}

.ov-debug-logs {
    max-height: 300px;
    overflow-y: auto;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
    border: 1px solid #ddd;
}

.ov-log-entry {
    margin: 2px 0;
    padding: 2px 5px;
    border-radius: 3px;
}

.ov-log-entry.info {
    background: #e3f2fd;
    color: #1976d2;
}

.ov-log-entry.success {
    background: #e8f5e8;
    color: #2e7d32;
}

.ov-log-entry.error {
    background: #ffebee;
    color: #c62828;
}

.ov-log-entry.warning {
    background: #fff3e0;
    color: #f57c00;
}

/* Responsive */
@media (max-width: 768px) {
    .ov-videos {
        grid-template-columns: 1fr;
    }
    
    .ov-friends-list {
        grid-template-columns: 1fr;
    }
}
