body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.header {
    background: linear-gradient(135deg, #6c5ce7, #8e44ad);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}
.card {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: none;
}
.voice-select {
    border-radius: 8px;
    padding: 10px;
    background-color: #f8f9fa;
}
.dialog-container {
    max-height: 350px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.dialog-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    margin-bottom: 12px;
    max-width: 80%;
    position: relative;
}
.dialog-bubble.user {
    min-height: 100px;
    background-color: #e3f2fd;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.dialog-bubble.ai {
    background-color: #f5f5f5;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}
.voice-label {
    font-weight: 500;
    color: #6c757d;
}

#speakersRow {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px !important;
    padding: 15px !important;
}

/* Avatar Styles */
.host-tile{
    background-color: #c1c1c1;
    text-align: center;
    border: 3px solid transparent;
    border-radius: 20%;
    padding: 10px;
    color: white;
}

.speaker-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.speaker-avatar.active {
    border-color: #6c5ce7;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
}

.speaker-avatar.playing {
    animation: pulse 1.5s infinite;
    border-color: #8e44ad;
}

.speaker-item {
    padding: 10px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-width: 80px !important;
}

.speaker-name {
    font-size: 12px;
    margin-top: 5px;
    color: #6c757d;
    text-align: center;
}

.speaker-name-overlay{
    text-align: center;;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(108, 92, 231, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
    }
}

.wave-animation {
    position: relative;
}

.wave-animation::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid #6c5ce7;
    animation: wave 1.5s infinite;
}

@keyframes wave {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}
.btn-primary {
    background: linear-gradient(135deg, #6c5ce7, #8e44ad);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #5d4ae7, #7d34a0);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.btn-action {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.play-btn {
    color: #6c5ce7;
    cursor: pointer;
    transition: all 0.2s;
}
.play-btn:hover {
    color: #8e44ad;
    transform: scale(1.1);
}
.delete-btn {
    cursor: pointer;
    transition: all 0.2s;
}
.delete-btn:hover {
    color: #dc3545 !important;
    transform: scale(1.1);
}
.highlight {
    background-color: rgba(108, 92, 231, 0.1);
    transition: background-color 0.3s;
}
.form-control:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 0.25rem rgba(108, 92, 231, 0.25);
}
.footer {
    background-color: #343a40;
    color: white;
    padding: 1.5rem 0;
    margin-top: 2rem;
}
.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: white !important;
    margin: 0 !important;
    padding: 20px !important;
}

.fullscreen-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.exit-fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10000;
}

/* Add to your existing CSS */
#miniControlButtons .btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#miniControlButtons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Online Meeting Layout Styles */
/* Meeting Layout with Webcam-style Tiles */
.meeting-layout #speakersRow {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px !important;
    padding: 15px !important;
    width: 100%;
}

.meeting-layout .speaker-item {
    min-width: 160px !important;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    aspect-ratio: 4/3; /* Standard webcam ratio */
    position: relative;
    border: 2px solid transparent;
}

/* Alternative 3:2 ratio option */
.meeting-layout.ratio-3-2 .speaker-item {
    aspect-ratio: 3/2;
}

.meeting-layout .speaker-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.meeting-layout .speaker-avatar-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.meeting-layout .speaker-avatar {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.8);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.meeting-layout .speaker-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 10px 8px 8px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(2px);
}

/* Active speaker states for meeting layout */
.meeting-layout .speaker-item.active {
    border-color: #6c5ce7;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
}

.meeting-layout .speaker-item.playing {
    animation: meeting-highlight 2s infinite;
}

.meeting-layout .speaker-item.active .speaker-avatar {
    border-color: #6c5ce7;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.6);
}

@keyframes meeting-highlight {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2);
        transform: scale(1.02);
    }
}

/* Microphone status indicator (optional mimic) */
.meeting-layout .mic-status {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #27ae60; /* Green for active mic */
    border: 2px solid rgba(255,255,255,0.8);
}

.meeting-layout .mic-status.muted {
    background: #e74c3c; /* Red for muted */
}