* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
}

.section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

.hidden {
    display: none;
}

#reader {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

#reader video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#reader canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

#qr-result {
    background-color: #f3f4f6;
    padding: 15px;
    border-radius: 4px;
    margin-top: 10px;
    word-break: break-all;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2ecc71;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast.show {
    opacity: 1;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.last-update-header {
    text-align: right;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 15px;
    margin-top: -15px;
    font-style: italic;
}

.last-update-header .last-update-time {
    font-weight: bold;
    color: #2c3e50;
}

.logout-btn {
    background-color: #e74c3c;
    padding: 8px 12px;
    font-size: 14px;
}

.logout-btn:hover {
    background-color: #c0392b;
}

.menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.menu-btn {
    margin: 10px 0;
    width: 100%;
}

.menu-btn {
    width: 80%;
    max-width: 300px;
    padding: 15px;
    font-size: 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.menu-btn:hover {
    background-color: #2980b9;
}

.menu-btn.disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.menu-btn.disabled:hover {
    background-color: #95a5a6;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  overflow: auto;
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  margin: 15px;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

.close-modal {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.warning {
  color: #e74c3c;
  font-weight: bold;
  margin-bottom: 15px;
}

.token-display {
  margin-bottom: 20px;
}

#api-token {
  width: 100%;
  height: 80px;
  padding: 10px;
  margin-bottom: 10px;
  font-family: monospace;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: none;
}

.token-info {
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 4px;
  border-left: 3px solid #3498db;
}

/* Order Details Styles */
.order-details {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.order-details h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #333;
  font-size: 18px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.detail-row {
  display: flex;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.detail-label {
  font-weight: bold;
  width: 150px;
  color: #555;
  flex-shrink: 0;
}

.detail-value {
  flex: 1;
  color: #333;
}

.detail-value ul {
  margin: 0;
  padding-left: 20px;
}

.detail-value li {
  margin-bottom: 4px;
}

.message-row {
  margin-top: 20px;
  background-color: #fffde7;
  padding: 10px;
  border-radius: 4px;
  border-left: 4px solid #ffc107;
}

.verification-message {
  margin: 0;
  color: #795548;
  font-weight: bold;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

.error-message {
  background-color: #ffebee;
  padding: 15px;
  border-radius: 4px;
  border-left: 4px solid #f44336;
  margin-bottom: 20px;
}

.error-message p {
  margin: 5px 0;
  color: #d32f2f;
}

.last-update {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.last-update h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

.last-update-content {
    font-size: 0.9em;
    color: #666;
}

.last-update-content p {
    margin: 5px 0;
}

.last-update-time {
    font-weight: bold;
    color: #2c3e50;
}

.last-update-user {
    font-style: italic;
}

.last-update-content {
    word-break: break-all;
} 