/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    color: #F8FAFC;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7C3AED, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.logo p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.data-source {
    display: inline-block;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 5px;
}

.data-source.real {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.data-source.mock {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.api-status {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 15px;
    font-weight: 600;
    margin-top: 3px;
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
}

.api-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.api-status.failed {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.toggle-btn {
    background: linear-gradient(135deg, #7C3AED, #06B6D4);
    border: none;
    border-radius: 10px;
    padding: 8px 15px;
    color: #F8FAFC;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.header-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #F8FAFC;
}

.market-status {
    background: linear-gradient(135deg, #22C55E, #16a34a);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Section Styles */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #7C3AED, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Market Overview */
.market-overview {
    margin-bottom: 40px;
}

.indices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.index-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.index-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7C3AED, #06B6D4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.index-card:hover::before {
    opacity: 1;
}

.index-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.3);
}

.index-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.index-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #F8FAFC;
}

.index-change {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
}

.index-change.positive {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.index-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.index-value {
    font-size: 2rem;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 10px;
}

.index-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.change-value {
    font-weight: 600;
}

.volume {
    color: #64748b;
}

/* Top Movers */
.top-movers {
    margin-bottom: 40px;
}

.movers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.movers-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.movers-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #F8FAFC;
}

.movers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mover-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mover-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.mover-info {
    flex: 1;
}

.mover-name {
    font-weight: 600;
    color: #F8FAFC;
    margin-bottom: 2px;
}

.mover-symbol {
    font-size: 0.8rem;
    color: #64748b;
}

.mover-stats {
    text-align: right;
}

.mover-price {
    font-weight: 600;
    color: #F8FAFC;
    margin-bottom: 2px;
}

.mover-change {
    font-size: 0.9rem;
    font-weight: 600;
}

.mover-change.positive {
    color: #22C55E;
}

.mover-change.negative {
    color: #EF4444;
}

/* Stock Analysis */
.stock-analysis {
    margin-bottom: 40px;
}

.search-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

#stockSearch {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px 20px;
    color: #F8FAFC;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#stockSearch:focus {
    outline: none;
    border-color: #7C3AED;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

#stockSearch::placeholder {
    color: #64748b;
}

#searchBtn {
    background: linear-gradient(135deg, #7C3AED, #06B6D4);
    border: none;
    border-radius: 15px;
    padding: 15px 30px;
    color: #F8FAFC;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#searchBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.stock-details {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stock-info {
    margin-bottom: 30px;
}

.stock-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.stock-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F8FAFC;
}

.stock-symbol {
    background: rgba(124, 58, 237, 0.2);
    color: #7C3AED;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.stock-price-info {
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #F8FAFC;
}

.price-change {
    font-size: 1.1rem;
}

.ai-insights {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 15px;
    padding: 20px;
}

.ai-insights h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #7C3AED;
}

.insight-content {
    color: #E2E8F0;
    line-height: 1.6;
}

/* Chart Section */
.chart-section {
    margin-bottom: 40px;
}

.chart-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.chart-controls {
    margin-bottom: 20px;
}

.timeframe-selector {
    display: flex;
    gap: 10px;
}

.timeframe-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 16px;
    color: #94a3b8;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeframe-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #F8FAFC;
}

.timeframe-btn.active {
    background: linear-gradient(135deg, #7C3AED, #06B6D4);
    border-color: transparent;
    color: #F8FAFC;
}

#stockChart {
    max-height: 400px;
}

/* F&O Insights */
.fando-insights {
    margin-bottom: 40px;
}

.fando-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.fando-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.fando-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #F8FAFC;
}

.oi-data {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.pcr-data {
    text-align: center;
    padding: 20px;
}

.pcr-value {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7C3AED, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.pcr-interpretation {
    font-size: 1.1rem;
    color: #22C55E;
    font-weight: 600;
}

.option-table {
    width: 100%;
    border-collapse: collapse;
}

.option-table th,
.option-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.option-table th {
    background: rgba(124, 58, 237, 0.1);
    font-weight: 600;
    color: #7C3AED;
}

.option-table td {
    color: #E2E8F0;
}

.signal-bullish {
    color: #22C55E;
    font-weight: 600;
}

.signal-bearish {
    color: #EF4444;
    font-weight: 600;
}

/* News Section */
.news-section {
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.news-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.2);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.news-title {
    font-weight: 600;
    color: #F8FAFC;
    line-height: 1.4;
    margin-bottom: 8px;
}

.news-time {
    font-size: 0.8rem;
    color: #64748b;
}

.sentiment-tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.sentiment-positive {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.sentiment-negative {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.sentiment-neutral {
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
}

/* Watchlist */
.watchlist {
    margin-bottom: 40px;
}

.watchlist-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

#watchlistSearch {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 12px 20px;
    color: #F8FAFC;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#watchlistSearch:focus {
    outline: none;
    border-color: #7C3AED;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

#addToWatchlist {
    background: linear-gradient(135deg, #22C55E, #16a34a);
    border: none;
    border-radius: 15px;
    padding: 12px 25px;
    color: #F8FAFC;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#addToWatchlist:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.watchlist-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.watchlist-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.2);
}

.watchlist-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.watchstock-name {
    font-weight: 600;
    color: #F8FAFC;
    margin-bottom: 4px;
}

.watchstock-symbol {
    font-size: 0.8rem;
    color: #64748b;
}

.remove-btn {
    background: rgba(239, 68, 68, 0.2);
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    color: #EF4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.1);
}

.watchstock-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 8px;
}

.watchstock-change {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-stats {
        justify-content: center;
    }
    
    .indices-grid,
    .movers-grid,
    .fando-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .timeframe-selector {
        flex-wrap: wrap;
    }
    
    .stock-price-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .current-price {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #7C3AED;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Glow Effects */
.glow {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.glow-cyan {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.glow-green {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.glow-red {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* API Information Section */
.api-info {
    margin-bottom: 40px;
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.api-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.api-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.2);
}

.api-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #F8FAFC;
    margin-bottom: 8px;
}

.api-card p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.api-status-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.api-status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.api-status-badge:not(.active):not(.failed) {
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
}

.api-status-badge.failed {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

/* AI Chatbot Section */
.ai-chatbot {
    margin-bottom: 40px;
}

.chatbot-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.chatbot-header {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #F8FAFC;
    margin-bottom: 5px;
}

.chatbot-info p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-indicator {
    font-size: 0.8rem;
    font-weight: 600;
}

.quota-status {
    font-size: 0.7rem;
    font-weight: 600;
    color: #22C55E;
}

.quota-status.warning {
    color: #F59E0B;
}

.quota-status.error {
    color: #EF4444;
}

.clear-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    color: #EF4444;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.chatbot-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
}

.message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.ai-message {
    align-items: flex-start;
}

.user-message {
    align-items: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 15px;
    position: relative;
}

.ai-message .message-content {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(6, 182, 212, 0.3));
    border: 1px solid rgba(124, 58, 237, 0.2);
    color: #F8FAFC;
    border-bottom-left-radius: 5px;
}

.user-message .message-content {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(16, 185, 129, 0.3));
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #F8FAFC;
    border-bottom-right-radius: 5px;
}

.message-content p {
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.message-content li {
    margin-bottom: 5px;
}

.message-time {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 5px;
    padding: 0 5px;
}

.chatbot-input-container {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#aiChatInput {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    color: #F8FAFC;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

#aiChatInput:focus {
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

#aiChatInput::placeholder {
    color: #64748b;
}

.send-btn {
    background: linear-gradient(135deg, #7C3AED, #06B6D4);
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    color: #F8FAFC;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-action {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 15px;
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-action:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: #7C3AED;
    color: #F8FAFC;
    transform: translateY(-1px);
}

/* Typing indicator */
.typing-indicator {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: rgba(124, 58, 237, 0.3);
    border-radius: 15px;
    width: fit-content;
}

.typing-indicator.active {
    display: flex;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #F8FAFC;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Scrollbar styling */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.5);
}
