body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.header {
    text-align: center;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

h1 {
    margin: 0;
    font-size: 2em;
    color: #fff;
}

p {
    font-size: 1.1em;
    color: #aaa;
}

#graph-container {
    width: 100%;
    flex-grow: 1; /* Let the container fill the remaining vertical space */
    min-height: 0; /* Prevents overflow issues in flex children */
    box-sizing: border-box; 
    border-top: 1px solid #333;
    background-color: #242424;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loading-indicator {
    text-align: center;
    color: #ccc;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left-color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}