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

body {
  font-family: sans-serif;
  background: #f0f2f5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 16px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 32px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  text-align: center;
}

h1 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #111;
}

p {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
}

input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  margin-bottom: 16px;
  outline: none;
}

input[type="tel"]:focus {
  border-color: #4a90e2;
}

button, .button {
  display: block;
  width: 100%;
  padding: 14px;
  background: #4a90e2;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  margin-top: 16px;
}

button:hover, .button:hover {
  background: #357abd;
}

/* Direction selection */
.directions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
  text-align: left;
}

.direction-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
}

.direction-option:hover {
  border-color: #4a90e2;
  background: #f5f9ff;
}

.direction-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #4a90e2;
  flex-shrink: 0;
}

/* Ticket number on success screen */
.ticket-number {
  font-size: 5rem;
  font-weight: bold;
  color: #4a90e2;
  margin-bottom: 12px;
  line-height: 1;
}

.hint {
  font-size: 0.85rem;
  color: #888;
}

/* Validation error */
.error {
  color: #c0392b;
  background: #fdf0ee;
  border: 1px solid #e8b4af;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.lang-btn {
  padding: 6px 16px;
  border: 2px solid #ddd;
  border-radius: 20px;
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
}

.lang-btn.active {
  border-color: #4a90e2;
  color: #4a90e2;
  font-weight: bold;
}

/* Phone prefix input */
.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.phone-input-wrapper:focus-within {
  border-color: #4a90e2;
}

.phone-prefix {
  padding: 12px 10px 12px 16px;
  background: #f5f5f5;
  font-size: 1.1rem;
  color: #333;
  border-right: 2px solid #ddd;
  user-select: none;
}

.phone-input-wrapper input[type="tel"] {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.phone-input-wrapper input[type="tel"]:focus {
  border-color: transparent;
}

/* Employee page */
.employee-card {
  max-width: 580px;
}

.direction-option.active {
  border-color: #4a90e2;
  background: #eef4fd;
  font-weight: bold;
}

.queue-stat {
  margin: 16px 0 4px;
  font-size: 0.95rem;
  color: #555;
}

.called-list {
  margin-top: 24px;
  text-align: left;
}

.called-list h2 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 10px;
}

.called-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 8px;
}

.called-number {
  font-size: 1.3rem;
  font-weight: bold;
  color: #4a90e2;
  min-width: 48px;
}

.called-phone {
  flex: 1;
  color: #444;
}

.btn-complete {
  width: auto;
  padding: 8px 16px;
  font-size: 0.9rem;
  background: #27ae60;
  margin-top: 0;
}
