﻿:root {
    --bg-cd: rgba(15, 15, 15, 0.95);
    --cd-font: #e6e6e6;
    --plchartbackground: #1e1e2f;
    --plcharttextColor: #ffffff;
}

    :root[data-theme=light] {
        --bg-cd: rgba(240, 240, 240, 0.95);
        --cd-font: #1a1a1a;
        --plchartbackground: white;
        --plcharttextColor: #000;
    }

.chart-container {
    position: relative;
}
/* Dark card wrapper used across these two new blocks */
.card-dark {
    background: var(--bg-cd);
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    color: var(--cd-font);
    border: 1px solid rgba(255,255,255,0.03);
}

/* Company info banner */
.company-info-inner {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.company-info-text {
    flex: 1 1 480px;
    min-width: 280px;
}

    .company-info-text h2 {
        margin: 0 0 8px 0;
        color: #f5f5f5;
        font-size: 1.15rem;
    }

    .company-info-text .muted {
        color: rgba(230,230,230,0.65);
        font-size: 0.95rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }
.info-bullets {
    list-style: none; /* removes bullets */
    padding: 0; /* remove default UL padding */
    margin: 0;
    color: rgba(230,230,230,0.8);
}

    .info-bullets li {
        margin: 6px 0;
        font-size: 0.92rem;
        line-height: 1.4;
        text-align: justify;
    }
 
/* Image fits right side */
.company-info-image {
    height: 60px !important;
    /*display: flex; */
}

    .company-info-image img {
  
        height:50px !important;
        height: auto;
        border-radius: 6px;
        object-fit: cover; 
    }

/* Last Market Price card */
    .last-market-inner {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .last-market-header {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .last-market-title {
        flex: 1 1 460px;
        min-width: 200px;
    }

    .symbol {
        color: #b8c0c8;
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .price-row {
        display: flex;
        gap: 18px;
        align-items: flex-end;
        flex-wrap: wrap;
    }

    .price-large {
        font-size: 2.05rem;
        font-weight: 700;
        color: #fff;
    }

    .price-change {
        font-size: 0.95rem;
        color: #9ccfbd;
    }

        .price-change .muted {
            color: rgba(230,230,230,0.6);
            font-size: 0.9rem;
            margin-left: 6px;
        }

        .price-change .small {
            font-size: 0.85rem;
            color: rgba(200,200,200,0.6);
        }

        .price-change .green {
            color: #00c889;
        }
    /* Timeframe controls area */
    .timeframe-controls {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .time-buttons {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .tf-btn {
        background: rgba(0,0,0,0.35);
        border: 1px solid rgba(255,255,255,0.04);
        color: #cbd5d9;
        padding: 6px 10px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 0.85rem;
    }

        .tf-btn.active {
            background: #121212;
            border-color: rgba(255,255,255,0.06);
            box-shadow: inset 0 -2px 0 rgba(0,0,0,0.4);
        }
    /* Chart area */
    .last-market-chart {
        margin-top: 6px;
        padding: 12px;
        border-radius: 8px;
        background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
        border: 1px solid rgba(255,255,255,0.03);
    }

    .chart-svg {
        width: 100%;
        height: 180px;
        display: block;
        background: transparent;
        border-radius: 6px;
    }

    .chart-caption {
        margin-top: 8px;
        color: rgba(200,200,200,0.6);
        font-size: 0.9rem;
    }
    /* Responsive: stack image below text on narrow screens */
    @media (max-width: 900px) {
        .company-info-inner {
            flex-direction: column;
            align-items: flex-start;
        }

        .company-info-image {
            width: 100%;
            max-width: 100%;
        }

        .last-market-header {
            flex-direction: column;
            align-items: flex-start;
        }

        .timeframe-controls {
            width: 100%;
        }
    }
