/* ===== Reset ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ===== Body ===== */
body {
  background-color: #0b0f19; /* 전체 검은색 배경 */
  color: #e5e7eb;
  line-height: 1.6;
}

/* ===== Header ===== */
.header {
  background-color: #020617;
  color: #ffffff;
  padding: 16px 24px;
  border-bottom: 1px solid #1f2933;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

/* ===== Main ===== */
.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ===== Search ===== */
.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.search-box form {
  display: flex;
  gap: 10px;
}

.search-box input {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  background-color: #020617;
  color: #e5e7eb;
  border: 1px solid #1f2933;
  border-radius: 6px;
}

.search-box button {
  padding: 12px 20px;
  font-size: 16px;
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.search-box button:hover {
  background-color: #1e40af;
}

/* ===== Result Card ===== */
.result-container {
  background-color: #020617;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* ===== Section Title ===== */
.result-container h3 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 18px;
  border-left: 4px solid #2563eb;
  padding-left: 10px;
}

/* ===== Table ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

th,
td {
  border: 1px solid #1f2933;
  padding: 10px;
  font-size: 14px;
  text-align: center;
}

th {
  background-color: #020617;
  color: #93c5fd;
}

tr:nth-child(even) {
  background-color: #020617;
}

/* ===== Empty Text ===== */
.empty {
  color: #9ca3af;
  font-style: italic;
  margin-bottom: 20px;
}

/* ===== 공지 ===== */
.search-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #fff;
}

.data-notice {
  margin-top: 12px;
  margin-bottom: 20px;
  line-height: 1.6;
  color: #888;
}

.data-notice .normal {
  font-size: 14px;
}

.data-notice .normal-strong {
  font-size: 14px;
  color: #fff;
}

.data-notice .small {
  font-size: 12px;
  color: #888;
}

.data-notice a {
  color: #aaa;
  text-decoration: underline;
}

/* DART 접수번호 링크 */
.dart-link {
  color: #60a5fa;
  text-decoration: underline;
  font-weight: 500;
  cursor: pointer;
}

.dart-link:visited {
  color: #a78bfa;
}

.dart-link:hover {
  color: #3b82f6;
}

/* ===== Responsive ===== */

/* 태블릿 이하 */
@media (max-width: 1024px) {
  .container {
    margin: 24px auto;
    padding: 0 16px;
  }
}

/* 모바일 */
@media (max-width: 768px) {
  /* 검색 영역 세로 정렬 */
  .search-box {
    flex-direction: column;
    gap: 12px;
  }

  .search-box input,
  .search-box button {
    width: 100%;
    font-size: 15px;
  }

  /* 결과 카드 패딩 축소 */
  .result-container {
    padding: 16px;
  }

  /* 섹션 제목 */
  .result-container h3 {
    margin-top: 28px;
    font-size: 16px;
  }

  /* 테이블 글자 크기 */
  th,
  td {
    font-size: 13px;
    padding: 8px;
  }
}

/* 아주 작은 모바일 */
@media (max-width: 480px) {
  .logo {
    font-size: 18px;
  }

  th,
  td {
    font-size: 12px;
    padding: 6px;
  }
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.table-wrapper table {
  min-width: 700px;
}

/* ===== 검색 안내 문구 위치 제어 ===== */

.search-box form {
  flex-wrap: wrap; /* 🔥 줄바꿈 허용 */
}

/* 기본(큰 화면): 맨 아래 */
.search-hint {
  width: 100%; /* 🔥 버튼 옆으로 못 가게 차단 */
  order: 3;
  font-size: 12px;
  color: #fff;
  margin-top: 6px;
}

.search-box button {
  order: 2;
}

/* 📱 모바일 */
@media (max-width: 768px) {
  .search-hint {
    order: 2; /* input 아래, 버튼 위 */
    margin-top: 4px;
  }

  .search-box button {
    order: 3;
  }
}
