body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e8eaed;
    background-image: linear-gradient(135deg, #e8eaed 0%, #d1d5db 100%);
    padding-bottom: 80px; /* Espacio para la barra inferior fija */
}

.container {
    max-width: 1200px;
}

header {
    background-color: #343a40;
    color: white;
    padding: 15px 0;
    border-radius: 5px;
    margin-bottom: 20px;
}

.header-credit {
    color: #adb5bd;
}

.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
}

.card-header {
    background-color: #007bff;
    color: white;
    font-weight: 500;
}

.header-icon {
  font-size: 1.4em;
  color: #0dcaf0;
  vertical-align: -0.1em;
}

.qr-reader {
    width: 50%;
    max-width: 400px;
    min-height: 150px;
    border: 2px dashed #ccc;
    margin: 0 auto 15px auto;
    position: relative;
}

#startButton, #stopButton {
    width: 100%;
}

table {
    width: 100%;
}

.btn-action {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .qr-reader {
        width: 70%;
        min-height: 120px;
    }
}

/* Ajustes responsive */
@media (max-width: 992px) {
  body { font-size: 0.95rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
  .form-label { font-size: 0.95rem; }
  .form-control { font-size: 0.95rem; padding: 0.375rem 0.5rem; }
  .btn { font-size: 0.9rem; padding: 0.375rem 0.5rem; }
}

@media (max-width: 576px) {
  body { font-size: 0.9rem; }
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.1rem; }
  h4 { font-size: 1rem; }
  .form-label { font-size: 0.9rem; }
  .form-control { font-size: 0.9rem; padding: 0.25rem 0.5rem; }
  .btn { font-size: 0.85rem; padding: 0.25rem 0.5rem; }
  .navbar.fixed-bottom .nav-link { padding: 0.5rem 0; }
  .bottom-tab i { font-size: 1.2rem; }
}

/* Evitar overflow de botones de informes */
.report-actions { flex-wrap: wrap; }

/* Títulos consistentes en todas las secciones */
.card-header h2,
.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  display: flex;
  align-items: center;
}

.card-header h2 .header-icon,
.modal-title .header-icon {
  font-size: 1.2em;
  color: #0dcaf0;
  margin-right: 0.5rem;
}

/* Overlay de Login */
.login-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,123,255,0.12), rgba(13,202,240,0.12));
  backdrop-filter: blur(2px);
  z-index: 1050;
  padding: 1rem;
}
.login-card {
  max-width: 420px;
  width: 100%;
  border-radius: 12px;
}