:root {
    --primary-green: #10b981;
    --light-green: #d1fae5;
    --red: #ef4444;
    --light-red: #fee2e2;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fafafa;
}

.market-ticker {
    background: white;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.ticker-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.ticker-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
}

.ticker-change {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.positive { color: var(--primary-green); }
.negative { color: var(--red); }

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.card-header {
    background: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.portfolio-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 1rem 0 0.5rem 0;
}

.portfolio-change {
    color: var(--primary-green);
    font-size: 1rem;
}

.chart-area {
    height: 200px;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 8px;
    margin: 1.5rem 0;
    position: relative;
}

.chart-line {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-green);
}

.btn-primary {
    background: var(--primary-green);
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 600;
    width: 100%;
}

.btn-primary:hover {
    background: #059669;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: var(--gray-100);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--primary-green);
    color: white;
}

.watchlist-table, .movers-table {
    width: 100%;
}

.watchlist-table th, .movers-table th {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.watchlist-table td, .movers-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-tech { background: #dbeafe; color: #1e40af; }
.tag-software { background: #e0e7ff; color: #4338ca; }
.tag-ev { background: #fef3c7; color: #92400e; }
.tag-search { background: #fce7f3; color: #9f1239; }
.tag-ecommerce { background: #d1fae5; color: #065f46; }
.tag-bullish { background: var(--light-green); color: #065f46; }
.tag-neutral { background: var(--gray-100); color: var(--gray-600); }
.tag-bearish { background: var(--light-red); color: #991b1b; }

.stock-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.stock-symbol {
    font-weight: 600;
    color: var(--gray-800);
}

.stock-name {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.news-item {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.news-item:hover {
    background-color: var(--gray-100);
}

.news-item:last-child {
    border-bottom: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-green);
}

.icon-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: var(--gray-800);
    transition: background-color 0.2s;
}

.icon-button:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.icon-button i {
    font-size: 1rem;
}

.btn-sign-in,
.btn-sign-up {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sign-in {
    background: transparent;
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
}

.btn-sign-in:hover {
    background: var(--gray-100);
    color: var(--gray-800);
    border-color: var(--gray-300);
}

.btn-sign-up {
    background: var(--primary-green);
    color: white;
}

.btn-sign-up:hover {
    background: #059669;
    color: white;
}

.symbol-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.symbol-input {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    text-transform: uppercase;
    width: 120px;
}

.symbol-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.stock-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.price-section {
    flex: 1;
    min-width: 250px;
}

.stock-symbol {
    font-size: 18px;
    color: #666;
    font-weight: 600;
    margin-bottom: 8px;
}

.portfolio-value {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.portfolio-change {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.portfolio-change.positive {
    color: #10b981;
}

.portfolio-change.negative {
    color: #ef4444;
}

.change-percentage {
    font-size: 14px;
    opacity: 0.8;
}

.time-range-buttons {
    display: flex;
    gap: 8px;
    background: #f5f7fa;
    padding: 6px;
    border-radius: 8px;
}

.time-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #666;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #059669;
}

.time-btn.active {
    background: #059669;
    color: white;
}

.chart-container {
    position: relative;
    height: 400px;
    margin: 24px 0;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    z-index: 10;
}

.loading-overlay.hidden {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 12px;
    color: #666;
    font-weight: 500;
}

.error-message {
    padding: 16px;
    background: #fee;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    border-radius: 6px;
    margin-bottom: 16px;
    display: none;
}

.error-message.show {
    display: block;
}

@media (max-width: 768px) {
    .stock-info {
        flex-direction: column;
    }

    .time-range-buttons {
        flex-wrap: wrap;
    }

    .portfolio-value {
        font-size: 28px;
    }

    .chart-container {
        height: 300px;
    }
}

/* Add to existing CSS */

.volume-container {
    position: relative;
    height: 120px;
    margin: 12px 0 24px 0;
}

.info-message {
    padding: 12px 16px;
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    display: none;
    line-height: 1.5;
}

.info-message.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 20px;

}

.stat-card {
    background: #f9fafb;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.stat-card:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.stat-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}
