src/main/resources/static/css/stock.css
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(90deg, #e2e2e2, #c9d6ff);
    margin: 0;
}

body.dark-mode {
    background: linear-gradient(90deg, #181717, #202020);
}

.container {
    max-width: 1200px;
    margin: auto;
    padding-top: 30px;
}

.card.stock-detail-page {
    box-shadow: 0 0 40px rgba(16, 139, 211, 0.75);
}

.dark-mode .card.stock-detail-page {
    background: linear-gradient(to top, #0f0c29, #302b63, #24243e);
    box-shadow: 0 0 100px rgba(64, 0, 117, 0.755);
}

.left {
    padding: 25px 20px;
}

.dark-mode .left {
    color: white;
}

.left > h3,
strong,
span {
    font-weight: 500;
    font-size: 2.25vh;
}

.right {
    padding: 25px 0px;
}

.dark-mode .right {
    color: white;
}

.right > h3 {
    padding-bottom: 20px;
}

.stock-detail-page {
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.stock-name h1 {
    margin: 0;
    font-size: 32px;
}

.stock-name p {
    color: #555;
    margin-top: 4px;
    padding-bottom: 10px;
}

.dark-mode .stock-name P {
    color: #acabab;
}

.stock-price {
    padding: 0px 0px 25px 0px;
}

.stock-price h2 {
    margin: 0;
    font-size: 36px;
}

.stock-price p {
    margin: 4px 0;
    color: #4caf50;
}

.content {
    display: flex;
    gap: 0;
}

.stats-grid > div {
    padding-top: 15px;
}

.left,
.right {
    flex: 1;
}

.chart-section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    min-width: 700px;
}

.dark-mode .chart-section {
    color: white;
    background: transparent;
}

.middle.chart-section {
    flex: 2;
    margin-left: 0; /* 👈 remove the gap */
    margin-top: 20px;
}

.range-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    margin-bottom: 15px;
}

.range-buttons button {
    background: transparent;
    border: none;
    color: #6e7b8a;
    font-size: 15px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.dark-mode .range-buttons button {
    color: #d2d2d2;
}

.range-buttons button.active {
    color: #007bff;
    font-weight: 600;
}

.dark-mode .range-buttons button.active {
    color: #ffd700;
    font-weight: 600;
}

.range-buttons button:hover {
    color: #007bff;
}

.dark-mode .range-buttons button:hover {
    color: #ffd700;
}

ul#news-list {
    list-style: none;
    padding: 30px 15px;
    margin-bottom: 30px;
    font-size: 2.5vh;
    font-weight: 300;
}

.company-card {
    background: #f2f6fb;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    margin-top: 0px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    color: #1c1e21;
}

.dark-mode .company-card {
    background: transparent;
    color: white;
}

.company-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.company-info img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

.company-info h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.dark-mode .company-info h4 {
    color: #ffffff;
}

.company-info p {
    margin: 0;
    line-height: 1.5;
    color: #444;
    font-size: 14px;
    max-width: 90%;
}

.dark-mode .company-info p {
    color: #acabab;
}

.ratings-section {
    display: flex;
    align-items: center;
    gap: 12px; /* adjust as needed */
    padding-bottom: 25px;
}

#ratings-breakdown {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.6;
}

#ratings-breakdown li {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

#ratingsChart {
    width: 120px !important;
    height: 120px !important;
    display: inline-block;
    vertical-align: middle;
}

#priceChart {
    width: 90% !important;
    height: 400px !important;
    display: inline-block;
    vertical-align: middle;
}

#chartjs-glass-tooltip .glass-tooltip {
    padding: 10px 14px;
    border-radius: 10px;
    color: #0f7fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid #0f7fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(15, 127, 255, 0.3);
    font-size: 14px;
    white-space: nowrap;
    text-align: center;
}

.dark-mode #chartjs-glass-tooltip .glass-tooltip {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ffd700;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

.tooltip-label {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 2px;
}

.tooltip-value {
    font-size: 14px;
}

@media (max-width: 1024px) {
    .container {
        padding: 20px;
    }

    .content {
        flex-direction: column;
    }

    .middle.chart-section {
        min-width: 100%;
        margin-left: 0;
    }

    #priceChart {
        width: 100% !important;
        height: 300px !important;
    }
}

@media (max-width: 768px) {
    .card.stock-detail-page {
        box-shadow: 0 0 40px rgba(16, 139, 211, 0.55);
    }

    .container {
        width: 100%;
    }

    .stock-name h1#company-name {
        font-size: 32px;
    }

    .stock-name p#stock-symbol {
        font-size: 24px;
        color: #666;
    }

    .stock-price {
        padding-left: 24px;
    }

    .stock-price h2 {
        font-size: 28px;
    }

    .stats-grid {
        padding: 0 25px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 16px;
        margin-top: 10px;
    }

    .stats-grid div {
        font-size: 14px;
    }

    .range-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .company-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .company-info img {
        width: 64px;
        height: 64px;
    }

    .chart-section {
        padding: 16px;
    }

    .right > h3 {
        padding-left: 24px;
    }

    .right .stock-price {
        margin-top: 0;
        margin-left: 20px;
        padding-top: 0;
    }

    .ratings-section {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
    }

    #ratingsChart {
        width: 100px !important;
        height: 100px !important;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
    }

    .stock-name h1,
    .stock-price h2,
    .left > h3,
    .right > h3 {
        font-size: 20px;
    }

    ul#news-list {
        font-size: 2vh;
        padding: 20px 10px;
    }

    .range-buttons button {
        font-size: 14px;
        padding: 3px 6px;
    }

    .stock-detail-page {
        padding: 20px;
    }
}
