body {
  font-family: "Inter", sans-serif;
  background-color: #f8f9fa;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.main-card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  max-width: 900px;
  margin: 0 auto;
}

.icon-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.btn-icon-lg {
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.btn-icon-lg i {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

/* Custom Device Icons */
.device-icon {
  width: 48px;
  height: 36px;
  border: 2px solid currentColor;
  border-radius: 6px;
  position: relative;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.device-icon.portrait {
  width: 36px;
  height: 48px;
}

.device-icon::before {
  /* Screen */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  border: 1px solid currentColor;
  opacity: 0.5;
}

.device-icon::after {
  /* MSR Reader */
  content: "";
  position: absolute;
  background-color: currentColor;
}

.device-icon.msr-top::after {
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 4px;
  border-radius: 2px;
}

.device-icon.msr-bottom::after {
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 4px;
  border-radius: 2px;
}

.device-icon.msr-left::after {
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  border-radius: 2px;
}

.device-icon.msr-right::after {
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  border-radius: 2px;
}

.magtek-logo {
  max-height: 40px;
  margin-bottom: 1.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.viewfinder {
  position: relative;
  width: 320px;
  height: 240px;
  overflow: hidden;
  border: 4px solid #007bff;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.viewfinder.portrait {
  width: 240px;
  height: 320px;
}

#uploadedImage {
  max-width: 100%;
  max-height: 100%;
  pointer-events: none;
}

.log-container {
  background-color: #1e1e1e;
  color: #00ff00;
  font-family: "Consolas", monospace;
  font-size: 0.8rem;
  padding: 1rem;
  border-radius: 0.5rem;
  height: 150px;
  overflow-y: auto;
  margin-top: 1.5rem;
}

.section-header {
  border-bottom: 2px solid #f1f1f1;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #333;
}

.btn-magtek {
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s;
}
