/* excontest 조회 페이지 스타일
   - excontest/style.write.css 색/톤을 최대한 맞춤
   - Bootstrap(미사용시에도 무해한) 오버라이드만 수행
*/

:root {
  --ex-ink: #0d0907; /* 글자 진한색 */
  --ex-muted: #6d6d6d; /* 중간 회색 */
  --ex-primary: #1b94d3; /* 주 컬러 */
  --ex-primary-dark: #177ab0; /* hover/포커스용 */
  --ex-panel: rgba(127, 173, 213, 0.05); /* 카드 배경 */
  --ex-border: #e7e7e7;
  --ex-radius: 10px;
}

body {
  font-family:
    "Roboto", "Noto Sans", "Noto Sans KR", "본고딕", NotoSans, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ex-ink);
}

.container {
  max-width: 800px;
}

/* Card */
.card {
  border: none;
  border-radius: 0;
  overflow: hidden; /* header/contents rounding */
  background: transparent;
  box-shadow: none;
}

.card-header {
  background: var(--ex-panel);
  border-bottom: none;
}

.card-header h5 {
  color: var(--ex-ink);
  font-weight: 700;
  font-size: 20px;
}

/* Form */
.form-control {
  border-radius: 0;
  /* write.css 느낌: 전체 테두리 대신 하단 라인 */
  border: none;
  border-bottom: 1px solid #ddd;
  background: transparent;
  color: var(--ex-ink);
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(127, 173, 213, 0.12);
  border-bottom: 1px solid rgb(57 130 207 / 70%);
  box-shadow: none;
  outline: none;
}

.form-control:active {
  background: rgba(127, 173, 213, 0.12);
  border-bottom: 1px solid rgb(57 130 207 / 70%);
}

.form-label {
  font-size: 20px;
  font-weight: 700!important;
  color: #0d0907;
  margin-bottom: 20px;
}

.form-label span {
  font-weight: 600!important;
}

.form-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.form-check-label {
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

/* Bootstrap check/radio */
.form-check-input {
  accent-color: var(--ex-primary);
  border-color: var(--ex-primary);
}

/* Primary button */
.btn-primary {
  /* excontest/style.write.css의 summitBtn 톤에 맞춤 */
  position: relative;
  width: 240px;
  height: 68px;
  text-align: center;
  background: rgba(33, 108, 189, 0.08) !important;
  border: 1px solid #f7f5fc !important;
  border-radius: 0;
  cursor: pointer;
  color: #0d0907 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 0 !important;
  font-weight: 700;
}

.btn-primary:hover {
  background: rgba(33, 108, 189, 0.08) !important;
  border-color: rgb(33 108 189 / 70%) !important;
  color: rgb(33 108 189) !important;
}

.btn-primary:focus-visible {
  box-shadow: none;
  outline: 2px solid rgba(33, 108, 189, 0.25);
  outline-offset: 2px;
}

.btn-primary:active {
  transform: translateY(1px);
}

.d-grid {
  justify-content: center!important;
}

/* Alert */
.alert-danger {
  border-color: rgba(214, 55, 62, 0.25);
  background: rgba(214, 55, 62, 0.08);
  color: #d6373e;
  border-radius: 8px;
  border-width: 1px;
}

/* Table */
.table {
  margin-bottom: 0;
  color: #333;
}

.table thead th {
  background: #f7f7f7;
  color: #444;
  font-weight: 700;
}

.badge {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
}

/* Responsive (조회 페이지는 680px 고정 스타일 inline이라 최소 조정) */
@media (max-width: 768px) {
  .card {
    border-radius: 12px;
  }

  .btn-lg {
    width: 100%;
  }

  .btn-primary {
    width: 100%;
    height: auto;
    min-height: 68px;
  }

  .table-responsive {
    border-radius: 10px;
  }
}

