/* Tablet Styles */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .chat-container {
        height: 95vh;
        max-width: 100%;
        border-radius: 15px;
    }
    
    .chat-header {
        padding: 15px 20px;
    }
    
    .header-avatar {
        width: 50px;
        height: 50px;
    }
    
    .avatar-icon {
        font-size: 24px;
    }
    
    .header-content h1 {
        font-size: 1.3em;
    }
    
    .message-content {
        max-width: 80%;
    }
    
    .message-bubble {
        max-width: 100%;
        padding: 12px 16px;
    }
    
    .disease-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .dos-donts {
        flex-direction: column;
        gap: 15px;
    }
    
    .yoga-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .quick-actions {
        justify-content: center;
    }
    
    .chat-messages {
        padding: 20px;
    }
    
    .chat-input {
        padding: 15px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .chat-header {
        padding: 12px 15px;
        gap: 15px;
    }
    
    .header-content h1 {
        font-size: 1.2em;
    }
    
    .header-avatar {
        width: 45px;
        height: 45px;
    }
    
    .avatar-icon {
        font-size: 22px;
    }
    
    .chat-messages {
        padding: 15px;
    }
    
    .message {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .message-avatar {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .options-container {
        gap: 8px;
    }
    
    .option-btn {
        padding: 10px 16px;
        font-size: 0.85em;
    }
    
    .content-section {
        padding: 15px;
    }
    
    table {
        font-size: 0.8em;
    }
    
    th, td {
        padding: 8px;
    }
    
    .disease-option {
        padding: 15px 12px;
        font-size: 0.9em;
    }
    
    .chat-input input {
        padding: 12px 16px;
    }
    
    .chat-input button {
        width: 50px;
        height: 50px;
    }
}

/* Extra Small Mobile Styles */
@media (max-width: 360px) {
    .header-content h1 {
        font-size: 1.1em;
    }
    
    .chat-messages {
        padding: 12px;
    }
    
    .message-bubble {
        padding: 10px 14px;
        font-size: 0.9em;
    }
    
    .header-avatar {
        width: 40px;
        height: 40px;
    }
    
    .avatar-icon {
        font-size: 20px;
    }
    
    .disease-grid {
        gap: 10px;
    }
    
    .disease-option {
        padding: 12px 10px;
        font-size: 0.85em;
    }
    
    .options-container {
        flex-direction: column;
    }
    
    .option-btn {
        width: 100%;
        text-align: center;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .chat-container {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .bot-message .message-bubble {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
    
    .chat-messages {
        background: #1a202c;
    }
    
    .content-section {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
    
    .option-btn {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
    
    .option-btn:hover {
        background: #25D366;
        color: white;
    }
    
    table {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    th, td {
        border-color: #718096;
        color: #e2e8f0;
    }
    
    th {
        background-color: #2d3748;
    }
    
    tr:nth-child(even) {
        background-color: #2d3748;
    }
    
    .note {
        background: #4a5568;
        color: #e2e8f0;
        border-left-color: #d69e2e;
    }
    
    .warning {
        background: #4a5568;
        color: #e2e8f0;
        border-left-color: #ed8936;
    }
    
    .yoga-card {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .chat-input {
        background: #2d3748;
        border-top-color: #4a5568;
    }
    
    .chat-input input {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .chat-input input::placeholder {
        color: #a0aec0;
    }
    
    .dos h4 { 
        color: #68d391; 
    }
    
    .donts h4 { 
        color: #fc8181; 
    }
    
    .disease-title {
        background: #2d3748;
        color: #e2e8f0;
        border-left-color: #25D366;
    }
    
    .quick-action-btn {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
    
    .quick-action-btn:hover {
        background: #2d3748;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .option-btn {
        border-width: 2px;
    }
    
    .message-bubble {
        border: 2px solid #333;
    }
    
    table {
        border: 2px solid #333;
    }
    
    .disease-option {
        border: 2px solid white;
    }
    
    .chat-input input {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .option-btn, .yoga-card, .disease-option, .action-icon {
        transition: none;
    }
    
    .typing-dots span {
        animation: none;
        opacity: 1;
    }
    
    .yoga-card:hover {
        transform: none;
    }
    
    .disease-option:hover {
        transform: none;
    }
    
    .status-indicator {
        animation: none;
    }
    
    .disease-option::before {
        display: none;
    }
}

/* Large Text Mode */
@media (prefers-reduced-data: reduce) {
    .chat-messages {
        background-image: none;
    }
}

/* Print Styles */
@media print {
    .chat-input, .typing-indicator, .header-actions {
        display: none;
    }
    
    .chat-container {
        box-shadow: none;
        height: auto;
        max-width: none;
    }
    
    .chat-messages {
        overflow: visible;
        background: white;
    }
    
    .message-bubble {
        break-inside: avoid;
    }
}