/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #FFE082 0%, #FFCC02 50%, #FF9800 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #FF9800, #FFC107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.daily-btn {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.daily-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Chat Container */
.chat-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    max-height: 500px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #FF9800, #FFC107);
    border-radius: 10px;
}

/* Message Styles */
.message {
    display: flex;
    margin-bottom: 20px;
    animation: slideUp 0.5s ease;
}

.message.user-message {
    flex-direction: row-reverse;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 15px;
    flex-shrink: 0;
}

.ai-avatar {
    background: linear-gradient(45deg, #FF9800, #FFC107);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.user-avatar {
    background: linear-gradient(45deg, #2196F3, #03DAC6);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.message-content {
    max-width: 70%;
    display: flex;
    flex-direction: column;
}

.message-bubble {
    padding: 15px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    position: relative;
}

.ai-message .message-bubble {
    background: linear-gradient(135deg, #FFF9C4 0%, #FFECB3 100%);
    color: #333;
    border: 2px solid rgba(255, 193, 7, 0.2);
}

.user-message .message-bubble {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    color: #333;
    border: 2px solid rgba(33, 150, 243, 0.2);
}

.timestamp {
    font-size: 0.75rem;
    color: #666;
    margin-top: 5px;
    align-self: flex-start;
}

.user-message .timestamp {
    align-self: flex-end;
}

.welcome-message {
    border: 3px dashed rgba(255, 152, 0, 0.3);
    padding: 10px;
    border-radius: 25px;
    background: rgba(255, 249, 196, 0.5);
}

/* Quick Actions */
.quick-actions {
    padding: 20px 30px;
    border-top: 2px solid rgba(255, 193, 7, 0.1);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-btn {
    background: linear-gradient(45deg, #FF9800, #FFC107);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
    background: linear-gradient(45deg, #F57C00, #FF9800);
}

/* Input Area */
.input-area {
    padding: 20px 30px;
    border-top: 2px solid rgba(255, 193, 7, 0.1);
}

.input-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

#messageInput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 25px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-family: inherit;
}

#messageInput:focus {
    outline: none;
    border-color: #FF9800;
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.2);
    background: white;
}

#messageInput::placeholder {
    color: #999;
    font-weight: 400;
}

.send-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #FF9800, #FFC107);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.send-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

.send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.input-info {
    text-align: center;
    margin-top: 10px;
}

.input-info small {
    color: #666;
    font-size: 0.8rem;
}

/* Loading Animation */
.loading-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
    border: 3px solid rgba(255, 193, 7, 0.3);
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, #FF9800, #FFC107);
    border-radius: 50%;
    animation: loading-bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

/* Celebration Effects */
.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
}

.celebration.active {
    opacity: 1;
}

.confetti, .stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.confetti::before,
.confetti::after,
.stars::before,
.stars::after {
    content: '🎉';
    position: absolute;
    font-size: 2rem;
    animation: confetti-fall 3s linear infinite;
}

.stars::before,
.stars::after {
    content: '⭐';
}

.confetti::before { left: 10%; animation-delay: 0s; }
.confetti::after { left: 90%; animation-delay: 0.5s; }
.stars::before { left: 30%; animation-delay: 1s; }
.stars::after { left: 70%; animation-delay: 1.5s; }

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loading-bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 40% { 
        transform: scale(1.0);
    }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo {
        flex-direction: column;
        gap: 5px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .chat-messages {
        padding: 20px 15px;
        max-height: 400px;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .quick-actions {
        padding: 15px;
        gap: 8px;
    }
    
    .quick-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .input-area {
        padding: 15px;
    }
    
    .input-container {
        gap: 8px;
    }
    
    #messageInput {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .send-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        font-size: 2rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-btn {
        text-align: center;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}




/* Change CSS for Responsive  */

/* Fix for mobile zoom on input focus and prevent horizontal scroll overlay */

/* Prevent zooming on focus for inputs and buttons */
input, textarea, select, button {
  font-size: 16px !important;
}

/* Prevent horizontal scrolling on body and html */
body, html {
  overflow-x: hidden !important;
  touch-action: pan-y;
}

/* Set container max width to screen width and prevent overflow */
.container, .chat-container, #chat-input-wrapper {
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

/* Input field styling for responsive width */
#chat-input {
  width: 100% !important;
  box-sizing: border-box;
}

/* Remove default padding and margin for all elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Viewport setting to prevent auto zoom in mobile */
@viewport {
  width: device-width;
  user-scalable: no;
}

/* Additional mobile specific fixes */
@media only screen and (max-width: 768px) {
  .chat-input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: white;
    border-top: 1px solid #ddd;
  }
  
  #chat-input {
    font-size: 16px;
    padding: 12px;
    border-radius: 25px;
  }
}



/* CSS Changes :  */

/* Specific fix for narrow send button on mobile */
.send-btn, .send-button, #send-btn, #send-button, 
button[onclick*="sendMessage"], button[type="submit"] {
  min-width: 50px !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  aspect-ratio: 1/1 !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: linear-gradient(135deg, #ff9500, #ff6b00) !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

/* Force circular shape even on mobile browsers */
.send-btn::before, .send-button::before, #send-btn::before, #send-button::before {
  content: '' !important;
  display: block !important;
  padding-top: 100% !important;
  width: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  border-radius: 50% !important;
}

/* Icon positioning inside circular button */
.send-btn svg, .send-button svg, #send-btn svg, #send-button svg,
.send-btn i, .send-button i, #send-btn i, #send-button i {
  width: 18px !important;
  height: 18px !important;
  position: relative !important;
  z-index: 2 !important;
  color: white !important;
  fill: white !important;
}

/* Input container flex fix for mobile */
.input-container, .chat-input-wrapper, .message-input-container {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
}

/* Ensure input takes remaining space */
.chat-input, #chat-input, input[type="text"] {
  flex: 1 !important;
  min-width: 0 !important;
}




































































































