body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}

#header {
  background-color: #333;
  color: #fff;
  padding: 2px 0;
  text-align: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#footer {
  background-color: #333;
  color: #fff;
  position: fixed;
  width: 100%;
  bottom: 0;
  text-align: center;
  display: flex;
  justify-content: center;
  padding: 1px 0;
  z-index: 1001;
}

.container {
  max-width: 400px;
  margin: 0 auto;
  padding: 10px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.faq {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 5px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"] {
  padding: 8px;
  margin-bottom: 1px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

input[type="submit"] {
  padding: 5px 10px;
  background-color: #2cb510;
  color: #fff;
  border: none;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: green;
}

p {
  text-align: center;
  margin-top: 10px;
}



#logo h3 {
  margin: 0 auto;
  text-align: center;
  padding: 10px 0;
}

#wrapper {
  margin: 0 auto;
  padding: 10px;
  padding-top: 60px;
  padding-bottom: 60px;
}

#content {
  background-color: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

table {
  margin: 20px auto;
  width: 100%;
  border-collapse: collapse;
  border: 3px solid #ddd;
  table-layout: auto;
  word-wrap: break-word;
}

th,
td {
  padding: 3px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f2f2f2;
}




button {
  background-color: #590e5c;
  color: #fff;
  border: none;
  padding: 5px 10px;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  margin-right: 5px;
  border-radius: 5px;
  text-decoration: none;
}

button:hover {
  background-color: #0056b3;
  text-decoration: none;
}

.button {
  background-color: #590e5c;
  color: #fff;
  border: none;
  padding: 5px 10px;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  margin-right: 5px;
  border-radius: 5px;
  text-decoration: none;
}

.button:hover {
  background-color: #0056b3;
  text-decoration: none;
}


.button-orange {
  background-color: #ca7a11;
  color: #fff;
  border: none;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  margin-right: 5px;
  border-radius: 5px;
}

.button-orange:hover {
  background-color: #b36b0e;
  text-decoration: none;
}


.button-red {
  background-color: #ca1111;
  color: #fff;
  border: none;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  margin-right: 5px;
  border-radius: 5px;
}

.button-red:hover {
  background-color: #8d0505;
  text-decoration: none;
}


.button-green {
  padding: 5px 10px;
  background-color: #2cb510;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none !important;
}

.button-green:hover {
  background-color: green;
}



@media only screen and (max-width: 500px) {
  .mediahidden {
    display: none;
  }
}



.sortButton {
  border: none;
  background-color: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
  text-decoration: none;
}

select {
  background-color: #f8f9fa;
  color: #212529;
  border: 1px solid #ced4da;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
  transition: all 0.2s ease-in-out;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-width: 200px;
}

select:hover {
  border-color: #6c757d;
  background-color: #e9ecef;
}

select:focus {
  outline: none;
  border-color: #495057;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  background-color: #fff;
}

option {
  padding: 10px;
  background-color: #fff;
  color: #212529;
}

/* Styl głównego widoku (to co widać przed kliknięciem) */
.select2-container .select2-selection--single {
  height: 38px;
  /* dopasuj do swojego */
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  background-color: #f8f9fa;
}

/* Styl tekstu w środku */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 28px;
  color: #333;
}

/* Styl strzałki */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px;
  right: 10px;
}

/* Styl listy rozwijanej */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #e9ecef;
  color: rgb(0, 0, 0);
}

/* Własna szerokość */
.select2-container {
  width: 350px !important;
}

.template-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.template-option {
  flex: 1;
  min-width: 300px;
  min-height: 500px;
  border: 2px solid #ccc;
  padding: 30px;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.template-option.selected {
  border-color: #4caf50;
  background-color: #f0f8f0;
}

.template-option h3 {
  margin-top: 0;
  color: #333;
}


.template-option label {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.template-preview {
  border: 1px solid #ddd;
  width: 100%;
  height: 400px;
  margin-top: 10px;
  background-color: white;
  overflow: auto;
}



.success-message,
.error-message {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  min-width: 300px;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  animation: slideDown .3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}



.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
}

th {
  max-width: 140px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.slot-cell {
  max-width: 140px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  cursor: pointer;
  min-width: 20px;
  height: 38px;
  text-align: center;
  vertical-align: middle;
}

.slot-cell.disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  text-align: center;
  vertical-align: middle;
}

.slot-cell.disabled .disabled-marker {
  display: inline-block;
  color: #cbd5e1;
  font-size: 30px;
}

.slot-cell.selected {
  outline: 2px solid #007bff;
  background: #e7f1ff;
}

.slot-input {
  width: 100%;
  border: 1px solid #ccc;
  padding: 4px;
  box-sizing: border-box;
}

.mechanic-cell {
  min-width: 50px;
  background: #985454;
  color: #fff;
  padding: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.save-info {
  color: green;
  margin-bottom: 12px;
}

.reservation-note {
  margin-bottom: 12px;
  color: #333;
  font-size: 11px;
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.modal {
  background: #fff;
  max-width: 520px;
  margin: 60px auto;
  padding: 20px;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modal h2 {
  margin-top: 0;
}

.modal label {
  display: block;
  margin-bottom: 10px;
}

.modal input[type="text"],
.modal input[type="date"],
.modal input[type="time"],
.modal textarea {
  width: 100%;
  padding: 6px;
  box-sizing: border-box;
}

.modal button {
  margin-top: 10px;
  padding: 8px 14px;
}

.edit-time-row,
.edit-meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.edit-time-row label,
.edit-meta-row>div {
  flex: 1;
  min-width: 180px;
}

.edit-time-row label input,
.edit-meta-row>div span {
  width: 100%;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ccc;
  border: none;
  font-size: 20px;
  cursor: pointer;
}



.reservation-cell:hover {
  background: #ede9fe !important;
}

.toolbar {
  align-items: center;
  gap: 10px;
  background: #523608;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  color: white;
}


.reservation-cell.cancelled {
  position: relative;
}

.reservation-cell.cancelled::after {
  content: "✕";
  position: absolute;
  top: 2px;
  right: 4px;
  color: #ff0000;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  pointer-events: none;
}

.mechanic-item {
  display: block;
  margin-bottom: 5px;
}

.sys-box {
  background-color: #606467;
  color: #fff;
  padding: 3px;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

textarea {
  border: 3px solid #781010;
  font-size: 18px;
  border-radius: 4px;
  padding: 8px;
  width: 100%;
  box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 4px rgba(76, 175, 80, 0.2);
}