<style>
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f4f4f4;
  color: #212121;
}
header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  background: linear-gradient(135deg, #1c1c1c, #333333);
  color: #b0b0b0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  /*font-weight: 30px;*/
  z-index: 1;
}
header h1{
    font-size: 40px;
}
#nav-logout, #nav-back {
  position: absolute;
  top: 40px;
  height: 40px;
  width: 40px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
}
#nav-logout {
  right: 20px;
}
#nav-back {
  left: 20px;
}
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1c1c1c, #333333);
  color: #ffffff;
  min-height: 0;
}
footer {
  background: linear-gradient(135deg, #1c1c1c, #333333);
  color: #b0b0b0;
  text-align: center;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
  height: 25px;
  line-height: 1px;
}
#toastContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 15px 20px;
  color: #ffffff;
  font-size: 16px;
  border-radius: 6px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-20px);
  animation: toastSlideIn 0.5s ease forwards, toastFadeOut 0.5s ease 4.5s forwards;
  transition: all 0.3s ease;
}
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes toastFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.success-toast {
  background-color: #28a745;
}
.error-toast {
  background-color: #dc3545;
}
.warning-toast {
  background-color: #ffc107;
}
.info-toast {
  background-color: #17a2b8;
}
.offlineMessage {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 8px 0;
  font-size: 14px;
  background-color: #F31215;
  color: #ffffff;
  text-align: center;
  z-index: 1000;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  transform: translateY(-100%);
}
.offlineMessage.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
@keyframes pulse {
  0%, 100% {
    background-color: #F31215;
  }
  50% {
    background-color: #D01012;
  }
}
.offlineMessage.show {
  animation: pulse 2s infinite;
}
#popupWindow .jqx-window-header, #popupWindow .jqx-window-content, #reviewModal .jqx-window-header, #reviewModal .jqx-window-content {
  background-color: #333333 !important;
  color: #ffffff !important;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid #555555;
}
#popupWindow input, #reviewModal input {
  background-color: #555555;
  color: #ffffff;
  border: 1px solid #777777;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.3s, border-color 0.3s;
}
#popupWindow input:focus {
  background-color: #666666;
  border-color: #888888;
  outline: none;
  box-shadow: 0 0 5px rgba(136, 136, 136, 0.4);
}
#reviewModal .jqx-widget-content {
  opacity: 1;
}
#reviewModal #confirmSubmit:hover, #edit:hover {
  background-image: url("../utils/jqwidgets/styles/images/bg_blackhover.png");
  filter: brightness(1.2);
}
.popup-window #reviewModal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
#registration_form, #registration_forms {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
#registration_form table, #registration_forms table {
  margin: auto;
}
#registration_form td, #registration_forms td {
  padding: 5px 0px 5px 0px;
}
.form-field {
  width: 300px;
  padding: 10px;
  border: 2px solid #555;
  border-radius: 5px;
  background-color: #282828;
  color: #ffffff;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
.form-field:focus {
  border-color: #f0ad4e;
  outline: none;
  box-shadow: 0 0 8px rgba(240, 173, 78, 0.6);
}
.button-block {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap onto the next row */
  justify-content: space-around; /* Distribute items with space around */
  align-items: stretch;
  margin: 40px auto;
  padding: 0px 20px;
  animation: BounceEffect 0.8s ease-out;
  animation-fill-mode: both;
  animation-delay: 0.1s;
  gap: 20px; /* Add spacing between buttons */
}
.button-block > div {
  flex: 1 1 150px; /* Minimum width of 150px, grow to fit */
  max-width: 300px; /* Optional: Cap the maximum width */
  margin: 10px 0; /* Add spacing between rows */
  text-align: center; /* Center content inside the button */
  padding: 20px;
  background: #333; /* Example styling */
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
@keyframes BounceEffect {
  0%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
  50% {
    transform: translateY(2px);
  }
  70% {
    transform: translateY(-2px);
  }
}
.image-button {
  width: 80px !important;
  height: 80px !important;
  background-color: #222;
  border-radius: 8px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background-color 0.3s;
  background-size: cover;
  background-position: center;
}
.image-button.button {
  background-image: url('');
}
.image-button:hover {
    background-color: #333;
    transform: scale(1.05);
}

.image-button.button1 {
    background-image: url('');
}
.image-button.button2 {
    background-image: url('');
}
.image-button.button3 {
    background-image: url('');
}
.image-button.button4 {
    background-image: url('');
}
.button-label {
  margin-top: 10px;
  font-size: 20px;
  text-align: center;
  white-space: nowrap;
  color: #AFAFAF;
}
h2 {
  color: #f0ad4e;
  margin-bottom: 50px;
}
.form-group {
  margin-bottom: 20px;
}
.jqx-buttons {
  width: 100%;
  height: 40px;
  font-size: 20px !important;
  border: 2px solid #555;
  border-radius: 5px;
  background-color: rgba(40, 40, 40, 0.9);
  color: #b0b0b0;
  transition: border 0.3s;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
.jqx-input {
  width: 100%;
  height: 40px;
  font-size: 14px !important;
  text-indent: 10px;
  border: 2px solid #555;
  border-radius: 5px;
  background-color: rgba(40, 40, 40, 0.9);
  color: #ffffff;
  transition: border 0.3s;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
.jqx-input:focus {
  border-color: #f0ad4e;
  outline: none;
  box-shadow: 0 0 5px rgba(240, 173, 78, 0.5);
}
.jqx-input::placeholder {
  color: #aaa;
  opacity: 1;
}
.form-container {
  height: auto;
  background: linear-gradient(135deg, #333333, #1a1a1a);
  padding: 60px;
  margin: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  width: 400px;
  text-align: center;
  animation: BounceEffect 0.8s ease-out;
  animation-fill-mode: both;
  animation-delay: 0.1s;
}
@keyframes BounceEffect {
  0%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
  50% {
    transform: translateY(2px);
  }
  70% {
    transform: translateY(-2px);
  }
}
.big-container {
  width: auto;
  height: auto;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.button {
  height: 20px;
  margin-left: 30px;
  margin-right: 30px;
  font-size: 14px;
}
.gridButton {
  font-size: 14px;
  margin-left: 30px;
  margin-right: 30px;
  text-align: center;
}
.info-container {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    width: 400px;
    height: 430px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.welcome-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #f0f0f0;
}
.welcome-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #b0b0b0;
}
.user-info {
    text-align: left;
    font-size: 1rem;
    margin-bottom: 0px;
    line-height: 1.4;
}
.user-info strong {
    color: #cccccc;
}
/*#submitChangePassword {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("../utils/jqwidgets/styles/images/bg_black.png");
    background-size: contain;
    background-position: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    border: 1px solid #333333;
    border-radius: 5px;
    padding: 0 10px;
    height: 30px !important;
    cursor: pointer;
    transition: background-color 0.3s, filter 0.3s;
    filter: brightness(1.2);
}
#submitChangePassword:hover {
    background-image: url("../utils/jqwidgets/styles/images/bg_blackhover.png");
    filter: brightness(1.2);
}*/
