/* 파란색 메인 테마 색상 설정 */
:root {
    --primary-color: #0078d4; /* 기존 헤더 파란색 포인트 계열 */
    --primary-hover: #134596;
    --border-color: #e5e7eb;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
}
.board-empty{
	text-align: center;
}
/* 게시판 메인 컨테이너 */
.board-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 16px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}
/* ===============================
   TITLE
================================ */

.board-title {
    max-width: 1100px;
    margin: 0 auto;
	display: flex;
	align-items: flex-end;
	gap: 18px;
}

.board-title h1 {
    margin: 0;

    color: var(--text-dark);

    font-size: 38px;
    font-weight: 800;

    letter-spacing: -1.5px;
}


.board-title p {
    margin: 0 0 5px;

    color: #666c75;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.5;
}

/* 1. 상단 컨트롤 영역 (건수 + 검색바) */
.board-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.board-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-dark);
}

.count-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 4px;
}

.count-text strong {
    color: var(--primary-color);
    font-weight: 700;
}
/* ===============================
   SEARCH
================================ */

.board-search-wrap {
    display: flex;
    justify-content: flex-end;
}


.board-search {
    display: flex;

    height: 42px;

    gap: 8px;
}


.search-select {
    width: 90px;

    padding: 0 12px;

    background-color: #ffffff;

    border: 1px solid #9da2aa;

    font-size: 14px;
    color: #383c43;

    outline: none;

    cursor: pointer;
}


.search-input {
    width: 210px;

    padding: 0 14px;

    border: 1px solid #9da2aa;

    outline: none;

    font-size: 14px;

    transition: border-color 0.2s ease;
}


.search-input:focus {
    border-color: var(--primary-color);
}


.search-input::placeholder {
    color: #b0b4ba;
}


.search-btn {
    width: 90px;

    border: none;

    background-color: var(--primary-color);

    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}


.search-btn:hover {
    background-color: var(--primary-hover);
}


/* ===============================
   write btn
================================ */
.recru-admin-top {
    display: flex;
    justify-content: flex-end;
    margin-right: 30px;
}

.btn-write {
    display: inline-block;
    padding: 10px 22px;

    background-color: #1b5ac2;
    color: #fff;

    font-size: 14px;
    font-weight: 600;

    border-radius: 3px;
    text-decoration: none;
	
}

.btn-write:hover {
    background-color:var(--primary-hover);
}
/* 2. 게시판 테이블 영역 */
.board-table {
    width: 100%;
	table-layout: fixed;
    border-collapse: collapse;
    border-top: 3px solid var(--primary-color); /* 상단 대표 파란색 선 */
}

.board-table th {
    padding: 16px 12px;
    background-color: #f8fafc;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.board-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #4b5563;
    transition: background-color 0.15s;
}

.board-table tbody tr:hover {
    background-color: #f8fafc;
}
.board-row {
    cursor: pointer;
}

.board-row:hover {
    background-color: #f8fafc;
}

/* 컬럼 정렬 및 폭 설정 */
.col-num {
    width: 80px;
    text-align: center;
}

.col-title {
	width: auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
    text-align: left;
}

.col-date {
    width: 120px;
    text-align: center;
	white-space: nowrap;
    color: var(--text-muted);
}
.col-status {
    width: 110px;
    text-align: center;
}
.col-admin{
	width: 100px;
}
.admin-action-cell{
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.btn-recru-edit,
.btn-recru-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
}

.btn-recru-edit {
	margin-right: 10px;
    color: var(--primary-color);
    background: #fff;
    border: 1px solid #1b5ac2;
    text-decoration: none;
}

.btn-recru-edit:hover {
    color: #fff;
    background: var(--primary-hover);
}

.btn-recru-delete {
    color: #dc3545;
    background: #fff;
    border: 1px solid #dc3545;
}

.btn-recru-delete:hover {
    color: #fff;
    background: #dc3545;
}
/* 채용 상태 공통 */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 64px;
    height: 30px;
    padding: 0 12px;

    border-radius: 4px;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
}

/* 모집중 */
.status-badge.recruiting {
    color: #0078d4;
    background-color: #eaf4ff;
    border: 1px solid #b9dcff;
}

/* 마감 */
.status-badge.closed {
    color: #6b7280;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
}

/* 3. 하단 페이지네이션 */
/* ===============================
   PAGINATION
================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 4px;

    margin-top: 70px;
}


.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    color: #555b63;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    border: 1px solid #d2d6dc;

    background-color: #ffffff;

    transition: all 0.2s ease;
}


.page-btn:hover {
    color: var(--primary-color);

    border-color: var(--primary-color);
}


.page-btn.active {
    color: #ffffff;

    border-color: var(--primary-color);

    background-color: var(--primary-color);
}


.page-btn.arrow {
    color: #555b63;
}

/* 활성화된 페이지 하단 밑줄 표시 */
.page-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

.page-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.page-link {
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 6px;
    position: relative;
    font-weight: 500;
}

.page-link:hover {
    color: var(--primary-color);
}

/* 활성화된 페이지 하단 밑줄 표시 */
.page-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

.page-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}
/* ========================================
   TABLET / MOBILE
======================================== */
@media (max-width: 768px) {

    .board-title {
        padding: 16px 20px;
    }

    .board-title h1 {
        font-size: 30px;
        letter-spacing: -0.5px;
    }

    .board-title p {
        margin-top: 4px;
        font-size: 15px;
    }

    .board-container {
        margin: 25px auto;
        padding: 0 20px;
    }

    /* 게시글 수 + 검색창 세로 배치 */
    .board-top {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .board-count {
        font-size: 14px;
    }

	/* 검색 */
	.board-search-wrap {
		padding-bottom: 14px;
	}


	.board-search {
		width: 100%;

		height: 42px;

		gap: 5px;
	}


	.search-select {
		width: 80px;

		padding: 0 8px;
	}


	.search-input {
		 flex: 1;

		 min-width: 0;
		 width: auto;
	}


	.search-btn {
		width: 65px;
	}


    /* 게시판 */
    .board-table th {
        padding: 14px 8px;
        font-size: 13px;
    }

    .board-table td {
        padding: 14px 8px;
        font-size: 13px;
    }

    .col-num {
        width: 55px;
    }

    .col-date {
        width: 95px;
    }

    
    /* 제목이 너무 길면 말줄임 */
    .col-title a {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 페이지네이션 간격 축소 */
    .pagination {
        gap: 10px;
        margin-top: 26px;
    }

    .page-link {
        font-size: 14px;
        padding: 4px;
    }
}


/* ========================================
   SMALL MOBILE
======================================== */
@media (max-width: 480px) {

    .board-title {
        padding: 10px 16px;
    }

    .board-title h1 {
        font-size: 26px;
    }

    .board-title p {
        font-size: 14px;
    }

    .board-container {
        margin: 20px auto;
        padding: 0 16px;
    }

    .count-icon {
        width: 24px;
        height: 24px;
    }

    .board-count {
        font-size: 13px;
    }


	.col-status {
	       width: 72px;
	   }

	  .status-badge {
	       min-width: 54px;
	       height: 27px;
	       padding: 0 8px;
	       font-size: 12px;
	   }
    .board-table th,
    .board-table td {
        padding: 13px 6px;
    }

    .col-num {
        width: 45px;
        font-size: 12px;
    }

    .col-date {
        width: 80px;
        font-size: 12px;
    }

    .col-title {
        max-width: 0;
    }

    .col-title a {
        font-size: 13px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pagination {
        gap: 7px;
        margin-top: 24px;
    }

    .page-link {
        font-size: 13px;
    }
}