/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --primary-gold: #d4af37;
  --primary-dark: #1a1a1a;
  --text-color: #333333;
  --bg-color: #fafafa;
  --card-bg: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: "Lato", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
.brand {
  font-family: "Playfair Display", serif;
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 600px; /* Mobile first focus */
  margin: 0 auto;
  padding: 20px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Luxury Card */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--primary-gold);
  margin-bottom: 20px;
}

.card h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.card p.subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
  font-weight: 300;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

input[type="text"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus {
  outline: none;
  border-color: var(--primary-gold);
}

.btn-luxury {
  display: inline-block;
  background: var(--primary-dark);
  color: #fff;
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  width: 100%;
}

.btn-luxury:hover {
  background: var(--primary-gold);
  transform: translateY(-2px);
}

.btn-luxury:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Ticket Styles */
.ticket-container {
  border: 2px dashed var(--primary-gold);
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  margin-top: 20px;
}

.qr-placeholder {
  margin: 20px auto;
  padding: 10px;
  background: #fff;
}

.ticket-code {
  font-family: "Courier New", monospace;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-dark);
  letter-spacing: 2px;
  margin-top: 10px;
  display: block;
}

/* Status Messages */
.alert {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: bold;
}
.error {
  background: #ffebee;
  color: #c62828;
}
.success {
  background: #e8f5e9;
  color: #2e7d32;
}
.warning {
  background: #fff3e0;
  color: #ef6c00;
}

/* Admin Dashboard */
.dashboard-stats {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  margin-bottom: 30px;
}

.stat-box {
  background: var(--card-bg);
  padding: 15px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  flex: 1;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-gold);
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #888;
}

/* Scanner */
#reader {
  width: 100%;
  margin: 0 auto 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.scan-result {
  text-align: center;
  margin-top: 20px;
  min-height: 60px;
}

/* Responsive */
@media (max-width: 480px) {
  .card h1 {
    font-size: 2rem;
  }
  .card {
    padding: 25px;
  }
}
