/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7fc;
    color: #333;
}

/* Header Styling */
header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 32px;
}

header h3 {
    margin: 5px 0;
    font-size: 18px;
    color: #bdc3c7;
}

/* Dashboard Layout */
#dashboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    max-width: 1300px;
    margin: auto;
}

/* Slider Section */
.slider-container {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

input[type="range"] {
    width: 60%;
    height: 8px;
    background: #ccc;
    border-radius: 5px;
    outline: none;
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    width: 60%;
    margin-left: 25%;
    margin-right: auto;
}

.slider-ticks span {
    width: 10px;
    height: 10px;
    background-color: #2980b9;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

/* Hover Effect on Ticks */
.slider-ticks span:hover {
    background-color: #3498db;
}

/* Tooltip when hovering over ticks */
.slider-ticks span:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 20px;
    background-color: #2980b9;
    color: white;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    text-align: center;
}

/* Instructions Styling */
.instructions {
    font-style: bold;
    font-size: 16px;
    color: #556364;
    margin-top: 10px;
    font-style: italic;
    margin-left: 8%;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: fit-content;
    position: relative;
}

/* Card Styling with Overlapping Effect */
.card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 32%;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
/* Graph Container */
.graph-container {
    width: 100%;
    height: 400px;
}

/* Click Effect */
.card:active {
    transform: scale(0.98);
}


/* Card Styling
.card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 32%;
    text-align: center;
}

.card:hover {
    transform: scale(1.05);
} */

/* Tooltip Styling */
.tooltip {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-size: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
}

/* Tooltip style */
.scatter-tooltip, .histogram-tooltip {
    position: absolute;
    background: lightgray;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    visibility: hidden;
    pointer-events: none;
}

/* Header Styling */
header {
    background-color: #34495e; /* Dark gray-blue background for professionalism */
    color: #ecf0f1; /* Light text for contrast */
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

header h1 {
    margin: 0;
    font-size: 36px;
    color: #ecf0f1; /* Lighter color for the title */
}

header h3 {
    margin: 5px 0;
    font-size: 18px;
    color: #bdc3c7; /* Subtle lighter text for your name */
}

header p {
    font-size: 14px;
    color: #bdc3c7; /* Light gray text for source information */
}

/* Dashboard Footer */
footer {
    text-align: center;
    background-color: #2c3e50; /* Darker blue-gray for a professional footer */
    color: #ecf0f1; /* Lighter text for contrast */
    padding: 20px;
    font-size: 14px;
    margin-top: 40px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

footer a {
    color: #ecf0f1; /* Lighter text color for links */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: #bdc3c7; /* Slightly lighter color on hover */
}

/* Tab Container */
.tab-container {
    display: flex;
    border-bottom: 2px solid #ccc;
    margin-bottom: 10px;
} 

.tab {
    padding: 10px 20px;
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: bold;
    color: #333;
    outline: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tab:hover {
    background-color: #e8f2fb;
    color: #1f77b4;
}

.tab.active {
    border-bottom: 3px solid #1f77b4;
    color: #1f77b4;
}

.interactive-element:hover {
    fill: #377eb8;  /* Same color as brushing */
    cursor: pointer;
  }
