/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
/* filepath: /home/mark/beontimer/app/assets/stylesheets/application.css */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.hidden {
  display: none;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.right-0 {
  right: 0;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.w-48 {
  width: 12rem;
}

.w-full {
  width: 100%;
}

.bg-white {
  background-color: #ffffff;
}

.bg-blue-800 {
  background-color: #2c5282;
}

.border {
  border: 1px solid #e2e8f0;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.block {
  display: block;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.text-gray-800 {
  color: #2d3748;
}

.text-white {
  color: #ffffff;
}

.hover\:bg-gray-200:hover {
  background-color: #edf2f7;
}

.focus\:outline-none:focus {
  outline: none;
}

.flex {
  display: flex;
}

/* Modified flex-col to only apply on screens smaller than 640px */
@media (max-width: 639px) {
  .flex-col {
    flex-direction: column;
  }
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.z-10 {
  z-index: 10;
}

.ml-3 {
  margin-left: 0.75rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.font-bold {
  font-weight: 700;
}

/* Responsive utilities */
@media (min-width: 640px) {
  .sm\:mt-12 {
    margin-top: 3rem;
  }

  .sm\:px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .sm\:py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .sm\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .sm\:ml-4 {
    margin-left: 1rem;
  }

  .sm\:mr-4 {
    margin-right: 1rem;
  }
}

/* Mobile-first approach */
.video-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

video,
canvas {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* QR Scanner specific styles */
.qr-scanner-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .qr-scanner-controls {
    flex-direction: row;
    gap: 1rem;
  }
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-primary {
  background-color: #2c5282;
  color: white;
}

.btn-secondary {
  background-color: #e2e8f0;
  color: #2d3748;
}

.btn-disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Fix for adaptive tables on mobile */
.responsive-table {
  overflow-x: auto;
  width: 100%;
}

.responsive-table table {
  min-width: 100%;
}
