/* Reset and General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    /* Background with Image */
    background-image: url("background.jpg");
    background-size: contain; /* Scale the image to cover the entire background */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent image repetition */
    background-attachment: fixed; /* Keep background fixed during scroll */
    display: flex;
    /*justify-content: center;   Remove centering */
    /*align-items: center;    Remove centering */
    min-height: 100vh;
    position: relative; /* Needed for absolute positioning of shapes */
    overflow-x: hidden; /* Prevent horizontal scroll */
    justify-content: flex-start;
    align-items: flex-start;
}

/* The rest of the CSS remains the same */
.dashboard-container {
    width: 100%;     /* Full width */
    /* Background Color - White */
    background-color: #ffffff; /* Changed to pure white */
    border-radius: 0px;      /* No rounded corners */
    /* Box Shadow - Soft and Subtle */
    box-shadow: none; /* Slightly adjusted shadow */
    overflow: hidden;
    min-height: 100vh;  /* Full height */
}

/* Top Bar */
.top-bar {
    background-color: #5085a5;
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.top-bar nav ul li {
    margin-left: 1rem;
}

.top-bar nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.window-controls {
    display: flex;
}

.window-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.window-controls span:nth-child(1) {
    background-color: #ff6059;
}

.window-controls span:nth-child(2) {
    background-color: #ffbd2e;
}

.window-controls span:nth-child(3) {
    background-color: #27c93f;
}

/* Header Styles */
header {
    padding: 2rem;
    text-align: left;
}

header h1 {
    color: #305973;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-text {
    flex: 1;
    margin-right: 20px;
}

.header-text h2 {
    color: #305973;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.header-text p {
    color: #5e7a8f;
    font-size: 0.9rem;
    line-height: 1.4;
}

.header-chart {
    flex-shrink: 0;
    width: 300px;
}

.header-chart img {
    max-width: 100%;
    height: auto;
}

/* Main Content */
main {
    padding: 0 2rem 2rem;
}

.card-container {
    display: flex;
    justify-content: space-between;
}

.card {
    flex: 1;
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
    margin-right: 1.5rem;
}

.card:last-child {
    margin-right: 0;
}

.card h3 {
    color: #305973;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: #5e7a8f;
    font-size: 0.85rem;
    line-height: 1.3;
}

.card .card-chart {
    text-align: center;
}

.card .card-chart img {
    max-width: 100%;
    height: auto;
}

.card .contract {
    color: #5e7a8f;
    font-size: 0.75rem;
    text-align: center;
}

/* Buttons */
.button {
    background-color: #5085a5;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 1rem;
}

.button.view-data-btn {
    margin: 0 auto;
    display: block;
    text-align: center;
}

/* Graph Comparison Page Styles */

/* Graph Comparison Page Styles (Updated - All Full Width) */

.comparison-page {
    padding: 2rem;
}

.comparison-page h1 {
    color: #305973;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.comparison-grid {
    display: grid;
    /*  Remove grid-template-columns if you want a vertical list */
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */ /* Remove this line */
    gap: 2rem;
}

.comparison-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
    grid-column: 1 / -1; /* Span from the first to the last column */ /* Add this line */
}

.comparison-item h2 {
    color: #305973;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.graph-container {
    width: 100%;
    margin-bottom: 1rem;
    border: 1px solid #eee; /* Optional: Add a subtle border */
    border-radius: 5px;
    overflow: hidden; /* Ensures the image stays within the container */
}

.graph-container img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space under image */
}

.comparison-item p {
    color: #5e7a8f;
    font-size: 0.85rem;
    line-height: 1.4;
}
