/* 원불교교화연구소 아카이브 index.php 전용 스타일 */

/* 정렬 링크 스타일 */
.sort-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sort-link i {
    margin-left: 5px;
    opacity: 0.6;
}

th {
    cursor: pointer;
}

/* 테이블 컬럼 너비 고정 */
.records-list table {
    width: 100%;
    table-layout: fixed; /* 테이블 레이아웃 고정 */
    border-collapse: collapse;
}

.records-list th:nth-child(1) { /* 번호 */
    width: 8%;
}

.records-list th:nth-child(2) { /* 제목 */
    width: 49%;
}

.records-list th:nth-child(3) { /* 저자/출처 */
    width: 14%;
}

.records-list th:nth-child(4) { /* 카테고리 */
    width: 15%;
}

.records-list th:nth-child(5) { /* 발행일 */
    width: 10%;
}

/* 긴 제목 처리 */
.records-list td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 10px 8px;
}

/* 호버 시 긴 제목 표시 */
.records-list td:nth-child(2):hover {
    white-space: normal;
    overflow: visible;
    position: relative;
    z-index: 1;
    background-color: #f9f9f9;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* 검색 영역 스타일 */
.search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.search-container select,
.search-container input,
.search-container button,
.search-container .button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

/* 비활성화된 선택 상자에 대한 명확한 시각적 표시 */
.search-container select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
    color: #888;
    border: 1px solid #ccc;
}

/* 활성화된 1차 카테고리 선택 상자 강조 */
.search-container select#main_category:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.search-type-selector {
    min-width: 120px;
}

/* 버튼 그룹 스타일 */
.button-group {
    display: flex;
    gap: 5px;
}

/* 초기화 버튼 스타일 */
.reset-button {
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
    transition: background-color 0.2s ease;
}

.reset-button:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* 검색 버튼 스타일 */
.search-button {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    transition: background-color 0.2s ease;
}

.search-button:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/* 푸터 스타일 추가 */
footer {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    margin: 0 10px;
    color: #555;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #333;
}

.copyright {
    color: #777;
    font-size: 0.9em;
}
