:root {
    --business-gradient: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
    --political-gradient: linear-gradient(135deg, #276749 0%, #38a169 100%);
    --upsc-gradient: linear-gradient(135deg, #553c9a 0%, #6b46c1 100%);
}

body {
    background: linear-gradient(135deg, #f6f7fb 0%, #edf2f7 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.perspective-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.perspective-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.analysis-content {
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #2d3748;
}

.analysis-content strong {
    color: #1a202c;
    font-weight: 600;
}

.analysis-content ul {
    list-style-type: none;
    margin-left: 0.5rem;
    margin-bottom: 1.2rem;
}

.analysis-content li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.analysis-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4299e1;
    font-weight: bold;
}

.highlight {
    background: linear-gradient(120deg, rgba(66, 153, 225, 0.15) 0%, rgba(66, 153, 225, 0.15) 100%);
    padding: 0.1em 0.4em;
    border-radius: 0.3em;
    font-weight: 500;
}

.perspective-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.perspective-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.perspective-button:hover::after {
    transform: translateX(100%);
}

.business-button {
    background: var(--business-gradient);
}

.political-button {
    background: var(--political-gradient);
}

.upsc-button {
    background: var(--upsc-gradient);
}

.loading-animation {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #3498db;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.input-field {
    transition: all 0.3s ease;
}

.input-field:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Card-specific gradients */
.business-card {
    background: linear-gradient(135deg, #e6f0ff 0%, #f0f7ff 100%);
}

.political-card {
    background: linear-gradient(135deg, #e6ffec 0%, #f0fff4 100%);
}

.upsc-card {
    background: linear-gradient(135deg, #f3e8ff 0%, #f8f0ff 100%);
}

/* Chat section styles */
#chat-history {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}

#chat-history::-webkit-scrollbar {
    width: 6px;
}

#chat-history::-webkit-scrollbar-track {
    background: transparent;
}

#chat-history::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 3px;
}

.chat-message {
    max-width: 80%;
    margin: 8px 0;
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.5;
}

.user-message {
    background: var(--business-gradient);
    color: white;
    margin-left: auto;
    border-radius: 12px 12px 0 12px;
}

.ai-message {
    background: rgba(255, 255, 255, 0.95);
    color: #1a202c;
    margin-right: auto;
    border-radius: 12px 12px 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.suggested-question {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggested-question:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Suggested questions styles */
#suggested-questions {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
}

#suggested-questions button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    white-space: normal;
    text-align: left;
    line-height: 1.4;
}

#suggested-questions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

#suggested-questions button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    #suggested-questions button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .perspective-button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .chat-message {
        max-width: 90%;
    }
}
