/* 24hr-Fitness QR Scanner Style - RPM Technologies */

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #1e1e1e;
    color: white;
    justify-content: center;
    align-items: center;
  }
  
  .container {
    text-align: center;
    margin: auto;
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }
  
  h1 {
    color: #00bcd4;
    margin-bottom: 20px;
  }
  
  video {
    width: 100%;
    max-width: 600px;
    border: 6px solid #00bcd4;
    border-radius: 12px;
  }
  
  .result-box {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
  }
  
  #result {
    font-weight: bold;
    color: #00ff00;
  }

  .scan-text {
    font-size: medium;
  }
  

  .visit-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 24px;
    margin: 0 auto;
    transition: transform 0.3s;
    display: none;
}

.visit-card:hover {
    transform: scale(1.01);
}

.visit-card p {
    font-size: 16px;
    margin: 12px 0;
    color: #333;
}

.visit-card label {
    font-weight: 600;
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    color: #444;
    text-align: left;
}

.visit-card input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.visit-card input:focus {
    border-color: #007BFF;
    outline: none;
}

.visit-card button {
    margin-top: 20px;
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#submitTicketBtn {
    background-color: #28a745;
    color: white;
    margin-right: 10px;
}

#submitTicketBtn:hover {
    background-color: #218838;
}

#cancelVisitBtn {
    background-color: #dc3545;
    color: white;
}

#cancelVisitBtn:hover {
    background-color: #c82333;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}


/* Loading overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Spinner animation */
.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

/* Keyframes for spin animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#timeout-warning {
  margin-top: 20px;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
}

#timeout-bar {
  margin-top: 10px;
  width: 100%;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

#timeout-progress {
  background-color: #ff9800;
  width: 100%;
  transition: width 1s linear;
}




/* Multilingual */
.language-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
}

.language-toggle button {
  background-color: #0caa41;
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.language-toggle button:hover {
  background-color: #0a9237;
}