/* App Recommender Specific Styles */
.ai-app-recommender {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ai-app-recommender h2 {
    color: #1e293b;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.ai-app-recommender .subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 20px;
}

.ai-app-recommender .question-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 16px;
    background: #ffffff;
    min-height: 120px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.ai-app-recommender .question-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

#findAppsButton {
    background: #10B981;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

#findAppsButton:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Answer Container */
.answer-container {
    margin-top: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.answer-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.answer-title {
    font-weight: 500;
    color: #374151;
    font-size: 1.1rem;
}

.copy-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px;
}

.copy-button:hover {
    background: #f3f4f6;
    color: #374151;
}

.copy-button.copied {
    color: #10B981;
}

.copy-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: currentColor;
}

/* Answer Content */
.answer-content {
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
}

.answer-content::-webkit-scrollbar {
    width: 8px;
}

.answer-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.answer-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.answer-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* App recommendation styling */
.ai-response {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #374151;
}

.ai-response strong {
    color: #1f2937;
    font-weight: 600;
}

.ai-response p {
    margin-bottom: 1rem;
}

.ai-response ul {
    margin: 8px 0 16px 20px;
    padding: 0;
}

.ai-response li {
    margin: 4px 0;
    line-height: 1.5;
    color: #4b5563;
}

/* App card styling */
.app-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.app-card h3 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 1.1em;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.app-card .app-details {
    margin: 8px 0;
}

.app-card .app-features {
    margin: 8px 0;
}

.app-card .app-features ul {
    margin: 4px 0;
    padding-left: 16px;
}

.app-card .app-features li {
    margin: 2px 0;
    color: #4b5563;
}

/* Loading state */
.loading-state {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #10B981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error message */
.error-message {
    color: #dc2626;
    padding: 1rem;
    background: #fee2e2;
    border-radius: 0.5rem;
    margin-top: 1rem;
    border: 1px solid #fecaca;
}