/* =============== BOOKAT Inquiry 페이지 전용 =============== */


/* 전역 입력 필드 스타일 초기화 */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* 브라우저 기본 스타일 완전 제거 - 최우선 적용 */
html, body, * {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* 모든 포커스 상태에서 기본 스타일 제거 */
*:focus, *:focus-visible, *:focus-within {
  outline: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* 모든 입력 필드의 브라우저 기본 스타일 완전 제거 */
input, textarea, select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 0;
}

input:focus, textarea:focus, select:focus {
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* 비밀번호 확인 피드백 스타일 */
.password-feedback {
  font-size: 14px;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.password-feedback.success {
  color: #059669;
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
}

.password-feedback.error {
  color: #dc2626;
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
}

.password-feedback:empty {
  display: none;
}

/* 비활성화된 버튼 스타일 */
.btn:disabled {
  background-color: #9ca3af !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}



/* 더 구체적인 선택자로 강제 적용 */
.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"],
.login-form input[type="tel"],
.login-form input[type="search"],
.login-form input[type="url"],
.login-form input[type="number"],
.login-form input[type="date"],
.login-form input[type="time"],
.login-form input[type="datetime-local"],
.login-form input[type="month"],
.login-form input[type="week"],
.login-form textarea,
.login-form select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  border: 1px solid #e5e7eb !important;
  background: #ffffff !important;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus,
.login-form input[type="email"]:focus,
.login-form input[type="tel"]:focus,
.login-form input[type="search"]:focus,
.login-form input[type="url"]:focus,
.login-form input[type="number"]:focus,
.login-form input[type="date"]:focus,
.login-form input[type="time"]:focus,
.login-form input[type="datetime-local"]:focus,
.login-form input[type="month"]:focus,
.login-form input[type="week"]:focus,
.login-form textarea:focus,
.login-form select:focus {
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  border-color: #d1d5db !important;
  background: #ffffff !important;
}

/* 특정 브라우저의 기본 스타일 제거 */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/* 브라우저 기본 스타일 완전 무시 */
*:focus {
  outline: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
}

/* 모든 입력 요소에 대해 강제 적용 */
input, textarea, select, button {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

input:focus, textarea:focus, select:focus, button:focus {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* 특정 브라우저의 포커스 링 제거 */
input:focus-visible {
  outline: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
}

/* 웹킷 브라우저의 기본 스타일 완전 제거 */
input::-webkit-input-placeholder,
input::-moz-placeholder,
input:-ms-input-placeholder,
input::placeholder {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* 브라우저 기본 스타일 완전 무시 - 최강 우선순위 */
.login-form * {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.login-form *:focus,
.login-form *:focus-visible,
.login-form *:focus-within {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* 특정 입력 필드에 대한 강제 적용 */
.login-form input,
.login-form textarea,
.login-form select,
.login-form button {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  border: 1px solid #e5e7eb !important;
  background: #ffffff !important;
}

.login-form input:focus,
.login-form textarea:focus,
.login-form select:focus,
.login-form button:focus {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  border-color: #d1d5db !important;
  background: #ffffff !important;
}

/* 로그인/회원가입 페이지 */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 40px 0;
}

/* 입력 필드 기본 스타일 초기화 */
.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"],
.login-form input[type="tel"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid #e5e7eb !important;
  background: #ffffff !important;
  color: #111827 !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus,
.login-form input[type="email"]:focus,
.login-form input[type="tel"]:focus {
  border-color: #d1d5db !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  background: #ffffff !important;
  outline: none !important;
}

/* 모든 입력 필드에 대해 브라우저 기본 스타일 제거 */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus {
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.login-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  border: 1px solid #e5e7eb;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}

.login-header p {
  color: var(--muted);
  margin: 0;
}

.login-form {
  margin-bottom: 30px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background: #ffffff;
  color: #111827;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none !important;
  border-color: #d1d5db;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  background: #ffffff;
}

.btn-full {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
}

/* 로그인 버튼 스타일 - BOOKAT 빨간색 */
.btn-primary {
  background: #ef4444;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* 로그인 헤더 스타일 - 강제 적용 */
.login-header h1 {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #000000 !important;
  margin: 0 0 8px !important;
  text-align: center !important;
}

.login-header p {
  font-size: 16px !important;
  color: #6b7280 !important;
  margin: 0 0 30px !important;
  text-align: center !important;
}

/* 로그인 버튼 강제 적용 */
.login-form .btn-primary {
  background: #ef4444 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 24px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
  width: 100% !important;
}

.login-form .btn-primary:hover {
  background: #dc2626 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
}

.login-form .btn-primary:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}

.login-footer {
  text-align: center;
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}

.login-footer p {
  margin: 0 0 20px;
  color: var(--muted);
}

.login-footer a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.login-footer a:hover {
  text-decoration: underline;
}


/* 알림 메시지 */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  color: #0c4a6e;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

/* 문의 게시판 헤더 */
.inquiry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
}

.inquiry-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #000000;
  margin: 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info span {
  color: var(--muted);
  font-weight: 500;
}

/* 필터 및 검색 */
.inquiry-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

.filter-form {
  flex: 1;
}

.filter-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-group input,
.filter-group select {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  height: 40px; /* 문의작성 버튼과 같은 높이 */
}

.filter-group input {
  flex: 1;
  min-width: 300px;
}

.filter-group select {
  width: auto;
  min-width: auto;
  max-width: 150px;
}

.filter-group button {
  height: 40px; /* 문의작성 버튼과 같은 높이 */
  padding: 0 16px;
  white-space: nowrap;
}

/* 문의 목록 */
.inquiry-list {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.inquiry-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.3s ease;
}

.inquiry-item:hover {
  background: #f8fafc;
}

.inquiry-item:last-child {
  border-bottom: none;
}

.inquiry-info {
  flex: 1;
}

.inquiry-title {
  margin-bottom: 8px;
}

.inquiry-title a {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  margin-right: 12px;
}

.inquiry-title a:hover {
  color: var(--blue);
}

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

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

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

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

.inquiry-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

.inquiry-meta .category {
  color: var(--blue);
  font-weight: 500;
}

.inquiry-stats {
  font-size: 14px;
  color: var(--muted);
}

.comment-count {
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 12px;
}

/* 빈 상태 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-comments {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  background: #f8fafc;
  border-radius: 8px;
}

/* 문의 상세 */
.inquiry-detail {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 30px;
  margin-bottom: 30px;
}

.inquiry-content .inquiry-title h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

.inquiry-content .inquiry-meta {
  margin-bottom: 20px;
}

.inquiry-info {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 14px;
}

.author-info,
.date-info {
  color: var(--muted);
}

.inquiry-body {
  line-height: 1.8;
  color: var(--text);
}

.inquiry-body p {
  margin: 0;
  white-space: pre-wrap;
}

/* 관리자 액션 */
.admin-actions {
  margin-top: 20px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.status-form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-form label {
  font-weight: 600;
  color: var(--text);
}

.status-form select {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

/* 상태 변경 폼 행 스타일 (새로 추가된 클래스) */
.status-form .status-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.status-form .status-form-row label {
  white-space: nowrap;
  font-weight: 500;
  color: #374151;
  margin: 0;
}

.status-form .status-select {
  min-width: 100px;
  max-width: 120px;
  width: auto;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: white;
  font-size: 14px;
  color: #374151;
}

.status-form .status-btn {
  white-space: nowrap;
  padding: 8px 16px;
  font-size: 14px;
  min-width: auto;
}

/* 댓글 섹션 */
.comments-section {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 30px;
  margin-bottom: 30px;
}

.comments-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
}

.comments-list {
  margin-bottom: 20px;
}

.comment-item {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
}

.user-comment {
  background: #f8fafc;
  margin-left: 0;
}

.admin-comment {
  background: #f0f9ff;
  border-color: var(--blue);
  margin-left: 20px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-author strong {
  color: var(--text);
}

.admin-badge {
  background: var(--blue);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.comment-date {
  font-size: 12px;
  color: var(--muted);
}

.comment-content {
  color: var(--text);
  line-height: 1.6;
}

.comment-content p {
  margin: 0;
  white-space: pre-wrap;
}

/* 댓글 작성 */
.comment-form-section {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 30px;
}

.comment-form-section h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  min-height: 100px;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* 작성 페이지 */
.write-container {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 30px;
}

.write-form .form-group {
  margin-bottom: 24px;
}

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

.write-form input,
.write-form select,
.write-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
}

.write-form textarea {
  resize: vertical;
  min-height: 200px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 30px;
}

/* 페이징 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.page-link {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  transition: all 0.3s ease;
}

.page-link:hover {
  background: #f8fafc;
  border-color: var(--blue);
}

.page-link.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .inquiry-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .inquiry-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    flex-direction: column;
  }
  
  .filter-group input,
  .filter-group select {
    width: 100%;
  }
  
  .inquiry-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .inquiry-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .admin-comment {
    margin-left: 0;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .status-form {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .status-form .status-form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .status-form .status-select {
    min-width: 100%;
    max-width: none;
  }
}



