Files
The-transit-Project/admin_ui/src/styles.css
T
Sven laptop 68490f8fd5 scheduling feature
Co-authored-by: Copilot <copilot@github.com>
2026-05-06 15:58:02 +02:00

377 lines
6.1 KiB
CSS

body {
margin: 0;
color: #0f172a;
background:
radial-gradient(circle at top left, rgba(99, 102, 241, 0.12), transparent 28%),
radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 24%),
linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
font-family: Inter, system-ui, Arial, sans-serif;
}
.app {
max-width: 1180px;
margin: 0 auto;
padding: 28px 18px 48px;
}
.topbar {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 20px;
}
.topbar h1 {
margin: 4px 0 0;
font-size: 2.2rem;
}
.eyebrow {
margin: 0;
text-transform: uppercase;
letter-spacing: 0.12em;
color: #4f46e5;
font-size: 0.75rem;
font-weight: 700;
}
.userbox {
display: flex;
gap: 12px;
align-items: center;
background: rgba(255, 255, 255, 0.75);
border: 1px solid rgba(148, 163, 184, 0.25);
border-radius: 14px;
padding: 10px 14px;
box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}
.hero {
background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.88));
color: white;
border-radius: 24px;
padding: 24px 26px;
margin-bottom: 22px;
box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}
.hero h2 {
margin: 0 0 6px;
font-size: 1.5rem;
}
.hero p,
.card p {
margin: 0;
color: inherit;
}
main {
display: grid;
gap: 18px;
}
.card,
.login {
background: rgba(255, 255, 255, 0.84);
border: 1px solid rgba(148, 163, 184, 0.22);
border-radius: 22px;
padding: 18px;
box-shadow: 0 18px 32px rgba(15, 23, 42, 0.07);
backdrop-filter: blur(14px);
}
.section-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12px;
margin-bottom: 14px;
}
.form-row {
display: flex;
gap: 10px;
margin: 10px 0;
flex-wrap: wrap;
}
.stack-form {
margin-top: 10px;
}
input,
select,
button {
border-radius: 12px;
border: 1px solid rgba(148, 163, 184, 0.45);
padding: 11px 12px;
font: inherit;
}
input,
select {
background: white;
min-width: 180px;
flex: 1;
}
input[readonly] {
background: #f8fafc;
color: #64748b;
}
button {
background: #111827;
color: white;
cursor: pointer;
transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
button:hover {
transform: translateY(-1px);
box-shadow: 0 10px 24px rgba(17, 24, 39, 0.16);
}
button.secondary {
background: white;
color: #0f172a;
}
button.danger {
background: #dc2626;
color: white;
border-color: #991b1b;
}
button.danger:hover {
background: #b91c1c;
box-shadow: 0 10px 24px rgba(220, 38, 38, 0.2);
}
.message {
margin-top: 10px;
color: #047857;
font-weight: 600;
}
.error {
color: #b91c1c;
margin-top: 10px;
}
.list-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 10px;
margin: 10px 0 16px;
}
.mini-card {
background: rgba(248, 250, 252, 0.96);
border: 1px solid rgba(148, 163, 184, 0.2);
border-radius: 16px;
padding: 12px 14px;
}
.mini-card strong {
display: block;
margin-bottom: 6px;
}
.route-stops-board {
display: grid;
gap: 10px;
margin: 12px 0 18px;
padding: 8px;
border-radius: 18px;
border: 1px dashed rgba(148, 163, 184, 0.28);
background: rgba(255, 255, 255, 0.45);
}
.route-stops-board.drop-ready {
border-color: rgba(79, 70, 229, 0.5);
background: rgba(238, 242, 255, 0.9);
}
.route-stop-item {
display: flex;
align-items: center;
gap: 12px;
background: rgba(248, 250, 252, 0.96);
border: 1px solid rgba(148, 163, 184, 0.22);
border-radius: 16px;
padding: 12px 14px;
box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
cursor: grab;
}
.route-stop-item.dragging {
opacity: 0.72;
transform: scale(0.995);
}
.route-stop-handle {
font-size: 1.2rem;
line-height: 1;
color: #64748b;
user-select: none;
}
.route-stop-content {
flex: 1;
}
.route-stop-content strong {
display: block;
margin-bottom: 4px;
}
.route-stop-actions {
display: flex;
gap: 8px;
flex-shrink: 0;
}
.route-stop-actions button {
padding: 8px 10px;
min-width: 42px;
}
.available-stops-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 10px;
margin: 12px 0 18px;
}
.available-stop {
cursor: grab;
user-select: none;
transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.available-stop:hover {
transform: translateY(-1px);
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.muted {
color: #64748b;
font-size: 0.95rem;
}
.login {
max-width: 540px;
margin: 60px auto;
}
/* ============ Timetable Styles ============ */
.timetable-container {
overflow-x: auto;
margin: 20px 0;
border: 1px solid rgba(148, 163, 184, 0.25);
border-radius: 12px;
background: white;
}
.timetable {
width: 100%;
border-collapse: collapse;
font-size: 0.95rem;
}
.timetable thead {
background: #f1f5f9;
border-bottom: 2px solid rgba(148, 163, 184, 0.3);
}
.timetable th {
padding: 12px;
text-align: left;
font-weight: 600;
color: #0f172a;
}
.timetable td {
padding: 12px;
border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.timetable tbody tr:hover {
background: rgba(99, 102, 241, 0.03);
}
.time-cell {
font-weight: 600;
color: #4f46e5;
width: 140px;
white-space: nowrap;
background: #f8fafc;
}
.schedule-cell {
background: white;
}
.schedule-items {
display: flex;
flex-wrap: wrap;
gap: 8px;
min-height: 60px;
align-content: flex-start;
}
.schedule-card {
background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 233, 0.06));
border: 1px solid rgba(99, 102, 241, 0.25);
border-radius: 8px;
padding: 10px;
flex: 0 1 auto;
min-width: 180px;
cursor: grab;
transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.schedule-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 16px rgba(99, 102, 241, 0.15);
}
.schedule-card:active {
cursor: grabbing;
}
.schedule-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
}
.schedule-header strong {
color: #4f46e5;
font-size: 0.95rem;
}
.schedule-time {
font-size: 0.85rem;
color: #64748b;
background: rgba(255, 255, 255, 0.5);
padding: 2px 6px;
border-radius: 4px;
}
.schedule-details {
font-size: 0.85rem;
color: #475569;
}
.schedule-plate {
color: #94a3b8;
font-size: 0.8rem;
font-family: monospace;
margin-top: 2px;
}