diff --git a/rezervace-aut.html b/rezervace-aut.html index 86f243e..732457b 100644 --- a/rezervace-aut.html +++ b/rezervace-aut.html @@ -46,38 +46,63 @@ } /* Calendar navigation buttons */ - .fc .fc-button-primary { - background-color: #004990; - border-color: #004990; - text-transform: uppercase; - font-size: 0.875rem; - font-weight: 500; - padding: 0.5rem 1rem; - transition: all 0.2s; + .fc .fc-button { border-radius: 0.375rem; + padding: 0.5rem 1rem; + font-weight: 500; + transition: all 0.2s; } - .fc .fc-button-primary:not(:disabled):hover { - background-color: #003970; - border-color: #003970; - transform: translateY(-1px); + .fc .fc-prev-button, + .fc .fc-next-button { + background-color: #ffffff; + border: 1px solid #e5e7eb; + color: #374151; } - .fc .fc-button-primary:not(:disabled):active, - .fc .fc-button-primary:not(:disabled).fc-button-active { - background-color: #002950; - border-color: #002950; - } - - .fc .fc-toolbar-title { - font-size: 1.25rem; - font-weight: 600; + .fc .fc-prev-button:hover, + .fc .fc-next-button:hover { + background-color: #f3f4f6; + border-color: #d1d5db; } .fc .fc-today-button { - text-transform: capitalize; + background-color: #004990; + border-color: #004990; } - + + .fc .fc-today-button:hover { + background-color: #003970; + border-color: #003970; + } + + /* Improved calendar header */ + .fc .fc-toolbar-title { + font-size: 1.25rem; + font-weight: 600; + color: #111827; + } + + /* Active state for view buttons */ + .fc .fc-button-active { + background-color: #004990 !important; + border-color: #004990 !important; + color: white !important; + } + + /* Space between button groups */ + .fc .fc-button-group { + gap: 0.25rem; + } + + .fc .fc-toolbar.fc-header-toolbar { + margin-bottom: 1.5rem; + padding: 0.5rem; + background-color: white; + border-radius: 0.5rem; + box-shadow: 0 1px 3px rgba(0,0,0,0.1); + } + .fc .fc-button-primary { background-color: #004990; border-color: #004990; @@ -616,6 +641,253 @@ .fc-event.hidden-vehicle { display: none; } + + /* Clickable reservations styling */ + .reservation-item { + cursor: pointer; + transition: all 0.2s ease; + } + + .reservation-item:hover { + background-color: #f3f4f6; + transform: translateY(-1px); + box-shadow: 0 2px 4px rgba(0,0,0,0.05); + } + + /* Modal delete button styling */ + #deleteReservation { + background-color: #ef4444; + color: white; + padding: 0.5rem 1rem; + border-radius: 0.375rem; + display: flex; + align-items: center; + gap: 0.5rem; + margin-top: 1rem; + transition: all 0.2s ease; + } + + #deleteReservation:hover { + background-color: #dc2626; + } + + #deleteReservation.hidden { + display: none; + } + + /* New styles for improved layout and responsiveness */ + body { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + background-color: #f9fafb; + margin: 0; + padding: 0; + } + + h1, h2, h3, h4, h5, h6 { + margin: 0; + padding: 0; + color: #111827; + } + + h1 { + font-size: 1.875rem; + font-weight: 700; + margin-bottom: 1rem; + } + + h2 { + font-size: 1.5rem; + font-weight: 600; + margin-bottom: 0.75rem; + } + + h3 { + font-size: 1.25rem; + font-weight: 500; + margin-bottom: 0.5rem; + } + + p { + margin: 0; + padding: 0; + color: #374151; + line-height: 1.625; + } + + a { + color: #004990; + text-decoration: none; + transition: color 0.2s; + } + + a:hover { + color: #0072b0; + } + + /* Button styles */ + .btn { + display: inline-block; + padding: 0.75rem 1.5rem; + border-radius: 0.375rem; + font-weight: 500; + text-align: center; + cursor: pointer; + transition: background-color 0.2s, transform 0.2s; + } + + .btn-primary { + background-color: #004990; + color: white; + } + + .btn-primary:hover { + background-color: #0072b0; + transform: translateY(-1px); + } + + .btn-secondary { + background-color: #f3f4f6; + color: #111827; + } + + .btn-secondary:hover { + background-color: #e5e7eb; + } + + /* Card styles */ + .card { + background: white; + border-radius: 0.5rem; + box-shadow: 0 2px 4px rgba(0,0,0,0.1); + padding: 1.5rem; + margin-bottom: 1.5rem; + } + + .card-header { + margin-bottom: 1rem; + } + + .card-title { + font-size: 1.125rem; + font-weight: 600; + margin-bottom: 0.5rem; + } + + .card-subtitle { + font-size: 0.875rem; + color: #6b7280; + } + + /* Table styles */ + .table { + width: 100%; + border-collapse: collapse; + margin-bottom: 1.5rem; + } + + .table th, .table td { + padding: 0.75rem; + text-align: left; + border-bottom: 1px solid #e5e7eb; + } + + .table th { + background-color: #f8fafc; + font-weight: 500; + } + + /* Badge styles */ + .badge { + display: inline-block; + padding: 0.375rem 0.75rem; + border-radius: 9999px; + font-size: 0.75rem; + font-weight: 500; + text-align: center; + } + + .badge-success { + background-color: #d1fae5; + color: #065f46; + } + + .badge-danger { + background-color: #fee2e2; + color: #991b1b; + } + + /* Spinner styles */ + .spinner { + border: 2px solid #e5e7eb; + border-top: 2px solid #004990; + border-radius: 50%; + width: 1rem; + height: 1rem; + animation: spin 1s linear infinite; + } + + @keyframes spin { + 0% { transform: rotate(0deg); } + 100% { transform: rotate(360deg); } + } + + /* Toast notification styles */ + .toast { + position: fixed; + top: 1rem; + right: 1rem; + background: white; + border-radius: 0.375rem; + box-shadow: 0 4px 6px rgba(0,0,0,0.1); + padding: 1rem; + z-index: 1000; + transition: transform 0.3s ease, opacity 0.3s ease; + } + + .toast.hide { + transform: translateY(-10px); + opacity: 0; + } + + .toast.show { + transform: translateY(0); + opacity: 1; + } + + /* Responsive styles */ + @media (max-width: 768px) { + .calendar-container { + padding: 0.5rem; + } + + .form-container { + padding: 1.5rem; + } + + .btn { + width: 100%; + padding: 0.5rem; + } + + .fc-view-harness { + height: 350px !important; + } + } + + @media (max-width: 640px) { + .form-container { + padding: 1rem; + margin: 1rem; + } + + .grid-cols-2 { + grid-template-columns: 1fr !important; + } + + .form-group { + margin-bottom: 1rem; + } + }
@@ -745,10 +1017,9 @@