:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #f3f4f6;
  --card-bg: #ffffff;
  --text: #1f2937;
  --text-light: #6b7280;
  --danger: #ef4444;
  --success: #10b981;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  padding: 20px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

h1 {
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: 700;
  text-align: center;
}

h2 {
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 600;
}

p {
  margin-bottom: 16px;
  line-height: 1.5;
  color: var(--text-light);
}

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

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  font-size: 16px;
  transition: all 0.2s;
  background: #f9fafb;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

button {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 50px;
  /* Pill shape */
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

button i {
  font-size: 1.2em;
  margin-bottom: 0;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  filter: brightness(1.1);
}

button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  background: #9ca3af;
  box-shadow: none;
}

/* Big Tile Style for Dashboard */
.nav a.big-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 30px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: white !important;
  /* Force white text for links */
  border-radius: 20px;
  text-decoration: none;
  font-weight: 800;
  /* Bolder text */
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  /* Text shadow for readability */
  /* Override nav a margin if any */
}

.big-tile i {
  font-size: 3.5em;
  margin-bottom: 15px;
}

.big-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);
  filter: brightness(1.1);
}

button.secondary {
  background: white;
  color: var(--text);
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-top: 0;
}

button.secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;
}

.alert.success {
  background: #d1fae5;
  color: #065f46;
}

.hidden {
  display: none;
}

.nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #e5e7eb;
}

.nav a.active {
  background: var(--primary);
  color: white;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-ACTIVE {
  background: #d1fae5;
  color: #065f46;
}

.status-USED {
  background: #fee2e2;
  color: #991b1b;
}

.status-UNISSUED {
  background: #f3f4f6;
  color: #374151;
}