/* 기존 style.css 파일의 모든 내용을 여기에 붙여넣으세요 */
/* ... (기존 css/style.css 파일 내용) ... */

/* 기본 레이아웃 및 폰트 설정 */
#brg-app { 
    background: #ffffff; 
    padding: 2rem; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    width: 100%; 
    max-width: 600px; 
    margin: 2rem auto; 
    font-family: 'Pretendard', sans-serif !important; /* 프리텐다드 폰트 적용 */
}
#brg-app h1, #brg-app h2 { text-align: center; color: #001b44; font-weight: bold; }
#brg-app h3 { margin-top: 2rem; border-bottom: 2px solid #eee; padding-bottom: 0.5rem; color: #000000; }
#brg-app p { color: #555; line-height: 1.6; }
#brg-app input[type="text"] { font-size: 16px; width: calc(100% - 22px); padding: 12px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 4px; font-family: 'Pretendard', sans-serif; }
#brg-app input[type="text"]:focus { border-color: #90806d; outline: none; box-shadow: 0 0 5px rgba(144, 128, 109, 0.5); }

/* 버튼 스타일 */
#brg-app button { width: 100%; padding: 14px; border: none; border-radius: 4px; background-color: #001b44; color: white; font-size: 16px; font-weight: bold; cursor: pointer; transition: background-color 0.2s; font-family: 'Pretendard', sans-serif; }
#brg-app button:hover { background-color: #90806d; }
#brg-app button:disabled { background-color: #bdc3c7; color: #777; cursor: not-allowed; }

/* 1단계: 타입 선택 버튼 */
#brg-app #brg-type-selection-section { text-align: center; padding: 1rem 0; }
#brg-app #brg-type-selection-section h2 { margin-bottom: 1.5rem; font-size: 1.2em; color: #333; }
#brg-app .brg-type-btn-wrapper { display: flex; flex-direction: column; gap: 1rem; }
#brg-app .brg-type-btn-wrapper button {
    padding: 16px;
    font-size: 18px;
}
/* 예비 당첨자 버튼 */
#brg-app .brg-type-btn-wrapper button.prelim {
    background-color: #90806d; /* 기존 hover 색상 */
}
#brg-app .brg-type-btn-wrapper button.prelim:hover {
    background-color: #001b44; /* 기존 main 색상 */
}


/* 탭 메뉴 스타일 */
#brg-app .brg-tabs { display: flex; margin-bottom: 1rem; border-bottom: 1px solid #ddd; }
#brg-app .brg-tab-link {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd !important; /* 기본 테두리 */
    background-color: #f1f1f1 !important; /* 기본 배경 */
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    margin: 0 2px;
    font-weight: bold;
    color: #555 !important; /* 기본 글자색 */
    border-bottom: 1px solid #ddd !important; /* 하단 테두리 유지 */
    transition: background-color 0.2s, color 0.2s;
    position: relative;
    top: 0;
}
#brg-app .brg-tab-link:hover {
    background-color: #e0e0e0 !important; /* 호버 시 배경 */
    color: #333 !important;
}

/* 날짜 선택 시 활성화 스타일 */
#brg-app .brg-tab-link.active {
    background-color: #001b44 !important; /* 메인 색상 */
    color: #fff !important; /* 흰색 글씨 */
    border-color: #001b44 !important;
    border-bottom: 1px solid #001b44 !important;
}

/* 단계별 안내 타이틀 스타일 */
#brg-app .brg-tab-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem; 
}
#brg-app #brg-timeslot-wrapper h3 + .brg-tab-title {
     margin-top: 1.5rem; /* h3 바로 뒤에 오는 경우 */
}

/* 시간표 헤더/슬롯 레이아웃 재구성 */
#brg-app .brg-timeslot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 2px solid #001b44;
    margin-bottom: 5px;
    font-weight: bold;
    color: #001b44;
}
#brg-app .brg-timeslot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
    border-radius: 0;
}
#brg-app .brg-timeslot:first-of-type {
    border-top: 1px solid #eee;
}

/* "예약 시간" 컬럼 (헤더/목록 공통) */
#brg-app .brg-time-col {
    width: 80px;
    flex-shrink: 0;
    font-size: 1.1em;
    font-weight: 500;
    color: #000000;
}

/* "예약 가능 여부" 컬럼 (헤더/목록 공통) */
#brg-app .brg-status-col {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
#brg-app .brg-timeslot-header .brg-status-col {
    justify-content: center;
}


/* 예약 가능 버튼 크기 고정 */
#brg-app .brg-timeslot button { 
    width: 120px !important; /* 너비 고정 */
    font-size: 14px !important; 
    padding: 8px !important;
    text-align: center !important;
    margin: 0 !important;
} 


/* 팝업 스타일 */
#brg-app .brg-popup-wrapper { position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: none; justify-content: center; align-items: center; }
#brg-app .brg-popup-content { background: white; padding: 2rem 3rem; border-radius: 5px; text-align: center; max-width: 90%; box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
#brg-app #brg-popup-dynamic-content { text-align: left; margin-bottom: 1.5rem; }
#brg-app .brg-popup-content button { margin-top: 1.5rem; }

/* 나의 예약 정보 스타일 */
#brg-app #brg-my-reservation { background-color: #f8f8f8; border: 1px solid #dddddd; padding: 20px; margin-bottom: 1.5rem; border-radius: 4px; text-align: center; }
#brg-app #brg-my-reservation p { margin: 0 0 15px 0; font-weight: bold; color: #000000; }
#brg-app .brg-my-reservation-buttons { display: flex; justify-content: center; gap: 10px; }
#brg-app .brg-my-reservation-buttons button { width: auto !important; padding: 8px 15px !important; font-size: 14px !important; }
#brg-app .brg-confirm-btn { background-color: #001b44 !important; }
#brg-app .brg-confirm-btn:hover { background-color: #90806d !important; }
#brg-app .brg-cancel-btn { background-color: #90806d !important; }
#brg-app .brg-cancel-btn:hover { background-color: #000000 !important; }

/* 메시지 스타일 */
#brg-app .brg-message { text-align: center; color: #e74c3c; font-weight: bold; min-height: 1.2em; }
#brg-app .brg-message.error { padding: 1rem; border: 1px solid #e74c3c; background-color: #fbeae8; border-radius: 4px; }

/* ========== [신규] 예비 당첨자 폼 스타일 ========== */
#brg-app select.brg-select {
    font-size: 16px;
    width: 100%; /* input[type=text]와 다르게 100%로 설정 */
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Pretendard', sans-serif;
    background-color: white; /* select 배경색 기본값 */
}
#brg-app .brg-form-label {
    font-weight: 600;
    color: #333;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    text-align: left;
}
/* ================================================= */