/* =========================
   기본 설정
========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: #F4F6F8;
    font-family: "Noto Sans KR", system-ui, sans-serif;
    color: #111827;
}

/* =========================
   레이아웃
========================= */
.container {
    max-width: 700px;
    margin: 0 auto;
}

/* =========================
   카드
========================= */
.card {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* =========================
   제목
========================= */
h1 {
    font-size: 24px;
    margin-bottom: 16px;
}

h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

/* =========================
   입력 요소
========================= */
label {
    font-size: 14px;
    font-weight: 500;
}

input, select, textarea {
    padding: 10px 12px;
    margin-top: 6px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    font-size: 14px;
}

input, select{
    width: 40%;
}

textarea {
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2563EB;
}

/* =========================
   버튼
========================= */
button {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
}

button.primary {
    background: #2563EB;
    color: white;
}

button.success {
    background: #16A34A;
    color: white;
}

button.danger {
    background: #DC2626;
    color: white;
}

button.secondary {
    background: #E5E7EB;
    color: #111827;
}

button:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
}

/* =========================
   옵션 행
========================= */
.option-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.option-row input {
    flex: 1;
}

/* =========================
   메시지
========================= */
.error {
    color: #DC2626;
    font-size: 13px;
}

.notice {
    color: #6B7280;
    font-size: 13px;
}

/* =========================
   라디오 버튼 스타일
========================= */
.radio-group {
    display: flex;
    gap: 12px;
}

.radio-option {
    flex: 1;
    cursor: pointer;
}

.radio-option input {
    display: none;
}

.radio-option span {
    display: block;
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    background: white;
    transition: 0.2s;
}

/* 선택되었을 때 */
.radio-option input:checked + span {
    background: #2563EB;
    color: white;
    border-color: #2563EB;
}

/* =========================
   네비게이션 바
========================= */
.navbar {
    background: #FFFFFF;
    padding: 16px 24px;
    margin: -20px -20px 30px -20px; /* body padding 상쇄 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    font-size: 18px;
    font-weight: 700;
    color: #2563EB;
}

.nav-links a {
    margin-left: 18px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #2563EB;
}

/* 현재 페이지 강조용 */
.nav-links a.active {
    color: #2563EB;
    font-weight: 600;
}


/* 모달 배경 (어둡게) */
.modal {
    display: none; /* 기본적으로 안 보이게 설정 */
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5); /* 반투명 배경 */
}

/* 모달 박스 */
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 25px;
    border-radius: 12px;
    width: 85%;
    max-width: 380px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* 닫기 버튼(X) */
.close-x {
    position: absolute;
    right: 15px; top: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}


/* --- 투표 페이지 전용 스타일 --- */

/* 투표 옵션 박스 컨테이너 */
.vote-form-inner {
    max-width: 300px;
    margin: 0 auto;
}

/* 개별 옵션 항목 (박스형) */
.vote-option-box {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vote-option-box:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

/* 라디오 버튼 선택 시 강조 */
.vote-option-box:has(input[type="radio"]:checked) {
    border-color: #2563eb;
    background-color: #eff6ff;
    box-shadow: 0 0 0 1px #2563eb;
}

/* 라디오 버튼 스타일 */
.vote-option-box input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option-text {
    font-size: 16px;
    color: #1f2937;
    font-weight: 500;
}

/* 제출 버튼 너비 조정 */
.btn-full {
    width: 100%;
    margin-top: 20px;
}