knn_app / utils /style.css
hellosara's picture
Upload 7 files
fdb0c97 verified
Raw
History Blame Contribute Delete
2.91 kB
/* --- Global Styles --- */
body {
margin: 0;
padding: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background: linear-gradient(135deg, #fff5f5 0%, #ffe4e6 50%, #fbcfe8 100%);
min-height: 100vh;
}
.app-container {
padding: 40px 20px;
}
.app-wrapper {
max-width: 1400px;
margin: 0 auto;
}
/* --- Typography --- */
.app-header {
text-align: center;
color: #1e1b4b;
font-weight: 800;
margin-bottom: 5px;
}
.app-subtitle {
text-align: center;
color: #be123c;
margin-top: -5px;
font-weight: bold;
letter-spacing: 0.5px;
}
/* --- Layout Grid --- */
.dashboard-grid {
display: flex;
flex-wrap: wrap;
gap: 30px;
margin-top: 35px;
}
/* --- Glassmorphism Sidebar Panel --- */
.sidebar-panel {
flex: 1;
min-width: 320px;
background-color: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
padding: 25px;
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.7);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}
.sidebar-title {
margin-top: 0;
color: #1e1b4b;
border-bottom: 3px solid #e11d48;
padding-bottom: 8px;
font-weight: 700;
}
.control-label {
font-weight: bold;
display: block;
margin-top: 15px;
color: #334155;
margin-bottom: 8px;
}
/* --- Main Content Panel --- */
.main-content {
flex: 2.5;
min-width: 500px;
display: flex;
flex-direction: column;
gap: 20px;
}
/* --- Metric Cards --- */
.metrics-row {
display: flex;
gap: 20px;
}
.metric-card {
flex: 1;
text-align: center;
padding: 20px;
background-color: #ffffff;
border-radius: 12px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.metric-card.train {
border-left: 5px solid #e11d48;
}
.metric-card.test {
border-left: 5px solid #16a34a;
}
.metric-title-train {
font-size: 11pt;
color: #9f1239;
font-weight: bold;
}
.metric-title-test {
font-size: 11pt;
color: #166534;
font-weight: bold;
}
.metric-value-train {
margin: 5px 0 0 0;
color: #e11d48;
font-weight: 800;
}
.metric-value-test {
margin: 5px 0 0 0;
color: #16a34a;
font-weight: 800;
}
/* --- Chart Containers --- */
.chart-container-large {
background-color: #ffffff;
padding: 20px;
border-radius: 16px;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}
.charts-row-small {
display: flex;
flex-wrap: wrap;
gap: 20px;
}
.chart-container-small {
flex: 1;
min-width: 300px;
background-color: #ffffff;
padding: 15px;
border-radius: 16px;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}