* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 140, 66, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 26, 0.7) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(236, 72, 153, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(217, 70, 239, 0.6) 0%, transparent 50%),
        linear-gradient(135deg, 
            rgba(255, 140, 66, 0.3) 0%, 
            rgba(255, 107, 26, 0.4) 25%, 
            rgba(236, 72, 153, 0.3) 50%, 
            rgba(168, 85, 247, 0.3) 75%, 
            rgba(217, 70, 239, 0.3) 100%
        );
    background-attachment: fixed;
    min-height: 100vh;
}

.orange {
    color: #ffffff;
}

/* Navigation */
.navbar {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    text-decoration: none;
}

.nav-brand h1 {
    color: #ff8c42;
    font-weight: 700;
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #ff8c42;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffb366;
}

/* Main Content */
.chat-main {
    padding-top: 100px;
    min-height: 100vh;
}

.chat-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.chat-header {
    text-align: center;
    margin-bottom: 40px;
}

.chat-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Chat Interface */
.chat-interface {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.chat-window {
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Messages */
.message {
    display: flex;
    max-width: 80%;
    animation: messageSlideIn 0.3s ease-out;
    margin-bottom: 15px;
}

.message.user-message {
    align-self: flex-end;
}

.message.bot-message {
    align-self: flex-start;
}

.message-content {
    flex: 1;
}

.message-bubble {
    background: #2a2a2a;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 18px;
    margin-bottom: 5px;
}

.user-message .message-bubble {
    background: linear-gradient(135deg, #ff8c42, #ff6b1a);
    color: white;
}

.message-bubble p {
    margin: 0;
    line-height: 1.5;
}

.message-bubble p + p {
    margin-top: 10px;
}

.message-time {
    font-size: 0.8rem;
    color: #cccccc;
    padding: 0 5px;
}

.user-message .message-time {
    text-align: right;
}

/* Input Area */
.chat-input-area {
    border-top: 1px solid #444444;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.8);
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.message-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #444444;
    border-radius: 25px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    background: #1a1a1a;
    color: #ffffff;
}

.message-input::placeholder {
    color: #888888;
}

.message-input:focus {
    border-color: #ff8c42;
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

.voice-button, .send-button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.voice-button {
    background: 
        radial-gradient(circle at 25% 25%, #ff8c42 0%, #ff6b1a 30%, transparent 70%),
        radial-gradient(circle at 75% 35%, #ec4899 0%, #d946ef 25%, transparent 65%),
        radial-gradient(circle at 45% 75%, #a855f7 0%, #8b5cf6 20%, transparent 60%),
        radial-gradient(circle at 80% 80%, #f59e0b 0%, #ff8c42 35%, transparent 70%),
        linear-gradient(135deg, 
            #ff8c42 0%, 
            #ff6b1a 20%, 
            #ec4899 40%, 
            #d946ef 60%, 
            #a855f7 80%, 
            #8b5cf6 100%
        );
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.voice-button::before {
    display: none;
}

.voice-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
    position: relative;
    overflow: hidden;
    --wave-offset: 0;
}

.voice-button:hover::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: 
        repeating-linear-gradient(
            0deg,
            #ff8c42 0px,
            #ff6b1a 20px,
            #ec4899 40px,
            #d946ef 60px,
            #a855f7 80px,
            #8b5cf6 100px,
            #ff8c42 120px
        );
    animation: waveFlow1 3s linear infinite;
    border-radius: 50%;
    z-index: 1;
    mask: radial-gradient(circle, white 100%, transparent 100%);
}

.voice-button:hover::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            #ff8c42 10px,
            transparent 20px,
            #ec4899 30px,
            transparent 40px,
            #a855f7 50px,
            transparent 60px
        );
    animation: waveFlow2 4s linear infinite reverse;
    border-radius: 50%;
    z-index: 2;
    opacity: 0.7;
    mask: radial-gradient(circle, white 100%, transparent 100%);
}

.voice-button:hover {
    animation: waveContainer 5s ease-in-out infinite;
}

@keyframes waveFlow1 {
    0% {
        transform: translateX(0px) translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateX(-30px) translateY(20px) rotate(90deg);
    }
    50% {
        transform: translateX(-60px) translateY(0px) rotate(180deg);
    }
    75% {
        transform: translateX(-30px) translateY(-20px) rotate(270deg);
    }
    100% {
        transform: translateX(0px) translateY(0px) rotate(360deg);
    }
}

@keyframes waveFlow2 {
    0% {
        transform: translateX(0px) translateY(0px) rotate(0deg) scale(1);
    }
    20% {
        transform: translateX(25px) translateY(-15px) rotate(-72deg) scale(1.1);
    }
    40% {
        transform: translateX(40px) translateY(10px) rotate(-144deg) scale(0.9);
    }
    60% {
        transform: translateX(15px) translateY(30px) rotate(-216deg) scale(1.2);
    }
    80% {
        transform: translateX(-20px) translateY(5px) rotate(-288deg) scale(0.8);
    }
    100% {
        transform: translateX(0px) translateY(0px) rotate(-360deg) scale(1);
    }
}

@keyframes waveContainer {
    0%, 100% {
        transform: scale(1.1) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    25% {
        transform: scale(1.15) rotate(2deg);
        filter: hue-rotate(10deg);
    }
    50% {
        transform: scale(1.1) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    75% {
        transform: scale(1.05) rotate(-2deg);
        filter: hue-rotate(-10deg);
    }
}

.voice-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
}

.voice-button.listening {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: pulse 1.5s infinite;
}

.send-button {
    background: linear-gradient(135deg, #ff8c42, #ff6b1a);
    color: white;
}

.send-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Voice Status */
.voice-status {
    margin-top: 15px;
    text-align: center;
}

.listening-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #6366f1;
    font-weight: 500;
}

.pulse {
    width: 12px;
    height: 12px;
    background: #6366f1;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* Quick Actions */
.quick-actions {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    background: rgba(248, 249, 250, 0.8);
}

.quick-actions h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.action-btn {
    padding: 8px 16px;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.3);
    border-radius: 20px;
    color: #ff6b1a;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 140, 66, 0.2);
    border-color: #ff8c42;
    transform: translateY(-1px);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.modal-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-footer {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:not(.secondary) {
    background: #ff8c42;
    color: white;
}

.modal-btn:not(.secondary):hover {
    background: #ff6b1a;
    transform: translateY(-1px);
}

.modal-btn.secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e0e0e0;
}

.modal-btn.secondary:hover {
    background: #e9ecef;
}

/* Animations */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 15px 20px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typingDots 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDots {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-header h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .chat-window {
        height: 400px;
    }
    
    .chat-messages {
        padding: 20px;
    }
    
    .message {
        max-width: 90%;
    }
    
    .chat-input-area {
        padding: 15px 20px;
    }
    
    .quick-actions {
        padding: 15px 20px;
    }
    
    .action-buttons {
        gap: 8px;
    }
    
    .action-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .modal-content {
        padding: 25px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .chat-container {
        padding: 20px 10px;
    }
    
    .input-container {
        gap: 8px;
    }
    
    .voice-button, .send-button {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .message-input {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}