.bartimegraph {
    position: relative;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 8px;
    background: transparent;
    box-shadow: 0 4px 4px 0 #dff4ff;
    padding-bottom: 45px;
    align-items: center;
    height: 100%;
}

.bartimegraph .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.bartimegraph .title .title-text {
    font-family: "Metropolis Semi Bold";
    font-size: 20px;
    line-height: normal;
    letter-spacing: 0.3px;
    color: #4B4A4A;
}

.bartimegraph-canvas-container {
    width: calc(50vw - 100px);
    height: calc(50vw - 200px);
    max-height: 500px;
    max-width: 500px;
}
.bartimegraph-canvas-container .charts {
    width: 100%;
    height: 100%;
}

/* Cover Message Styles */
.cover-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    max-width: 300px;
}

.cover-message-title {
    font-family: "Metropolis Bold";
    font-size: 18px;
    line-height: 22px;
    color: #4b4a4a;
    margin-bottom: 12px;
    letter-spacing: 0.27px;
}

.cover-message-text {
    font-family: "Metropolis Regular";
    font-size: 16px;
    line-height: 20px;
    color: #666;
    letter-spacing: 0.16px;
}

.dark .bartimegraph {
    background-color: #1F2120;
    box-shadow: none;
}

.dark .bartimegraph .title .title-text {
    color: #FFFFFF;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .bartimegraph {
        width: 100%;
    }
    .bartimegraph .title .title-text  {
        font-size: 18px;
        line-height: 22px;
        letter-spacing: 0.27px;
    }
    .bartimegraph-canvas-container {
        width: 100%;
        max-width: 350px;
        height: 350px;
    }

    .cover-message {
        padding: 20px;
        max-width: 280px;
    }

    .cover-message-title {
        font-size: 16px;
        line-height: 20px;
    }

    .cover-message-text {
        font-size: 14px;
        line-height: 18px;
    }
}

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

    .cover-message {
        padding: 16px;
        max-width: 250px;
    }
}
