/* ✅ 헤더 기본 스타일 */
header,
.fz-header {
  background-color: #2c3e50;
  color: #fff;
  padding: 15px 20px;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fz-logo {
  font-size: 24px;
  font-weight: bold;
  margin-left: 50px;
}

.fz-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.fz-welcome {
  font-size: 15px;
}

/* ✅ 공통 버튼 스타일 */
.fz-btn {
  padding: 8px 14px;
  font-size: 14px;
  background-color: #344886;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.fz-btn:hover {
  background-color: #3b52b2;
}

.fz-btn-logout {
  background-color: #344886;
}

.fz-btn-logout:hover {
  background-color: #f1d6d8;
}

/* ✅ QR 팝업 전용 스타일: popup-wrapper 범위로 제한 */
.popup-wrapper {
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  text-align: center;
}

.popup-wrapper button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

.popup-wrapper .modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.popup-wrapper .modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 320px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.popup-wrapper #qrcode {
  margin-top: 10px;
  width: 300px;
  height: 300px;
}

.popup-wrapper #qrInfo {
  margin-top: 15px;
  background-color: #f5f5f5;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: left;
  width: 100%;
  max-width: 240px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.popup-wrapper #qrInfo div {
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  font-family: "Courier New", monospace;
}

.popup-wrapper .close-btn {
  margin-top: 15px;
  background-color: #ccc;
}

/* QR 버튼: 로그아웃 버튼과 동일한 형태, 색상만 다르게 */
.fz-btn-qr {
  display: inline-block;            /* 버튼 정렬용 */
  padding: 8px 14px;                /* 공통 패딩 */
  font-size: 14px;                  /* 공통 폰트 사이즈 */
  background-color: #146ebd;       /* QR 전용 색상 */
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  line-height: 1.5;                 /* 버튼 세로 정렬 */
  vertical-align: middle;          /* 다른 인라인 요소와 정렬 */
}

.fz-btn-qr:hover {
  background-color: #5a6268; /* hover 시 조금 더 진한 회색 */
}

/* ✅ 반응형: 모바일 전용 스타일 */
@media screen and (max-width: 768px) {
  .fz-welcome {
    font-size: 14px;
  }

  .fz-btn {
    font-size: 13px;
    padding: 6px 12px;
  }

  #qrButton {
    display: none !important;
  }
}
