/* Modern Pappu AI Styles - Mobile First Approach */
#pappu-ai-container {
    background: linear-gradient(135deg, #4a6cf7, #3e97ff);
    border-radius: 0;
    padding: 20px;
    margin: 0;
    box-shadow: none;
    border: none;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    box-sizing: border-box;
}

#pappu-ai-container h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    padding: 0 10px;
}

#pappu-ai-question {
    width: 100%;
    height: 120px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    font-size: 16px; /* Prevents zoom on iOS */
    line-height: 1.4;
    resize: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
    -webkit-appearance: none;
    margin-bottom: 15px;
}

#pappu-ai-question:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

#pappu-ai-submit {
    background: linear-gradient(135deg, #fc4a1a, #f7b733);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    width: 100%;
    display: block;
    -webkit-tap-highlight-color: transparent;
}

#pappu-ai-submit:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

#pappu-ai-answer {
    margin-top: 20px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #fc4a1a;
    border-right: 4px solid #f7b733;
    min-height: 60px;
    font-size: 14px;
    line-height: 1.5;
}

/* Mobile First - Android Like Design */
@media screen and (max-width: 480px) {
    #pappu-ai-container {
        padding: 16px;
    }
    
    #pappu-ai-container h2 {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
    
    #pappu-ai-question {
        height: 100px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    #pappu-ai-submit {
        padding: 14px;
        border-radius: 10px;
        font-size: 15px;
    }
    
    #pappu-ai-answer {
        padding: 14px;
        border-radius: 10px;
        font-size: 13px;
    }
}

/* Tablet View */
@media screen and (min-width: 768px) {
    #pappu-ai-container {
        border-radius: 16px;
        margin: 20px auto;
        max-width: 600px;
        min-height: auto;
        padding: 30px;
    }
    
    #pappu-ai-container h2 {
        font-size: 1.7rem;
    }
    
    #pappu-ai-question {
        height: 100px;
    }
}

/* Desktop View */
@media screen and (min-width: 1024px) {
    #pappu-ai-container {
        max-width: 700px;
        margin: 40px auto;
        padding: 40px;
    }
    
    #pappu-ai-container h2 {
        font-size: 1.8rem;
    }
}

/* Android Specific Enhancements */
@supports (-webkit-touch-callout: none) {
    #pappu-ai-question {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Loading State for Mobile */
#pappu-ai-answer:contains('Loading...') {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Touch Friendly */
@media (hover: none) and (pointer: coarse) {
    #pappu-ai-submit:hover {
        transform: none;
    }
    
    #pappu-ai-submit:active {
        transform: scale(0.98);
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    #pappu-ai-container {
        border-radius: 0;
    }
    
    @media screen and (min-width: 768px) {
        #pappu-ai-container {
            border-radius: 16px;
        }
    }
}