body {
  background-color: #40434E;
  color: white;
  font-family: "Courier New", Courier, monospace;
  font-size: 4vw;
  letter-spacing: 2px;
  word-spacing: 2px;
  text-decoration: none solid rgb(68, 68, 68);
  font-style: normal;
  font-variant: normal;
  text-transform: none;
}

.container {
  max-width: 100%;
  padding: 0 15px;
}

/* Form styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border-radius: 4px;
}

.input-group {
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
}

.input-group .form-control {
  flex: 1;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.input-group .btn {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  margin: 0 !important;
  padding: 0.75rem !important;
}

.input-group .btn img.svg-icon {
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
}

/* Button styles */
.btn {
  font-size: 0.4em;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  gap: 8px !important;
  padding: 0.75rem !important;
  min-height: 44px !important;
  margin-bottom: 10px !important;
  border-radius: 4px !important;
}

.btn img.svg-icon {
  flex-shrink: 0 !important;
}

/* Custom button styles */
.btn-secondary {
  background-color: #363847 !important;
  border-color: #4A4C5C !important;
  color: white !important;
  border-width: 2px !important;
}

.btn-secondary:hover {
  background-color: #3F415A !important;
  border-color: #5A5D73 !important;
}

.btn-secondary:active {
  background-color: #2D2F3B !important;
  border-color: #4A4C5C !important;
}

/* Danger button - Red tint */
.btn-danger {
  background-color: #483636 !important;
  border-color: #5C4A4A !important;
  color: white !important;
  border-width: 2px !important;
}

.btn-danger:hover {
  background-color: #5A3F3F !important;
  border-color: #735A5A !important;
}

.btn-danger:active {
  background-color: #3B2D2D !important;
  border-color: #5C4A4A !important;
}

/* Warning button - Yellow tint */
.btn-warning {
  background-color: #484336 !important;
  border-color: #5C574A !important;
  color: white !important;
  border-width: 2px !important;
}

.btn-warning:hover {
  background-color: #5A533F !important;
  border-color: #736C5A !important;
}

.btn-warning:active {
  background-color: #3B372D !important;
  border-color: #5C574A !important;
}

/* Success button - Green tint */
.btn-success {
  background-color: #364837 !important;
  border-color: #4A5C4B !important;
  color: white !important;
  border-width: 2px !important;
}

.btn-success:hover {
  background-color: #3F5A40 !important;
  border-color: #5A735B !important;
}

.btn-success:active {
  background-color: #2D3B2E !important;
  border-color: #4A5C4B !important;
}

img.svg-icon {
  filter: invert(50%) sepia(46%) saturate(383%) hue-rotate(5deg) brightness(89%) contrast(88%);
}

/* QR code images should not have any filters applied */
.qr-code-image {
  filter: none !important;
}

input {
  background-color: #6c757d !important;
  font-weight: bold !important;
  color: white !important;
  border-color: grey !important;
}

input:focus {
  outline: none !important;
  border-color: white !important;
  box-shadow: 0 0 10px white !important;
}

input:disabled {
  background-color: #484e55 !important;
  border-color: black !important;
}

select {
  background-color: #6c757d !important;
  font-weight: bold !important;
  color: white !important;
  border-color: grey !important;
}

select:focus {
  outline: none !important;
  border-color: white !important;
  box-shadow: 0 0 10px white !important;
}

p {
  font-size: 0.5em;
}

.title {
  margin: 5px;
}

.content {
  padding-left: 20px;
  padding-right:20px;
  padding-top: 5px;
}

.wein-field {
  margin-bottom: 10px;
  margin-top: 10px;
}

.form-group input {
  font-size: 0.2em;
}

.form-group label {
  font-size: 0.4em;
}

.btn {
  font-size: 0.4em;
}

.navbar {
  padding: 15px !important;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-center {
  display: flex;
  justify-content: center;
}

.navbar-right {
  display: flex;
  justify-content: flex-end;
}

.navbar-wrapper {
  display: none;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
}

.navbar-logo {
  height: 40px;
  width: auto;
}

.navbar-icon {
  margin-right: 10px;
}

.navbar-text {
  color: white;
}

/* Add responsive styles here to override Bootstrap defaults if needed */
@media (max-width: 576px) {
  .container {
    padding: 0 10px;
  }

  .form-group label {
    font-size: 1em;
    margin-bottom: 0.5rem;
    display: block;
  }

  .form-group input,
  .form-group select {
    font-size: 1em !important;
    padding: 0.75rem !important;
    height: auto !important;
  }

  .form-group small {
    font-size: 0.85em;
    display: block;
    margin-top: 0.5rem;
  }

  .btn {
    font-size: 1em !important;
    padding: 0.75rem !important;
    width: 100%;
  }

  .btn img.svg-icon {
    width: 24px !important;
    height: 24px !important;
  }

  .input-group .btn {
    padding: 0.75rem !important;
    width: auto !important;
  }

  input {
    font-size: 1em !important;
  }
  a {
    font-size: 1em !important;
  }
  select {
    font-size: 1em !important;
  }
  .navbar {
    display: flex;
    flex-direction: column;
    padding: 5px !important;
  }

  .navbar-left {
    width: 100%;
    justify-content: center;
    margin-bottom: -10px;
    order: 2;
  }

  .navbar-center, .navbar-right {
    display: none;
  }

  .navbar-wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 0 25px;
    order: 1;
    margin-bottom: 10px;
  }

  .navbar-wrapper .navbar-center {
    display: flex;
    justify-content: flex-start;
  }

  .navbar-wrapper .navbar-right {
    display: flex;
    justify-content: flex-end;
  }

  img.svg-icon {
    width: 20px;
    height: 20px;
  }

  .content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .navbar-logo {
    height: 40px;
  }

  .logout-button {
    padding: 0.2rem 0.8rem !important;
  }

  .form-group input {
    font-size: 1em;
  }

  .form-group label {
    font-size: 1em;
  }

  .form-group small {
  font-size: 1em;
  color: white !important;
  }

  .login-button {
    font-size: 1em;
    margin-top: 20px;
  }

  .btn {
    font-size: 1em;
  }

  h2 {
    font-size: 1.2em;
  }

  .navbar-text {
    font-size: 1.2rem;
  }
}

/* Media query for larger screens (e.g., PC) */
@media (min-width: 768px) {
  input {
    font-size: 0.3em !important;
  }
  a {
    font-size: 0.3em !important;
  }
  select {
    font-size: 0.3em !important;
  }
  .camera-button {
    max-width: 500px;
    margin: 0 auto;
    font-size: 1.5rem;
    padding: 1.5rem;
  }

  img.svg-icon {
    width: 40px;
    height: 40px;
  }

  input {
    font-size: 1.5rem !important;
  }

  .navbar-logo {
    height: 70px;
  }

  a {
    font-size: 0.6em;
  }

  h2 {
    font-size: 0.6em;
  }
  .navbar-brand {
    font-size: 1.5rem !important;
  }
  .form-group small {
  font-size: 0.4em;
  color: white !important;
  }

  .navbar-text {
    font-size: 1.5rem;
  }
}

.responsive-video {
  width: 100%;
  height: auto;
}

/* Styles for the barcode scanner */
#interactive {
  width: 100%; /* Ensure it takes full width */
  max-width: 640px; /* Limit maximum width */
  margin: 0 auto; /* Center horizontally */
  border: 1px solid #ccc;
  position: relative; /* Add relative positioning */
  display: none; /* Initially hidden */
}

#interactive video,
#interactive canvas {
  width: 100%; /* Make video and canvas fill the container */
  height: auto;
  display: block; /* Remove extra spacing */
}

/* Ensure the video and canvas maintain aspect ratio */
#interactive video {
  position: relative; /* Keep video in normal flow */
  z-index: 0; /* Video behind canvas */
}

#interactive canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1; /* Ensure canvas is on top */
  pointer-events: none; /* Make it transparent to mouse events */
}

/* Media query for smaller screens */
@media (max-width: 767px) {
  #interactive {
    max-width: 100%; /* Take full width on smaller screens */
  }
}

/* Style for the logout button */
.logout-button {
  padding: 0.3rem 1rem !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  min-width: 80px !important;
  min-height: 40px !important;
}

.logout-button:hover {
  color: white !important;
}

@media (max-width: 576px) {
  .logout-button {
    font-size: 1.2rem !important;
    padding: 0.2rem 0.8rem !important;
  }
}

@media (min-width: 768px) {
  .logout-button {
    font-size: 1.2rem !important;
    min-height: 30px !important;
  }
}

#app {
  font-family: "Courier New", Courier, monospace;
  font-size: 5vw;
  letter-spacing: 2px;
  word-spacing: 2px;
  color: #FFFFFF;
  font-weight: normal;
  text-decoration: none solid rgb(68, 68, 68);
  font-style: normal;
  font-variant: normal;
  text-transform: none;
}

/* Add these styles after the input styles */
.input-group {
  display: flex !important;
  align-items: stretch !important;
}

.input-group .form-control {
  height: auto !important;
  min-height: 44px !important;
}

.input-group .btn {
  margin-bottom: 0 !important;
  padding: 0.375rem 0.75rem !important;
  display: flex !important;
  align-items: center !important;
}

.input-group .btn img.svg-icon {
  margin: 0 !important;
}

/* Ensure full height for elements using h-100 and within .input-group */
.h-100 {
  height: 100% !important;
}

.input-group .btn {
  height: 100%;
}

/* Custom fix for input-group: ensure input and button have the same height */
.input-group .btn {
  min-height: 44px !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Error message styles */
.error-message {
  font-size: 1.2em;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  color: white;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.error-message img.svg-icon {
  flex-shrink: 0;
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
}

/* Media query for smaller screens (e.g., mobile) */
@media (max-width: 576px) {
  .error-message {
    font-size: 1.1em;
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  body {
    font-size: 16px;
  }

  .container {
    padding: 0 15px;
  }

  .btn {
    font-size: 1em !important;
    padding: 0.75rem !important;
  }

  p {
    font-size: 1em !important;
  }

  .form-group label {
    font-size: 1.1em !important;
  }

  .form-group input,
  .form-group select {
    font-size: 1em !important;
  }
}

/* Media query for larger screens (e.g., PC) */
@media (min-width: 768px) {
  .error-message {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 2rem;
  }

  body {
    font-size: 18px;
  }

  h2 {
	font-size: 2em;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .btn {
    font-size: 1em !important;
  }

  p {
    font-size: 1em !important;
  }

  .form-group label {
    font-size: 1.1em !important;
  }

  .form-group input,
  .form-group select {
    font-size: 1em !important;
  }
}

.svg-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* Alert styles */
.alert {
  position: relative;
  padding: 1rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.alert-dismissible {
  padding-right: 3rem;
}

.alert-dismissible .btn-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 1.25rem 1rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.alert-info {
  color: #055160;
  background-color: #cff4fc;
  border-color: #b6effb;
}

.alert-warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

.alert-error,
.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.fade {
  transition: opacity 0.15s linear;
}

.fade.show {
  opacity: 1;
}

/* Button close icon - fixed version */
.btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em 0.25em;
  color: #000;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
  border: 0;
  border-radius: 0.25rem;
  opacity: 0.5;
}

.btn-close:hover {
  color: #000;
  text-decoration: none;
  opacity: 0.75;
}

.btn-close:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  opacity: 1;
}

/* Alternative close button with content */
.alert .btn-close::before {
  content: "×";
  display: block;
  width: 1em;
  height: 1em;
  font-size: 1.25em;
  line-height: 0.8;
  color: #000;
  text-align: center;
  font-weight: 700;
}

/* Hide the SVG background when using content */
.alert .btn-close {
  background-image: none !important;
}

/* Media queries for alerts */
@media (max-width: 576px) {
  .alert {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .alert-dismissible {
    padding-right: 2.5rem;
  }
  
  .alert-dismissible .btn-close {
    padding: 0.875rem 0.875rem;
  }
}

/* Print-specific styles */
@media print {
  /* Ensure QR codes print in black and white */
  .qr-code-image {
    filter: none !important;
    -webkit-filter: grayscale(100%) !important;
    filter: grayscale(100%) !important;
    color-adjust: exact !important;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }
  
  /* Hide unnecessary elements when printing */
  .navbar, .btn, form, #print-status-indicator {
    display: none !important;
  }
  
  /* Ensure text prints in black */
  body, p, h1, h2, h3, h4, h5, h6 {
    color: black !important;
  }
  
  /* Ensure card backgrounds are white */
  .card, .card-body, .card-header {
    background-color: white !important;
    color: black !important;
    border-color: #ddd !important;
  }
} 
