ShiftScheduler/Client/Pages/Index.razor.css
Copilot 7f8b2c4b8c
Enhance shift handling: Move storage to file system and add month selection (#36)
* Initial plan

* Initial setup: Downgrade .NET version to 8.0 for compatibility

Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com>

* Implement enhanced shift handling with file system storage and month selection

Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com>

* Move component styles from global app.css to Index.razor.css for proper component isolation

Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com>
2025-08-28 19:47:12 +02:00

280 lines
5.4 KiB
CSS

/* Top navigation buttons */
.top-nav-buttons {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
flex-wrap: wrap;
gap: 1rem;
}
/* Month selection buttons */
.month-selection {
display: flex;
gap: 0.5rem;
}
/* Action buttons container */
.action-buttons {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
/* Month navigation buttons */
.month-btn {
padding: 0.5rem 1rem;
border: 2px solid #1b6ec2;
background-color: #fff;
color: #1b6ec2;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s ease;
}
.month-btn:hover {
background-color: #f8f9fa;
}
.month-btn.selected {
background-color: #1b6ec2;
color: #fff;
}
.month-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
/* Loading overlay */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.8);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.loading-content {
text-align: center;
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.loading-content .loading-spinner {
font-size: 2rem;
animation: spin 1s linear infinite;
margin-bottom: 10px;
}
/* Calendar container */
.calendar-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin-top: 1rem;
}
/* Each day cell */
.day-cell {
border: 1px solid #dee2e6;
border-radius: 8px;
padding: 1rem;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Day number */
.day-header {
font-weight: bold;
margin-bottom: 0.5rem;
color: #333;
font-size: 0.9rem;
}
/* Shift buttons container */
.shifts {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.5rem;
margin-bottom: 0.5rem;
}
/* Individual shift buttons */
.shift-button {
border: 2px solid #ddd;
border-radius: 6px;
padding: 0.5rem;
background-color: #fff;
cursor: pointer;
font-size: 1.2rem;
transition: all 0.2s ease;
text-align: center;
min-height: 2.5rem;
display: flex;
align-items: center;
justify-content: center;
}
.shift-button:hover {
background-color: #f8f9fa;
border-color: #007bff;
transform: translateY(-1px);
}
/* Selected shift */
.shift-button.selected {
background-color: #007bff;
color: white;
border-color: #0056b3;
}
/* Export button */
.btn.export-btn {
margin: 5px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
background-color: #ADD8E6; /* Light blue */
color: #333;
border: 2px solid #87CEEB; /* Slightly darker blue border */
border-radius: 5px;
transition: background-color 0.2s ease;
}
.btn.export-btn:hover {
background-color: #87CEEB;
border-color: #4682B4;
}
/* Reset button */
.reset-btn {
margin: 5px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
background-color: #FFB6C1; /* Light red/pink */
color: #333;
border: 2px solid #FF91A4; /* Slightly darker red border */
border-radius: 5px;
transition: background-color 0.2s ease;
}
.reset-btn:hover {
background-color: #FF91A4;
border-color: #FF69B4;
}
/* Configuration button */
.btn.config-btn {
margin: 5px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
background-color: #DDA0DD; /* Light purple/plum */
color: #333;
border: 2px solid #DA70D6; /* Slightly darker purple border */
border-radius: 5px;
transition: background-color 0.2s ease;
}
.btn.config-btn:hover {
background-color: #DA70D6;
border-color: #BA55D3;
}
/* Reset section - separate from export buttons */
.reset-section {
margin: 30px 0 20px 0;
text-align: center;
}
/* Export buttons section */
.export-buttons {
margin: 20px 0;
text-align: center;
}
/* Tooltip container */
.tooltip-wrapper {
position: relative;
display: inline-block;
}
/* Tooltip text */
.tooltip {
visibility: hidden;
background-color: #333;
color: #fff;
text-align: center;
padding: 4px 8px;
border-radius: 6px;
font-size: 0.85rem;
position: absolute;
z-index: 1;
bottom: 125%; /* Position above the button */
left: 50%;
transform: translateX(-50%);
opacity: 0;
transition: opacity 0.2s ease-in-out;
white-space: nowrap;
}
/* Tooltip arrow */
.tooltip::after {
content: "";
position: absolute;
top: 100%; /* Arrow at the bottom of tooltip */
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #333 transparent transparent transparent;
}
/* Show tooltip on hover */
.tooltip-wrapper:hover .tooltip {
visibility: visible;
opacity: 1;
}
/* Transport information styling */
.transport-info {
margin-top: 8px;
padding: 4px;
background-color: #e8f4fd;
border-radius: 4px;
font-size: 0.75rem;
color: #2c5aa0;
word-wrap: break-word;
min-height: 20px;
}
/* Shift times styling */
.shift-times {
margin-top: 8px;
padding: 4px;
background-color: #f0f8e0;
border-radius: 4px;
font-size: 0.75rem;
color: #2d5016;
word-wrap: break-word;
font-weight: bold;
}
/* Loading spinner */
.loading-spinner {
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}