/* Basic CSS for OpenTicket MVP - Functional but not ugly */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1, h2, h3 {
  margin-bottom: 20px;
  color: #222;
}

h1 {
  font-size: 28px;
  text-align: center;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

form {
  margin-top: 20px;
}

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

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

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.2s;
}

input:focus,
select:focus {
  outline: none;
  border-color: #4CAF50;
}

button {
  width: 100%;
  padding: 12px 24px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #45a049;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

button.secondary {
  background-color: #2196F3;
}

button.secondary:hover {
  background-color: #0b7dda;
}

button.danger {
  background-color: #f44336;
}

button.danger:hover {
  background-color: #da190b;
}

.alert {
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.event-list {
  list-style: none;
}

.event-item {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.event-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.event-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.event-date {
  color: #666;
  font-size: 14px;
}

.ticket-list {
  list-style: none;
}

.ticket-item {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
}

.ticket-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.ticket-status.issued {
  background-color: #d4edda;
  color: #155724;
}

.ticket-status.redeemed {
  background-color: #d1ecf1;
  color: #0c5460;
}

.qr-code-container {
  text-align: center;
  margin: 20px 0;
}

.qr-code-container img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  background: white;
}

.scanner-container {
  text-align: center;
  margin: 20px 0;
}

#scanner {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border: 2px solid #ddd;
  border-radius: 4px;
}

.scan-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: 4px;
}

.scan-result.accepted {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.scan-result.rejected {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.scan-result.already-redeemed {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

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

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4CAF50;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.nav {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.nav a {
  color: #4CAF50;
  text-decoration: none;
  margin-right: 20px;
}

.nav a:hover {
  text-decoration: underline;
}

.verification-status {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.verification-status.verified {
  background-color: #d4edda;
  color: #155724;
}

.verification-status.unverified {
  background-color: #fff3cd;
  color: #856404;
}

.verification-status.pending {
  background-color: #d1ecf1;
  color: #0c5460;
}

@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 20px;
  }

  h1 {
    font-size: 24px;
  }
}

