Retail Supply Chain Analysis MCP
by jaydrage
- src
/* Base styles */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
margin: 0;
padding: 0;
background-color: #f5f7fa;
}
.retail-analysis-app {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header {
text-align: center;
margin-bottom: 30px;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
header h1 {
color: #2c3e50;
margin-bottom: 10px;
}
main {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
}
/* Data Uploader */
.data-processor {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.form-controls {
display: flex;
gap: 15px;
margin-bottom: 20px;
}
.form-group {
flex: 1;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: 600;
}
.form-group select,
.form-group input {
width: 100%;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
}
.file-upload {
margin-top: 15px;
padding: 15px;
border: 2px dashed #ddd;
border-radius: 6px;
background-color: #f9f9f9;
transition: all 0.3s;
}
.file-upload:hover {
border-color: #3498db;
background-color: #f0f8ff;
}
.file-upload input[type="file"] {
display: block;
width: 100%;
margin-bottom: 10px;
}
/* Analysis Component */
.mobile-retail-analysis {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.analysis-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 1px solid #eee;
}
.view-selector {
display: flex;
gap: 10px;
}
.view-selector button {
padding: 8px 15px;
background-color: #f1f1f1;
border: none;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
}
.view-selector button.active {
background-color: #3498db;
color: white;
}
.metrics-summary {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
margin: 20px 0;
}
.metric-card {
background-color: #f8f9fa;
padding: 15px;
border-radius: 6px;
text-align: center;
}
.metric-card h4 {
margin-top: 0;
color: #555;
}
.metric-value {
font-size: 24px;
font-weight: bold;
color: #2c3e50;
}
/* Loading state */
.loading {
text-align: center;
padding: 40px;
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
}
.loading .spinner {
width: 40px;
height: 40px;
border-width: 4px;
}
/* Chart containers */
.inventory-analysis,
.vendor-analysis,
.sales-analysis {
margin-top: 20px;
}
h3 {
color: #2c3e50;
margin-top: 25px;
margin-bottom: 15px;
}
h4 {
color: #34495e;
margin-top: 20px;
margin-bottom: 10px;
}
/* Processing indicator */
.processing-indicator {
display: flex;
align-items: center;
margin-top: 15px;
}
.spinner {
width: 20px;
height: 20px;
border: 3px solid rgba(0, 0, 0, 0.1);
border-radius: 50%;
border-top-color: #3498db;
animation: spin 1s ease-in-out infinite;
margin-left: 10px;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Success message */
.success-message {
background-color: #e8f5e9;
color: #2e7d32;
padding: 10px 15px;
border-radius: 4px;
margin: 15px 0;
border-left: 4px solid #2e7d32;
display: flex;
justify-content: space-between;
align-items: center;
}
.reset-button {
background-color: #2e7d32;
color: white;
border: none;
padding: 6px 12px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
}
.reset-button:hover {
background-color: #1b5e20;
}
/* Error message styling */
.error-message {
background-color: #ffebee;
color: #c62828;
padding: 10px 15px;
border-radius: 4px;
margin: 15px 0;
border-left: 4px solid #c62828;
}
.error-message p {
margin: 0;
}
.error-help {
font-size: 14px;
margin-top: 8px;
font-style: italic;
}
/* Multi-file upload styles */
.upload-help {
font-size: 14px;
color: #666;
margin-top: 5px;
font-style: italic;
}
.uploaded-files {
margin-top: 25px;
background-color: #f8f9fa;
border-radius: 6px;
padding: 15px;
border: 1px solid #e9ecef;
}
.file-list {
margin: 15px 0;
max-height: 300px;
overflow-y: auto;
}
.file-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 15px;
background-color: white;
border-radius: 4px;
margin-bottom: 8px;
border-left: 4px solid #3498db;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.file-item.processed {
border-left-color: #2ecc71;
}
.file-info {
display: flex;
align-items: center;
gap: 10px;
}
.file-name {
font-weight: 600;
}
.file-rows {
color: #666;
font-size: 14px;
}
.file-controls {
display: flex;
align-items: center;
gap: 10px;
}
.file-type-select {
padding: 6px 10px;
border: 1px solid #ddd;
border-radius: 4px;
background-color: white;
}
.remove-file-btn {
background-color: #f1f1f1;
border: none;
width: 28px;
height: 28px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: #666;
font-size: 12px;
}
.remove-file-btn:hover {
background-color: #e74c3c;
color: white;
}
.file-actions {
display: flex;
justify-content: space-between;
margin-top: 15px;
}
.analyze-btn {
background-color: #3498db;
color: white;
border: none;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
font-weight: 600;
}
.analyze-btn:hover {
background-color: #2980b9;
}
.analyze-btn:disabled {
background-color: #95a5a6;
cursor: not-allowed;
}
.clear-files-btn {
background-color: #f1f1f1;
color: #333;
border: none;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
}
.clear-files-btn:hover {
background-color: #e0e0e0;
}
/* File selector styles */
.file-selector {
display: flex;
align-items: center;
gap: 10px;
margin-right: 20px;
}
.file-selector label {
font-weight: 600;
color: #555;
}
.file-selector select {
padding: 6px 10px;
border: 1px solid #ddd;
border-radius: 4px;
background-color: white;
min-width: 200px;
}