﻿.stock-header-section {
    background: white;
    padding: 2px 0;
    margin-bottom: 20px;
}

.stock-header-container {
    margin: 0 auto;
    padding: 0 20px;
}

.company-title {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin: 2px 0;
    line-height: 25px;
}

.stock-details {
    font-size: 12px;
    color: #666;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-top: 14px;
}

.stock-current-price {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    line-height: 1;
}

.stock-price-change {
    font-size: 20px;
    font-weight: 600;
}

.market-status {
    font-size: 12px;
    color: #666;
    display:none;
}

.stock-container {
    margin: 0 auto;
    padding: 0 20px;
}

.stock-layout {
    display: flex;
    gap: 0;
    min-height: 500px;
}

.quote-section {
    flex: 1;
    background: white;
    padding: 17px 24px 0 17px;
    border-top: 1px solid #ebebeb;
    min-width: 390px;
}

.chart-placeholder {
    flex: 2;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    max-height: 472px;
}

.stock-loading {
    text-align: center;
    color: #666;
    font-size: 17px;
    padding: 45px;
}

.positive {
    color: #16a34a;
}

.negative {
    color: #dc2626;
}

.neutral {
    color: #666;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 24px;
    margin-bottom: 24px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #f5f5f5;
}

.metric-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.metric-value {
    font-size: 14px;
    color: #111;
    font-weight: 600;
    text-align: right;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin: 24px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.stock-error {
    color: #dc2626;
    text-align: center;
    padding: 40px;
    font-size: 16px;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}

    .skeleton-text.large {
        height: 20px;
    }

    .skeleton-text.small {
        height: 12px;
    }

/* Header Skeleton Styles */
.skeleton-header-title {
    height: 28px;
    border-radius: 4px;
    margin-bottom: 8px;
    width: 300px;
}

/* Header Skeleton Styles */
.skeleton-header-details {
    height: 16px;
    width: 200px;
    margin: 8px 0 16px 0;
}

/* Price Display Container Skeleton */
.skeleton-price-display-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 14px;
    padding-bottom: 16px;
}

/* Main Price Section Skeleton (Left) */
.skeleton-main-price-section {
    flex: 0 0 auto;
}

.skeleton-current-price {
    height: 36px;
    width: 160px;
    margin: 7px 0 6px 0;
}

.skeleton-price-change {
    height: 18px;
    width: 140px;
    margin-bottom: 10px;
}

.skeleton-price-label {
    height: 12px;
    width: 180px;
}

/* Extended Hours Section Skeleton (Right) */
.skeleton-extended-hours-section {
    flex: 0 0 auto;
    margin-top: 8px;
}

.skeleton-extended-price {
    height: 24px;
    width: 80px;
    margin-bottom: 6px;
}

.skeleton-extended-change {
    height: 16px;
    width: 120px;
    margin-bottom: 10px;
}

.skeleton-extended-label {
    height: 12px;
    width: 160px;
}

/* Market Status Skeleton */
.skeleton-market-status {
    height: 14px;
    width: 120px;
    margin-top: 12px;
    
}

/* Header Loading State */
.header-loading-state .company-title {
    color: #666;
    font-weight: 500;
}

/* Responsive Skeleton Styles */
@media (max-width: 768px) {
    .skeleton-price-display-container {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .skeleton-current-price {
        height: 32px;
        width: 140px;
    }

    .skeleton-extended-price {
        height: 22px;
        width: 70px;
    }

    .skeleton-price-change,
    .skeleton-extended-change {
        height: 16px;
        width: 120px;
    }
}

@media (max-width: 480px) {
    .skeleton-price-display-container {
        gap: 16px;
    }

    .skeleton-current-price {
        height: 28px;
        width: 120px;
    }

    .skeleton-extended-price {
        height: 20px;
        width: 60px;
    }

    .skeleton-price-label,
    .skeleton-extended-label {
        height: 11px;
        width: 140px;
    }
}

/* Loading state for header */
.header-loading-state .company-title {
    color: #666;
    font-weight: 500;
}

.skeleton-news-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.skeleton-news-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
}

.skeleton-news-content {
    flex: 1;
}

.skeleton-profile-section {
    margin-bottom: 24px;
}

/* Profile Styles */
.profile-section {
    margin-bottom: 24px;
}

.profile-description {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 32px 0 20px 0;
}

.profile-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-detail-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.profile-detail-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-bottom: 4px;
}

.profile-detail-value {
    font-size: 14px;
    color: #111;
    font-weight: 600;
}

.profile-address {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.profile-link {
    color: #0057b8;
    text-decoration: none;
}

    .profile-link:hover {
        text-decoration: underline;
    }

/* News Styles */
.tickerNewsRow {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.newsIcon {
    color: #0057b8;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.newsHeadline {
    margin-bottom: 6px;
}

    .newsHeadline a {
        font-size: 14px;
        font-weight: 600;
        color: #111;
        text-decoration: none;
        line-height: 1.4;
    }

        .newsHeadline a:hover {
            color: #0057b8;
            text-decoration: underline;
        }

.newsDesc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.news-profile-grid {
    display: grid;
    grid-gap: 40px;
    grid-template-columns: 1fr 350px;
    margin: 0 35px;
}

/* Updated Price Display Container */
.price-display-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 14px;

    /*padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;*/
}

/* Main Price Section (Left) */
.main-price-section {
    flex: 0 0 auto;
}

.stock-current-price {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    line-height: 1;
    margin-bottom: 4px;
}

    .stock-current-price .currency {
        font-size: 16px;
        font-weight: 500;
        color: #666;
        margin-left: 4px;
    }

.stock-price-change {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.main-price-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Extended Hours Section (Right) */
.extended-hours-section {
    flex: 0 0 auto;
    margin-top: 8px;
}

.extended-hours-price {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    line-height: 1;
    margin-bottom: 4px;
}

.extended-hours-change {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.extended-hours-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Session indicator dots */
.session-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

    .session-dot.premarket {
        background-color: #f59e0b;
    }

    .session-dot.afterhours {
        background-color: #3b82f6;
    }

/* Color classes */
.positive {
    color: #16a34a;
}

.negative {
    color: #dc2626;
}

.neutral {
    color: #666;
}
 

/* Responsive Design */
@media (max-width: 768px) {
    .price-display-container {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .stock-current-price {
        font-size: 28px;
    }

    .extended-hours-price {
        font-size: 18px;
    }

    .stock-price-change,
    .extended-hours-change {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .price-display-container {
        gap: 16px;
    }

    .stock-current-price {
        font-size: 24px;
    }

    .extended-hours-price {
        font-size: 16px;
    }

    .main-price-label,
    .extended-hours-label {
        font-size: 11px;
    }
}


/* Modern Tab Navigation CSS */
#divInnerTabs {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
    position: relative;
}

#ulInnerTabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
}

    #ulInnerTabs::-webkit-scrollbar {
        display: none;
    }

    #ulInnerTabs li {
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
        min-width: fit-content;
    }

        #ulInnerTabs li a {
            display: block;
            padding: 10px 15px;
            text-decoration: none;
            color: #666;
            font-size: 14px;
            font-weight: 500;
            white-space: nowrap;
            position: relative;
            transition: all 0.3s ease;
            border-bottom: 3px solid transparent;
        }

            #ulInnerTabs li a:hover {
                color: rgb(0, 87, 184);
                background-color: #f8f9fa;
            }

            #ulInnerTabs li a.current {
                color: rgb(0, 87, 184);
                border-bottom-color: rgb(0, 87, 184);
                background-color: white;
                font-weight: 600;
            }

/* Remove the old clear both break */
#divInnerTabs br {
    display: none;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    #ulInnerTabs li a {
        padding: 14px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #ulInnerTabs li a {
        padding: 12px 12px;
        font-size: 13px;
    }
}

/* Optional: Add scroll indicators for better UX on mobile */
#divInnerTabs::before,
#divInnerTabs::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

#divInnerTabs::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

#divInnerTabs::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

/* Show scroll indicators when content overflows (requires JS to add classes) */
#divInnerTabs.scroll-left::before {
    opacity: 1;
}

#divInnerTabs.scroll-right::after {
    opacity: 1;
}

#ulInnerTabs {
    scroll-behavior: smooth;
}

 