/* 
 * Chat Modal Component - Trabaloo
 * Modal flotant pentru conversații în timp real
 */

/* Chat Modal Overlay */
.chat-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.chat-modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Chat Modal Container */
.chat-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    max-height: 700px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

/* Modal Header */
.chat-modal-header {
    background: linear-gradient(135deg, #002B7F, #003399);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-modal-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-modal-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-modal-user-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chat-modal-user-status {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 2px;
}

.chat-modal-user-status.online::before {
    content: '●';
    color: #10B981;
    margin-right: 5px;
}

.chat-modal-actions {
    display: flex;
    gap: 0.5rem;
}

.chat-modal-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-modal-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-modal-close {
    font-size: 1.2rem;
}

/* Call Buttons - Video & Audio */
.chat-modal-video-call,
.chat-modal-audio-call,
.chat-modal-call-btn {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #10B981 !important;
    transition: all 0.2s ease !important;
}

.chat-modal-video-call:hover,
.chat-modal-audio-call:hover,
.chat-modal-call-btn:hover {
    background: rgba(16, 185, 129, 0.4) !important;
    transform: scale(1.1);
}

.chat-modal-video-call i,
.chat-modal-call-btn i {
    font-size: 1rem;
}

.chat-modal-audio-call i {
    font-size: 0.95rem;
}

/* Toggle Sidebar Button - Hidden on desktop */
.chat-modal-toggle-sidebar {
    display: none;
}

/* Modal Body - Split Layout */
.chat-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #F9FAFB;
}

/* Conversations Sidebar (Left) */
.chat-modal-sidebar {
    width: 320px;
    background: white;
    border-right: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
}

.chat-modal-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.chat-modal-search {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.chat-modal-search:focus {
    outline: none;
    border-color: #002B7F;
    box-shadow: 0 0 0 3px rgba(0, 43, 127, 0.1);
}

.chat-modal-conversations-list {
    flex: 1;
    overflow-y: auto;
}

.chat-modal-conversation-item {
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #F3F4F6;
    transition: all 0.2s;
    position: relative;
}

.chat-modal-conversation-item:hover {
    background: #F9FAFB;
}

.chat-modal-conversation-item:hover .chat-modal-delete-btn {
    opacity: 1;
    visibility: visible;
}

.chat-modal-conversation-item.active {
    background: #EFF6FF;
    border-left: 3px solid #002B7F;
}

.chat-modal-conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-modal-conversation-info {
    flex: 1;
    min-width: 0;
}

.chat-modal-conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.chat-modal-conversation-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1F2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-modal-conversation-time {
    font-size: 0.75rem;
    color: #6B7280;
}

.chat-modal-conversation-preview {
    font-size: 0.85rem;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-modal-conversation-unread {
    position: absolute;
    top: 0.5rem;
    right: 3.5rem;
    background: #EF4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    z-index: 5;
}

/* Delete button for conversations */
.chat-modal-delete-btn {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: #EF4444;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
}

.chat-modal-delete-btn:hover {
    background: #DC2626;
    transform: translateY(-50%) scale(1.1);
}

.chat-modal-delete-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.chat-modal-delete-btn i {
    font-size: 0.85rem;
}

/* Chat Area (Right) */
.chat-modal-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.chat-modal-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(to bottom, #F9FAFB 0%, white 100%);
}

/* Date Separator */
.chat-modal-date-separator {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.chat-modal-date-separator::before,
.chat-modal-date-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #E5E7EB;
}

.chat-modal-date-separator::before {
    left: 0;
}

.chat-modal-date-separator::after {
    right: 0;
}

.chat-modal-date-text {
    background: white;
    padding: 0.3rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #6B7280;
    display: inline-block;
    border: 1px solid #E5E7EB;
}

/* Message Bubble */
.chat-modal-message {
    display: flex;
    gap: 0.75rem;
    max-width: 75%;
    animation: messageSlide 0.3s ease;
}

.chat-modal-message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-modal-message.received {
    align-self: flex-start;
}

.chat-modal-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-modal-message-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.chat-modal-message-sender {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    padding: 0 0.5rem;
    margin-bottom: -0.2rem;
}

.chat-modal-message.sent .chat-modal-message-sender {
    text-align: right;
    color: #002B7F;
}

.chat-modal-message.received .chat-modal-message-sender {
    text-align: left;
    color: #4B5563;
}

.chat-modal-message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-modal-message.sent .chat-modal-message-bubble {
    background: linear-gradient(135deg, #002B7F, #003399);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-modal-message.received .chat-modal-message-bubble {
    background: #F3F4F6;
    color: #1F2937;
    border-bottom-left-radius: 4px;
}

.chat-modal-message-time {
    font-size: 0.7rem;
    color: #9CA3AF;
    padding: 0 0.5rem;
}

.chat-modal-message.sent .chat-modal-message-time {
    text-align: right;
}

/* Typing Indicator */
.chat-modal-typing-indicator {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    max-width: 100px;
}

.chat-modal-typing-indicator.active {
    display: flex;
}

.chat-modal-typing-dots {
    display: flex;
    gap: 0.3rem;
    padding: 0.75rem 1rem;
    background: #F3F4F6;
    border-radius: 16px;
}

.chat-modal-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9CA3AF;
    animation: typingDot 1.4s infinite;
}

.chat-modal-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-modal-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Input Area */
.chat-modal-input-area {
    padding: 1rem 1.5rem;
    border-top: 1px solid #E5E7EB;
    background: white;
}

.chat-modal-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.chat-modal-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 24px;
    font-size: 0.95rem;
    resize: none;
    max-height: 120px;
    font-family: inherit;
    transition: all 0.2s;
}

.chat-modal-input:focus {
    outline: none;
    border-color: #002B7F;
    box-shadow: 0 0 0 3px rgba(0, 43, 127, 0.1);
}

.chat-modal-send-btn {
    background: linear-gradient(135deg, #002B7F, #003399);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.chat-modal-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 43, 127, 0.3);
}

.chat-modal-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Empty State */
.chat-modal-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    gap: 1rem;
}

.chat-modal-empty-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.chat-modal-empty-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes messageSlide {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chat-modal {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    /* Sidebar - vizibil by default, ascuns când vrei chat-ul */
    .chat-modal-sidebar {
        position: absolute;
        left: 0;
        top: 73px;
        bottom: 0;
        width: 100%;
        z-index: 10;
        transform: translateX(0);
        transition: transform 0.3s;
        box-shadow: none;
    }

    .chat-modal-sidebar.mobile-hidden {
        transform: translateX(-100%);
    }
    
    /* Chat area - ascuns by default, vizibil când selectezi conversație */
    .chat-modal-chat-area {
        position: absolute;
        left: 0;
        top: 73px;
        bottom: 0;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.3s;
    }
    
    .chat-modal-chat-area.mobile-visible {
        transform: translateX(0);
    }

    .chat-modal-toggle-sidebar {
        display: block !important;
    }
}

/* Scrollbar Styling */
.chat-modal-conversations-list::-webkit-scrollbar,
.chat-modal-messages-container::-webkit-scrollbar {
    width: 6px;
}

.chat-modal-conversations-list::-webkit-scrollbar-track,
.chat-modal-messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-modal-conversations-list::-webkit-scrollbar-thumb,
.chat-modal-messages-container::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.chat-modal-conversations-list::-webkit-scrollbar-thumb:hover,
.chat-modal-messages-container::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Floating Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 80px;
    right: 15px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #002B7F, #003399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 43, 127, 0.4);
    transition: all 0.3s;
    z-index: 9999;
    overflow: visible;
}

.chat-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 43, 127, 0.6);
}

.chat-widget-icon {
    color: white;
    font-size: 1.8rem;
}

.chat-widget-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #EF4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
    border: 2px solid white;
    animation: pulse 2s infinite;
    z-index: 10002;
    pointer-events: none;
}

/* On mobile, position badge to be visible above chat widget */
@media (max-width: 768px) {
    .chat-widget-badge {
        top: -10px;
        right: -10px;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive positioning */
/* Tablets and larger */
@media (min-width: 769px) and (max-width: 1024px) {
    .chat-widget {
        bottom: 30px;
        right: 30px;
    }
}

/* Desktop large screens */
@media (min-width: 1025px) {
    .chat-widget {
        bottom: 40px;
        right: 40px;
        width: 65px;
        height: 65px;
    }
    
    .chat-widget-icon {
        font-size: 2rem;
    }
}

/* Mobile - keep at bottom for nav bar */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 90px; /* Above mobile nav bar (70px) + 20px spacing */
        right: 15px;
        width: 55px;
        height: 55px;
        z-index: 10000; /* Above mobile nav (9999) */
    }
    
    .chat-widget-icon {
        font-size: 1.6rem;
    }
    
    .chat-widget-desktop {
        display: none !important;
    }
}

/* Minimized State */
.chat-modal-overlay.minimized {
    display: none !important;
}

/* Incoming Call Notification */
.incoming-call-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    min-width: 350px;
    animation: slideInPulse 0.5s ease;
}

@keyframes slideInPulse {
    0% {
        transform: translateX(400px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateX(-10px) scale(1.05);
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Pulsing effect for notification */
.incoming-call-notification::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    border-radius: 22px;
    z-index: -1;
    animation: callPulse 1.5s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes callPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.6;
    }
}

.incoming-call-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.incoming-call-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #10b981;
    animation: avatarPulse 1s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.incoming-call-info {
    flex: 1;
}

.incoming-call-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
}

.incoming-call-type {
    color: #6b7280;
    font-size: 14px;
}

.incoming-call-type i {
    color: #10b981;
    margin-right: 5px;
}

.incoming-call-actions {
    display: flex;
    gap: 10px;
}

.incoming-call-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.incoming-call-accept {
    background: #10b981;
    animation: acceptPulse 1s ease-in-out infinite;
}

@keyframes acceptPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.incoming-call-accept:hover {
    background: #059669;
    transform: scale(1.15);
    animation: none;
}

.incoming-call-reject {
    background: #ef4444;
}

.incoming-call-reject:hover {
    background: #dc2626;
    transform: scale(1.15);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .incoming-call-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: calc(100% - 20px);
    }
    
    .incoming-call-avatar {
        width: 50px;
        height: 50px;
    }
    
    .incoming-call-name {
        font-size: 16px;
    }
    
    .incoming-call-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Video Call Overlay */
.video-call-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #002B7F 0%, #003399 50%, #004BB5 100%);
    z-index: 99999;
    display: none;
}

/* Logo watermark backdrop */
.video-call-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background-image: var(--site-logo-url, none);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

/* Fallback pattern if no logo */
.video-call-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.02) 35px,
            rgba(255, 255, 255, 0.02) 70px
        );
    pointer-events: none;
    z-index: 1;
}

.video-call-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.remote-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #002B7F 0%, #003399 50%, #004BB5 100%);
}

.local-video {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 180px;
    height: 135px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    cursor: move;
    z-index: 100;
    background: linear-gradient(135deg, #002B7F 0%, #003399 100%);
    transition: all 0.3s;
}

.local-video:hover {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.call-info {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.call-user-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.call-duration {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.call-status {
    font-size: 14px;
    opacity: 0.8;
}

.call-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}

.call-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.call-btn:hover {
    transform: scale(1.1);
}

.call-btn-mute {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.call-btn-mute:hover {
    background: rgba(255, 255, 255, 0.3);
}

.call-btn-mute.muted {
    background: #EF4444;
}

.call-btn-video {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.call-btn-video:hover {
    background: rgba(255, 255, 255, 0.3);
}

.call-btn-video.video-off {
    background: #EF4444;
}

.call-btn-end {
    background: #EF4444;
    color: white;
}

.call-btn-end:hover {
    background: #DC2626;
}

.call-btn-speaker {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.call-btn-speaker:hover {
    background: rgba(255, 255, 255, 0.3);
}

.call-btn-speaker.muted {
    background: #EF4444;
}

.call-btn-settings {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.call-btn-settings:hover {
    background: rgba(255, 255, 255, 0.3);
}

.call-btn-switch {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.call-btn-switch:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Call Settings Panel */
.call-settings-panel {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    min-width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 101;
}

.call-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.call-settings-header h3 {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.call-settings-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.call-settings-close:hover {
    opacity: 1;
}

.call-settings-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.call-setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.call-setting-group label {
    color: white;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.call-setting-group label i {
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

.call-setting-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.call-setting-group select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.call-setting-group select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: #002B7F;
}

.call-setting-group select option {
    background: #1E1E1E;
    color: white;
}

/* Mobile Video Call */
@media (max-width: 768px) {
    .local-video {
        width: 120px;
        height: 90px;
        top: 15px;
        right: 15px;
    }
    
    .call-info {
        top: 15px;
        left: 15px;
    }
    
    .call-user-name {
        font-size: 18px;
    }
    
    .call-duration, .call-status {
        font-size: 12px;
    }
    
    .call-controls {
        bottom: 30px;
        gap: 12px;
    }
    
    .call-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .call-settings-panel {
        min-width: 280px;
        bottom: 100px;
    }
}
