/* General Styles */
body {
  background-color: #f8f9fa;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 100%;
  padding: 0 1rem;
  width: 100%;
  margin: 0 auto;
}

.card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  width: 100%;
}

/* Virtual Keypad Styles */
.virtual-keypad {
  margin-bottom: 1.5rem;
}

.virtual-keypad button {
  font-size: 1.5rem;
  height: 4rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}

.virtual-keypad button:hover {
  background-color: #e9ecef;
}

.virtual-keypad button:active {
  transform: scale(0.95);
  background-color: #dae0e5;
}

/* Event List Styles */
.event-item {
  cursor: pointer;
  transition: all 0.2s ease;
}

.event-item:hover {
  background-color: #f1f8ff;
  border-color: #0d6efd;
}

/* Button Styles */
.btn-action {
  margin: 0 2px;
}

/* Table Styles */
.table-responsive {
  overflow-x: auto;
}

.table th {
  background-color: #f1f8ff;
}

/* Content Overflow Prevention */
#checkin-screen,
#event-selection {
  max-height: 85vh;
  overflow-y: auto;
  padding-bottom: 1rem;
}

/* Responsive Adjustments for Small Devices */
@media (max-width: 576px) {
  .card-header h2 {
    font-size: 1.5rem;
  }

  .virtual-keypad button {
    font-size: 1.25rem;
    height: 3.5rem;
  }

  .container {
    padding: 0 0.5rem;
  }
}

/* Responsive Adjustments for Medium Devices (Tablets) */
@media (min-width: 576px) and (max-width: 991px) {
  .card {
    max-width: 90%;
    margin: 1rem auto;
  }

  .virtual-keypad button {
    height: 4.5rem;
    font-size: 1.5rem;
  }

  .col-md-8 {
    flex: 0 0 90%;
    max-width: 90%;
  }

  .col-lg-6 {
    flex: 0 0 90%;
    max-width: 90%;
  }
}

/* Landscape Mode Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
  .virtual-keypad button {
    height: 2.5rem;
    font-size: 1rem;
  }

  .card {
    margin-top: 0.5rem;
  }

  #checkin-screen,
  #event-selection {
    max-height: 80vh;
  }
}
