body {
    font-family: 'Malgun Gothic', sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 40px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.hidden {
    display: none !important;
}

hr {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"], input[type="password"], select, input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn-primary {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.btn-menu {
    padding: 40px 20px;
    font-size: 18px;
    font-weight: bold;
    background-color: #f8f9fa;
    border: 2px solid #0056b3;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-menu:hover {
    background-color: #0056b3;
    color: white;
}

.badge {
    background-color: #e3f2fd;
    color: #0d47a1;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-group-inline input[type="text"] {
    width: 300px;
}

.page-block {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    background: #fff;
}

.page-block h3 {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    border: 1px solid #dee2e6;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

th {
    background-color: #f1f3f5;
}

.btn-table {
    padding: 5px 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.btn-add-page {
    width: 100%;
    padding: 15px;
    background-color: #e9ecef;
    color: #495057;
    border: 2px dashed #ced4da;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
}

.btn-add-page:hover {
    background-color: #dee2e6;
}

/* ... 상단 기존 스타일 코드 생략 (기존 파일 그대로 유지하되 맨 뒷부분만 아래처럼 정리) ... */

/* 초기 게이트웨이 화면 독점 표출을 위한 스타일 가동 */
#authContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #0056b3;
    background-color: #ffffff;
    z-index: 9999;
}

body {
    background-color: #f0f2f5;
    overflow: hidden;
}

body.authenticated {
    overflow: auto;
}

/* 좌우 내비게이션 컨트롤러 전용 컴포넌트 디자인 정의 */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    background: #ffffff;
    padding: 10px;
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.pagination-controls button {
    min-width: 120px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

#pageIndicator {
    font-size: 16px;
    padding: 8px 16px;
    background-color: #0056b3;
    color: #ffffff;
}

/* 수정 부분: 특정 페이지 바로 이동 레이아웃 및 서브 버튼 스타일 정의
   위치: public/css/style.css 최하단에 삽입
*/
.page-jump-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    background: #ffffff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.page-jump-controls label {
    font-weight: bold;
    font-size: 14px;
    color: #495057;
}

.page-jump-controls input[type="number"] {
    width: 90px;
    padding: 6px 10px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.btn-primary-sm {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 7px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.btn-primary-sm:hover {
    background-color: #004085;
}

/* 수정 부분: 대장 행 데이터 완전 파쇄용 X 버튼 스타일 정의
   위치: public/css/style.css 최하단에 삽입
*/
.btn-delete {
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    margin-left: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-delete:hover {
    background-color: #bd2130;
}

.btn-delete:active {
    transform: scale(0.95);
}