/* 기본 스타일 (PC, 태블릿 기준) */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  background: #f3f4f6;
  color: #111827;
}

.app {
  max-width: 400px;
  margin: 20px auto;
  padding: 16px;
}

header {
  text-align: center;
  margin-bottom: 18px;
}

header h1 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

header p {
  font-size: 0.9rem;
  color: #4b5563;
}

.panel {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* 카드 */

.info-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.info-label {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.info-value {
  font-size: 1.6rem;
  font-weight: 700;
}

/* 전화번호 표시 */

.phone-display {
  background: #111827;
  color: white;
  padding: 12px;
  border-radius: 10px;
  min-height: 50px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}

.phone-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 10px;
}

/* 키패드 */

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.key-btn {
  padding: 16px 0;
  background: #f9fafb;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  text-align: center;
  font-size: 1.4rem;
  user-select: none;
}

.key-btn.special {
  background: #111827;
  color: white;
  font-size: 1.1rem;
}

/* 관리자용 버튼, 테이블 */

.btn {
  background: #111827;
  color: white;
  padding: 10px 18px;
  font-size: 1.1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

.btn:hover {
  background: #0f172a;
}

.wait-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.9rem;
}

.wait-table th, .wait-table td {
  border: 1px solid #e5e7eb;
  padding: 8px;
  text-align: center;
}

/* 실시간 상태 팝업 */

.status-popup {
  position: fixed;
  right: 20px;
  top: 20px;
  padding: 18px 24px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.95);
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  display: none;
  z-index: 9999;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  transition: opacity 0.4s ease, transform 0.2s ease;
}

.status-popup strong {
  display: block;
  font-size: 1.8rem;
  margin-top: 6px;
}

/* 모바일 전용 (화면 폭 600px 이하일 때 크게) */

@media (max-width: 600px) {

  .app {
    max-width: 100%;
    padding: 20px;
  }

  header {
    margin-bottom: 25px;
  }

  header h1 {
    font-size: 3.4rem;
    font-weight: 900;
  }

  header p {
    font-size: 1.8rem;
    margin-top: 10px;
  }

  .panel {
    background: white;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  }

  .info-card {
    background: #f9fafb;
    border: 3px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px 26px;
    margin-bottom: 22px;
  }

  .info-label {
    font-size: 2.0rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
  }

  .info-value {
    font-size: 3.2rem;
    font-weight: 900;
  }

  .phone-display {
    background: #111827;
    color: white;
    padding: 26px 18px;
    border-radius: 16px;
    min-height: 95px;
    margin-bottom: 18px;
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
  }

  .phone-hint {
    font-size: 1.6rem;
    color: #6b7280;
    margin-bottom: 20px;
  }

  .keypad {
    gap: 14px;
    margin-top: 20px;
  }

  .key-btn {
    padding: 40px 0;
    background: #f9fafb;
    border-radius: 30px;
    border: 3px solid #d1d5db;
    text-align: center;
    font-size: 4rem;
    font-weight: 900;
    user-select: none;
  }

  .key-btn.special {
    background: #111827;
    color: white;
    font-size: 2.8rem;
  }

  .btn {
    padding: 20px 30px;
    font-size: 2.4rem;
    border-radius: 16px;
    margin: 10px 0;
  }

  .wait-table {
    margin-top: 30px;
    font-size: 2rem;
  }

  .wait-table th, .wait-table td {
    border: 2px solid #e5e7eb;
    padding: 16px;
    font-size: 2.2rem;
  }

  .status-popup {
    font-size: 2rem;
  }

  .status-popup strong {
    font-size: 2.6rem;
  }
}

/* Ticket Page */
.ticket-panel {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.ticket-number-big {
  font-size: 3.8rem;
  font-weight: 900;
  text-align: center;
  margin: 20px 0;
}

.ticket-refresh-btn {
  display: block;
  width: 100%;
  padding: 18px 0;
  font-size: 1.8rem;
  background: #111827;
  color: white;
  border-radius: 16px;
  border: none;
  margin-top: 15px;
}
.ticket-refresh-btn:active {
  transform: scale(0.97);
}
