/* General Body and Layout */
body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.8em;
    font-weight: 700;
    color: #007bff;
    text-decoration: none;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #007bff;
}

/* Main Content */
main {
    padding: 30px 0;
}

#root {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Dashboard Section Styling */
.dashboard-section {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
}

.dashboard-section h1,
.dashboard-section h2 {
    color: #222;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.dashboard-section h1 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 30px;
}

.dashboard-section h2 {
    font-size: 1.6em;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.data-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.data-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.data-item .label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.data-item .value {
    font-size: 1.8em;
    font-weight: 700;
    color: #0056b3;
}

.data-item.positive .value {
    color: #28a745; /* Green for positive values */
}

.data-item.negative .value {
    color: #dc3545; /* Red for negative values */
}

/* Footer */
footer {
    background-color: #333;
    color: #f0f2f5;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}
