dev1/src/components/Dashboard.css

312 lines
6.5 KiB
CSS

/* Dashboard.css */
/* Main Dashboard Layout */
.dashboard {
min-height: 100vh;
padding: 20px;
background-color: #f4f7fa;
}
/* Main Content Layout: Career Suggestions + RIASEC Scores */
.dashboard-content {
display: flex;
flex-direction: row;
flex-wrap: nowrap; /* This allows the elements to wrap when screen size is small */
gap: 20px;
align-items: flex-start;
width: 100%;
max-width: 100%;
flex-grow: 1;
min-height: auto; /* Prevents extra spacing */
}
/* Sections in Dashboard */
.dashboard section {
background-color: #ffffff;
padding: 15px;
border-radius: 8px;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
border-left: 4px solid #6a9fb5;
}
.career-button.disabled {
background-color: #ccc;
color: #666;
cursor: not-allowed;
}
.dashboard section:hover {
transform: translateY(-3px);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
/* Headings */
h2 {
font-size: 1.4rem;
color: #2b4a67;
margin-bottom: 10px;
border-bottom: 1px solid #e0e0e0;
padding-bottom: 4px;
}
/* Career Suggestions Section */
.career-suggestions-container {
flex: 1.5; /* Ensures it takes the majority of space */
width: 100%;
max-width: 75%;
background-color: #ffffff;
padding: 15px;
border-radius: 8px;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
/* Career Suggestions Grid */
.career-suggestions-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 10px;
padding: 10px;
width: 100%;
justify-content: start;
}
/* Career Buttons */
.career-button {
padding: 8px 10px;
font-size: 14px;
font-weight: bold;
background-color: #007bff;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
text-align: center;
white-space: normal;
border-radius: 3px; /* Less rounded */
}
/* Limited Data Warning: Yellow Button */
.career-button.limited-data {
background-color: lightblue !important;
color: whitesmoke;
font-weight: bold;
border: 2px solid #ff9800; /* Orange border for emphasis */
}
/* Warning Icon */
.warning-icon {
margin-left: 6px;
font-size: 14px;
color: yellow; /* Dark orange to indicate caution */
font-weight: bold;
}
.career-button:hover {
background-color: #0056b3;
}
/* Progress Bar */
.progress-container {
width: 100%;
background-color: #e0e0e0;
border-radius: 4px;
margin: 20px 0;
padding: 10px;
text-align: center;
position: relative; /* Ensures proper layout */
overflow: hidden; /* Prevents extra spacing */
}
/* Striped Progress Bar */
.progress-bar {
height: 12px;
background: repeating-linear-gradient(
-45deg,
#007bff,
#007bff 10px,
#5a9bff 10px,
#5a9bff 20px
);
width: 0%;
transition: width 0.3s ease-in-out;
text-align: center;
font-size: 12px;
color: white;
border-radius: 4px;
line-height: 12px;
font-weight: bold;
}
/* RIASEC Section */
.riasec-container {
flex: 1;
max-width: 400px; /* Ensure it stays visible */
min-width: 350px;
position: sticky;
top: 20px;
background-color: #ffffff;
padding: 12px;
border-radius: 8px;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
/* Filter Container */
.filter-container {
width: 100%;
max-width: 900px; /* Ensures alignment */
min-width: 200px; /* Ensures dropdowns have enough space */
gap: 20px; /* Add spacing between filters */
display: flex;
align-items: center;
font-size: 14px;
flex-wrap: nowrap; /* Ensures responsiveness */
justify-content: flex-start;
background: #ffffff;
padding: 6px;
border-radius: 8px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
margin-bottom: 10px;
}
.filter-group {
display: flex;
align-items: center;
gap: 10px; /* Space between label and dropdown */
}
/* Style Dropdown */
.filter-container label {
font-size: 14px;
font-weight: bold;
white-space: nowrap; /* Prevents labels from wrapping */
color: #333;
margin-right: 10px;
}
.filter-container select {
padding: 8px;
font-weight: bold;
font-size: 14px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: #fff;
margin-right: 8px; /* Space between label and dropdown */
white-space: nowrap; /* Prevents label from wrapping */
cursor: pointer;
min-width: 220px; /* Ensures dropdowns have enough width */
}
/* RIASEC Scores */
.riasec-scores {
padding: 15px;
border-radius: 8px;
background-color: #ffffff;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
.riasec-descriptions {
padding: 15px;
border-radius: 8px;
background-color: #f1f8ff;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.riasec-descriptions ul {
list-style: none;
padding: 0;
}
.riasec-descriptions li {
margin-bottom: 10px;
line-height: 1.6;
}
.riasec-descriptions strong {
color: #007bff;
}
/* Acknowledgment Section - Move to Bottom */
.data-source-acknowledgment {
width: 100%;
text-align: center;
font-size: 12px;
color: #666;
padding: 10px;
border-top: 1px solid #ccc;
position: fixed;
bottom: 0;
left: 0;
background: #ffffff;
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}
/* Chart Container */
.chart-container {
margin: 20px 0;
max-width: 600px;
margin-left: auto;
margin-right: auto;
width: 100%; /* Full width */
}
.chatbot-widget {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}
/* Sign Out Button */
.sign-out-container {
text-align: center;
margin-top: 20px;
}
.sign-out-btn {
padding: 10px 20px;
background-color: #007bff;
color: white;
border: none;
cursor: pointer;
font-size: 1rem;
width: 150px;
}
.sign-out-btn:hover {
background-color: #0056b3;
}
/* Responsive Tweaks */
@media (max-width: 900px) {
.dashboard {
flex-direction: column; /* Stacks sections on smaller screens */
}
.dashboard-content {
flex-direction: column; /* Stacks elements on smaller screens */
}
.filter-container {
width: 100%; /* Full width on mobile */
max-width: 100%;
}
.filter-container select {
width: 100%;
}
.riasec-container {
max-width: 100%; /* Full width on mobile */
position: relative;
top: unset;
}
.career-suggestions-container {
max-width: 100%; /* Full width */
}
}