* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.header-section {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 1.5rem;
}

.logo-container {
    text-align: left;
}

.logo-container img {
    width: 200px;
    color: #2d1b69;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: #2d1b69;
    margin: 0;
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
    letter-spacing: 3px;
    font-weight: 300;
}

/* User Menu Styles */
.user-menu {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #e0e0e0;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(45, 27, 105, 0.2);
    border-color: #2d1b69;
}

.hamburger-icon {
    font-size: 2rem;
    color: #2d1b69;
    cursor: pointer;
    transition: color 0.3s ease;
}

.hamburger-icon:hover {
    color: #1f1249;
}

.login-link {
    color: #2d1b69;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-link:hover {
    background-color: #f0f0f0;
    color: #1f1249;
}

/* Dropdown Menu Customization */
.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    padding: 0.5rem 0;
    min-width: 180px;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #2d1b69;
}

.dropdown-item i {
    font-size: 1.1rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Remove default button styles */
.dropdown .btn-link {
    border: none;
    background: none;
}

.dropdown .btn-link:focus {
    box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-avatar {
        width: 40px;
        height: 40px;
    }

    .hamburger-icon {
        font-size: 1.75rem;
    }
}

.welcome-section {
    padding: 1.5rem;
    background-color: #ffffff;
}

.welcome-text {
    font-size: 1rem;
    font-weight: 500;
    color: #000;
}

.language-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector:hover {
    border-color: #2d1b69;
    box-shadow: 0 2px 8px rgba(45, 27, 105, 0.1);
}

.flag-icon {
    width: 24px;
    height: 16px;
    border-radius: 2px;
}

.language-text {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.avatar-card {
    background-color: #1a1a1a;
    border-radius: 30px;
    padding: 2rem;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.avatar-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.video-loading-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #ffffff;
}

.video-loading-avatar .spinner-border {
    width: 3rem;
    height: 3rem;
}

.video-loading-avatar p {
    font-size: 1.1rem;
    margin: 0;
}

.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: #ffffff;
}

.btn-action {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-chat {
    background-color: #f0f0f0;
    color: #666;
}

.btn-chat:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-microphone {
    background-color: #f0f0f0;
    color: #666;
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.btn-microphone:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-user {
    background-color: #f0f0f0;
    color: #666;
}

.btn-user img {
    background-color: #1f1249;
}

.btn-user:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}


.btn-action.active {
    background-color: #2d1b69 !important;
    color: #ffffff !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(45, 27, 105, 0.4);
}

.btn-microphone.recording {
    animation: pulseRecording 1.5s ease-in-out infinite;
}

@keyframes pulseRecording {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(220, 53, 69, 0);
    }
}

.voice-recording-container {
    text-align: center;
    padding: 3rem 1.5rem;
}

.recording-indicator {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.recording-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2d1b69 0%, #4a2f8f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.pulse-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: transparent;
    border: 3px solid #dc3545;
    opacity: 0;
}

.recording-indicator.active .pulse-ring {
    animation: pulseRing 1.5s ease-out infinite;
}

.recording-indicator.active .recording-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.recording-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.transcription-preview {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: left;
    color: #333;
}

.transcription-preview strong {
    color: #2d1b69;
}


.chat-history-container {
    padding: 1.5rem;
    background-color: #f8f9fa;
    max-height: 500px;
    overflow-y: auto;
    border-top: 1px solid #e0e0e0;
    scroll-behavior: smooth;
}

.chat-history-container::-webkit-scrollbar {
    width: 8px;
}

.chat-history-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-history-container::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 10px;
}

.chat-history-container::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

.message-wrapper {
    display: flex;
    margin-bottom: 1rem;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message-wrapper {
    justify-content: flex-end;
}

.bot-message-wrapper {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 70%;
    padding: 0.875rem 1.125rem;
    border-radius: 18px;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.chat-bubble:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.user-bubble {
    background: linear-gradient(135deg, #2d1b69 0%, #4a2f8f 100%);
    color: #ffffff;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.bot-bubble {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.bot-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2d1b69 0%, #4a2f8f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    flex-shrink: 0;
}

.message-text {
    line-height: 1.5;
    font-size: 0.95rem;
}

.user-bubble .message-text {
    color: #ffffff;
}

.bot-bubble .message-text {
    color: #333;
    flex: 1;
}

.input-section {
    padding: 1.5rem;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
}

.input-container {
    position: relative;
}

.chat-input {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 1rem;
    font-size: 1rem;
    resize: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    border-color: #2d1b69;
    box-shadow: 0 0 0 0.2rem rgba(45, 27, 105, 0.1);
    outline: none;
}

.chat-input::placeholder {
    color: #999;
}

.btn-send {
    background-color: #2d1b69;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(45, 27, 105, 0.2);
}

.btn-send:hover {
    background-color: #1f1249;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 27, 105, 0.3);
}

.btn-send:active {
    transform: translateY(0);
}

.preloader {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    color: #2d1b69;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }

    .avatar-card {
        padding: 1rem;
    }

    .avatar-image {
        max-width: 280px;
    }

    .btn-action {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .btn-microphone {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .welcome-section {
        padding: 1rem;
    }

    .action-buttons {
        gap: 1rem;
    }

    .input-section {
        padding: 1rem;
    }

    .chat-bubble {
        max-width: 85%;
    }

    .chat-history-container {
        max-height: 400px;
        padding: 1rem;
    }
}

/* Footer Styles */
.footer-section {
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 2rem 3rem;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    flex: 0 0 auto;
}

.footer-logo img {
    width: 150px;
    height: auto;
}

.footer-text {
    flex: 1 1 auto;
    text-align: center;
}

.footer-text p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.footer-social {
    flex: 0 0 auto;
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #2d1b69;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #2d1b69;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(45, 27, 105, 0.3);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-logo img {
        width: 120px;
    }

    .footer-text {
        order: 2;
    }

    .footer-social {
        order: 3;
    }
}

@media (max-width: 480px) {
    .footer-section {
        padding: 1rem;
    }

    .footer-logo img {
        width: 100px;
    }

    .footer-text p {
        font-size: 0.8rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}