/* Modern Teal Theme - Alternative Design */
body.theme-modern {
    background: linear-gradient(135deg, #1a3a52 0%, #2d5f7e 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body.theme-modern .main-container {
    background: transparent;
}

body.theme-modern .avatar-section {
    background: rgba(26, 58, 82, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(79, 209, 197, 0.2);
}

/* Circular Avatar Visualization */
body.theme-modern .heygen-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

body.theme-modern .modern-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

body.theme-modern .avatar-circle-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

body.theme-modern .avatar-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(79, 209, 197, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

body.theme-modern .avatar-circle-1 {
    width: 300px;
    height: 300px;
    animation: pulse-circle 3s ease-in-out infinite;
}

body.theme-modern .avatar-circle-2 {
    width: 240px;
    height: 240px;
    background: rgba(79, 209, 197, 0.1);
    animation: pulse-circle 3s ease-in-out infinite 0.5s;
}

body.theme-modern .avatar-circle-3 {
    width: 180px;
    height: 180px;
    background: rgba(79, 209, 197, 0.2);
    animation: pulse-circle 3s ease-in-out infinite 1s;
}

body.theme-modern .avatar-circle-core {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(79, 209, 197, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

body.theme-modern .avatar-circle-core::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse-circle {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Avatar Greeting */
body.theme-modern .avatar-greeting {
    text-align: center;
    margin-top: 30px;
    color: white;
}

body.theme-modern .avatar-greeting h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

body.theme-modern .avatar-greeting p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* Audio Visualizer */
body.theme-modern .audio-visualizer {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    height: 40px;
    margin-top: 20px;
}

body.theme-modern .audio-bar {
    width: 4px;
    background: #4fd1c5;
    border-radius: 2px;
    animation: audio-wave 1s ease-in-out infinite;
}

body.theme-modern .audio-bar:nth-child(1) { animation-delay: 0s; height: 20px; }
body.theme-modern .audio-bar:nth-child(2) { animation-delay: 0.1s; height: 15px; }
body.theme-modern .audio-bar:nth-child(3) { animation-delay: 0.2s; height: 25px; }
body.theme-modern .audio-bar:nth-child(4) { animation-delay: 0.3s; height: 18px; }
body.theme-modern .audio-bar:nth-child(5) { animation-delay: 0.4s; height: 22px; }
body.theme-modern .audio-bar:nth-child(6) { animation-delay: 0.5s; height: 16px; }
body.theme-modern .audio-bar:nth-child(7) { animation-delay: 0.6s; height: 20px; }

@keyframes audio-wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

/* Feature Cards */
body.theme-modern .feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.theme-modern .feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(79, 209, 197, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

body.theme-modern .feature-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a3a52;
    margin-bottom: 4px;
}

body.theme-modern .feature-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Notification Card */
body.theme-modern .notification-card {
    position: absolute;
    top: 120px;
    right: 20px;
    background: white;
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 280px;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

body.theme-modern .notification-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #22c55e;
}

body.theme-modern .notification-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a3a52;
    margin-bottom: 4px;
}

body.theme-modern .notification-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Chat Section */
body.theme-modern .chat-section {
    background: rgba(26, 58, 82, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 209, 197, 0.2);
}

body.theme-modern .chat-header {
    background: rgba(79, 209, 197, 0.1);
    border-bottom: 1px solid rgba(79, 209, 197, 0.2);
}

body.theme-modern .chat-header h2 {
    color: white;
}

body.theme-modern .chat-messages {
    background: rgba(26, 58, 82, 0.3);
}

body.theme-modern .message.user .message-content {
    background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
    color: white;
}

body.theme-modern .message.bot .message-content {
    background: rgba(255, 255, 255, 0.95);
    color: #1a3a52;
}

body.theme-modern .chat-input-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(79, 209, 197, 0.3);
}

body.theme-modern .chat-input {
    background: transparent;
    color: white;
}

body.theme-modern .chat-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

body.theme-modern .send-button {
    background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
}

body.theme-modern .send-button:hover {
    background: linear-gradient(135deg, #38b2ac 0%, #2c9a8f 100%);
}

body.theme-modern .voice-button {
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.3) 0%, rgba(79, 209, 197, 0.2) 100%);
    color: #4fd1c5;
    transition: all 0.3s ease;
    border: 3px solid rgba(79, 209, 197, 0.4);
    box-shadow: 0 4px 15px rgba(79, 209, 197, 0.2);
}

body.theme-modern .voice-button:hover {
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.4) 0%, rgba(79, 209, 197, 0.3) 100%);
    border-color: rgba(79, 209, 197, 0.6);
    box-shadow: 0 6px 20px rgba(79, 209, 197, 0.3);
    transform: scale(1.05);
}

body.theme-modern .voice-button.listening {
    background: #4fd1c5;
    color: white;
    animation: pulse-voice 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(79, 209, 197, 0.6);
}

body.theme-modern .voice-button.processing {
    background: rgba(79, 209, 197, 0.4);
    color: white;
}

@keyframes pulse-voice {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(79, 209, 197, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(79, 209, 197, 0.8);
    }
}

/* Voice status indicator */
body.theme-modern .voice-status {
    background: rgba(79, 209, 197, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quick Action Buttons */
body.theme-modern .quick-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 20px;
    flex-wrap: wrap;
}

body.theme-modern .quick-action-btn {
    background: rgba(26, 58, 82, 0.8);
    color: white;
    border: 1px solid rgba(79, 209, 197, 0.3);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.theme-modern .quick-action-btn:hover {
    background: rgba(79, 209, 197, 0.2);
    border-color: #4fd1c5;
    transform: translateY(-2px);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #4fd1c5;
    border-radius: 50px;
    padding: 12px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #1a3a52;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.theme-toggle i {
    font-size: 18px;
    color: #4fd1c5;
}

body.theme-modern .theme-toggle {
    background: rgba(26, 58, 82, 0.9);
    color: white;
    border-color: #4fd1c5;
}

body.theme-modern .theme-toggle:hover {
    background: rgba(26, 58, 82, 1);
}
