/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #6a11cb, #2575fc); /* Gradient background */
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Header and Navbar */
header {
    background-color: rgba(0, 123, 255, 0.9); /* Semi-transparent header */
    color: #fff;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    animation: fadeIn 1s ease-in-out;
}

.logo img {
    height: 40px; /* Adjust logo size */
    margin-right: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Container for Sidebar and Main Content */
.container {
    display: flex;
    min-height: calc(100vh - 120px); /* Adjust for header and footer */
}

/* Sidebar: Index List */
.sidebar {
    width: 250px;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    margin-top: 0;
    color: #007BFF;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 10px;
    display: block;
    transition: background-color 0.3s ease;
}

.sidebar ul li a:hover {
    background-color: #007BFF;
    color: #fff;
    border-radius: 5px;
}

/* Main Content: Chart Area */
.content {
    flex: 1;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content h2 {
    margin-top: 0;
    color: #007BFF;
}

.chart-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: 400px; /* Set a fixed height for the chart container */
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 123, 255, 0.9); /* Semi-transparent footer */
    color: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} .sidebar {
    width: 250px;  /* Adjust width as needed */
    height: 100vh; /* Full viewport height */
    overflow-y: auto; /* Enables vertical scrolling */
    border: 1px solid #ccc; /* Optional: adds a border */
    padding: 10px;
    background-color: #f8f9fa; /* Light background */
}
