* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.chat-container {
    width: 100%;
    max-width: 600px;
    height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Enhanced Chat Header */
.chat-header {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.avatar-icon {
    font-size: 28px;
    color: white;
}

.header-content {
    flex: 1;
    text-align: left;
}

.header-content h1 {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    color: white;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    opacity: 0.95;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: #25D366;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 0.9em;
    font-weight: 500;
}

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

.action-icon {
    color: white;
    opacity: 0.9;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.3em;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

/* Enhanced Chat Messages */
.chat-messages {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    background: #f0f2f5;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%2391c788' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Enhanced Message Styles with Icons */
.message {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bot-message {
    flex-direction: row;
}

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

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

.message-bubble {
    padding: 15px 20px;
    border-radius: 18px;
    font-size: 1em;
    line-height: 1.5;
    position: relative;
    color: #2d3748;
    font-weight: 500;
	text-align: justify;
}

.bot-message .message-bubble {
    background: white;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.user-message .message-bubble {
    background: #dcf8c6;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #b3e0a6;
}

.message-time {
    font-size: 0.75em;
    color: #718096;
    margin-top: 5px;
    text-align: right;
}

.bot-message .message-time {
    text-align: left;
}

/* Enhanced Disease Selection Buttons */
.disease-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.disease-option {
	display: flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 10px 10px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.disease-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.disease-option:hover::before {
    left: 100%;
}

.disease-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Different colors for each disease option */
.disease-option:nth-child(1) {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4); /* Principles of Ayurveda - calm, healing tones */
}

.disease-option:nth-child(2) {
  background: linear-gradient(135deg, #f6d365, #fda085); /* Seasonal Diet - warm, nature-inspired */
}

.disease-option:nth-child(3) {
  background: linear-gradient(135deg, #89f7fe, #66a6ff); /* Ayurveda Clock - cool, time/flow vibe */
}

/* Existing colors for the rest */
.disease-option:nth-child(4) { background: linear-gradient(135deg, #667eea, #764ba2); }
.disease-option:nth-child(5) { background: linear-gradient(135deg, #f093fb, #f5576c); }
.disease-option:nth-child(6) { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.disease-option:nth-child(7) { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.disease-option:nth-child(8) { background: linear-gradient(135deg, #fa709a, #fee140); }
.disease-option:nth-child(9) { background: linear-gradient(135deg, #11998e, #38ef7d); } /* Cardiac */
.disease-option:nth-child(10) { background: linear-gradient(135deg, #56ab2f, #a8e063); } /* Prakriti */
.disease-option:nth-child(11) { background: linear-gradient(135deg, #f7971e, #ffd200); } /* General */
.disease-option:nth-child(12) { background: linear-gradient(135deg, #f953c6, #b91d73); } /* Pregnant */
.disease-option:nth-child(13) { background: linear-gradient(135deg, #43cea2, #185a9d); } /* Lactating */
.disease-option:nth-child(14) { background: linear-gradient(135deg, #fc5c7d, #6a82fb); } /* Children */
.disease-option:nth-child(15) { background: linear-gradient(135deg, #c31432, #240b36); } /* Anaemia */
.disease-option:nth-child(16) { background: linear-gradient(135deg, #f12711, #f5af19); } /* Malnourished */



/* Enhanced Options Container */
.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.option-btn {
    background: white;
    border: 2px solid #25D366;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #25D366;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	
	display: inline-flex;       /* Better alignment */
    justify-content: center;    /* Center text */
    align-items: center;
    min-width: 270px;
	flex-shrink: 1; 
}

@media (max-width: 768px) {
    .option-btn {
        min-width: 150px;  /* Adjust for smaller screens */
    }
}

.option-btn:hover {
    background: #25D366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.back-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Enhanced Content Sections */
.disease-title {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    text-align: left;
    font-size: 1.3em;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border-left: 4px solid #25D366;
}

.content-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
	text-align: justify;
}

.content-section h4 {
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 600;
}

.dos-donts {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.dos, .donts {
    flex: 1;
}

.dos h4, .donts h4 {
    margin-bottom: 10px;
    font-size: 1em;
}

.dos h4 {
    color: #25D366;
}

.donts h4 {
    color: #ff6b6b;
}

ul {
    padding-left: 20px;
    font-size: 0.9em;
	text-align: justify;
}

li {
    margin-bottom: 8px;
    color: #4a5568;
    line-height: 1.5;
	text-align: justify;
}

/* Enhanced Chat Input */
.chat-input {
    padding: 20px;
    background: white;
    border-top: 2px solid #e2e8f0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    outline: none;
    font-size: 1em;
    background: #f8f9fa;
    transition: all 0.3s ease;
    color: #2d3748;
}

.chat-input input:focus {
    border-color: #25D366;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.chat-input input::placeholder {
    color: #a0aec0;
}

.chat-input button {
    background: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.chat-input button:hover {
    background: #128C7E;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Enhanced Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.typing-dots {
    display: flex;
    background: white;
    padding: 15px 20px;
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.typing-dots span {
    height: 10px;
    width: 10px;
    background: #25D366;
    border-radius: 50%;
    display: block;
    margin: 0 3px;
    opacity: 0.4;
}

.typing-dots span:nth-child(1) {
    animation: typing 1s infinite;
}

.typing-dots span:nth-child(2) {
    animation: typing 1s 0.2s infinite;
}

.typing-dots span:nth-child(3) {
    animation: typing 1s 0.4s infinite;
}

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

/* Enhanced Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
    color: #2d3748;
}

th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Enhanced Yoga Grid */
.yoga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.yoga-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    font-size: 0.9em;
    transition: all 0.3s ease;
    color: #2d3748;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.yoga-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

/* Enhanced Quick Actions */
.quick-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-action-btn {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
    font-weight: 500;
}

.quick-action-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

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

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

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Pulse animation for online indicator */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Focus styles for better accessibility */
.option-btn:focus,
.disease-option:focus,
.chat-input input:focus,
.quick-action-btn:focus {
    outline: 2px solid #25D366;
    outline-offset: 2px;
}

/* Special note boxes */
.note {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 15px 0;
    font-size: 0.9em;
    border-radius: 8px;
    color: #2d3748;
}

.warning {
    background: #ffeaa7;
    border-left: 4px solid #fdcb6e;
    padding: 15px;
    margin: 15px 0;
    font-size: 0.9em;
    border-radius: 8px;
    color: #2d3748;
}

.principle-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin: 15px 0;
    font-size: 0.9em;
    border-radius: 8px;
    color: #2d3748;
}

.red-flags {
    background: #ffebee;
    border-left: 4px solid #e57373;
    padding: 15px;
    margin: 15px 0;
    font-size: 0.9em;
    border-radius: 8px;
    color: #2d3748;
}
