/* 기본 리셋 */
.nurs_list_container{
    max-width: 1200px;
    margin: 100px auto;
    padding: 20px;
}

/* 검색 섹션 */
.search-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.search-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-group label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.search-group select,
.search-group input {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
}

.search-group select:focus,
.search-group input:focus {
    outline: none;
    border-color: #ff7f2a;
}

.search-group input::placeholder {
    color: #999;
}

.search-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
}

.search-btn,
.reset-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn {
    background: #ff7f2a;
    color: white;
}

.search-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.reset-btn {
    background: #6c757d;
    color: white;
}

.reset-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* 결과 헤더 */
.result-header {
    margin-bottom: 20px;
}

.result-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.highlight {
    color: #ff7f2a;
}

/* 리스트 컨테이너 */
.list-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 테이블 스타일 */
.job-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.job-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e1e5e9;
}

.job-table th {
    padding: 16px 12px;
    text-align: center;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.job-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e1e5e9;
    vertical-align: middle;
	text-align:center;
}

.job-table tbody tr:hover {
    background: #f8f9fa;
}

/* 테이블 컬럼별 스타일 */
.number {
    width: 60px;
    text-align: center;
    font-weight: 600;
    color: #666;
}

.region {
    width: 120px;
    font-weight: 600;
    color: #333;
}
.cappNumb{
    font-weight: 600;
    color: #333;
}

.services {
    min-width: 300px;
}

.service-tag {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 15px;
    margin: 2px;
    white-space: nowrap;
}

.period {
    width: 200px;
}

.period-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.period-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.period-item .label {
    font-size: 15px;
    color: #999;
    font-weight: 500;
}

.period-item .date {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.cost {
    width: 120px;
    text-align: center;
    font-weight: 700;
    color: #ff7f2a;
    white-space: nowrap;
}

/* 데이터 없음 */
.no-data {
    padding: 60px 20px;
    text-align: center;
    color: #666;
}

.no-data p {
    font-size: 16px;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 20px 0;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-link:hover {
    background: #f8f9fa;
    border-color: #ff7f2a;
    color: #ff7f2a;
}

.page-link.active {
    background: #ff7f2a;
    border-color: #ff7f2a;
    color: white;
	
}

/* 모바일 검색 토글 버튼 */
.mobile-search-toggle {
    display: none;
    width:fit-content;
    padding: 5px 15px;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}
.mobile-search-toggle .toggle-icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.mobile-search-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .nurs_list_container{
		margin:50px auto;
	}
    /* 모바일 검색 토글 버튼 표시 */
    .mobile-search-toggle {
        display: block;
		float:right;
		text-align:center;
    }
    
    /* 기본적으로 검색 섹션 숨김 */
    .search-section {
        display: none;
        padding: 20px;
        margin-bottom: 20px;
		margin-top:50px;
    }
    
    /* 검색 섹션이 활성화될 때 */
    .search-section.active {
        display: block;
    }
    
    .search-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .search-buttons {
        flex-direction: column;
    }
    
    .search-btn,
    .reset-btn {
        width: 100%;
    }
    
    .result-header h2 {
        font-size: 20px;
    }
    
    /* 모바일 테이블 */
    .job-table {
        font-size: 15px;
    }
    
    .job-table thead {
        display: none;
    }
    
    /* 모바일에서 번호 컬럼 숨기기 */
    .job-table th:first-child,
    .job-table td:first-child {
        display: none;
    }
    
    .job-table tbody tr {
        display: block;
        border: 1px solid #e1e5e9;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 15px;
        background: white;
    }
    
    .job-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .job-table td:last-child {
        border-bottom: none;
    }
    
    .job-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
        min-width: 80px;
    }
    
    .number {
        width: auto;
        text-align: left;
    }
    
    .region {
        width: auto;
    }
    
    .services {
        min-width: auto;
        display: flex;
        flex-wrap: balance;
        gap: 4px;
        align-items: flex-start;
    }
    
	.service_list{
		display:flex;
		gap:10px;
		flex-wrap:wrap;
		justify-content:flex-end;
	}
    .services::before {
        content: "서비스정보";
        font-weight: 600;
        color: #555;
        margin-bottom: 8px;
    }
    
    .service-tag {
        margin: 0;
        font-size: 15px;
        padding: 3px 6px;
        white-space: nowrap;
    }
    
    .period {
        width: auto;
    }
    
    .period-info {
        width: 100%;
    }
    
    .period-item {
        flex-direction: row;
        justify-content: end;
        align-items: center;
    }
    
    .cost {
        width: auto;
        text-align: left;
        white-space: nowrap;
    }
    
    /* 모바일 페이지네이션 */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-link {
        padding: 6px 8px;
        font-size: 15px;
        min-width: 35px;
    }
	
	.period-item .label{
		margin-right:10px;
	}
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .search-section {
        padding: 15px;
    }
    
    .job-table td {
        font-size: 11px;
    }
    
    .service-tag {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .period-item .label {
        font-size: 10px;
    }
    
    .period-item .date {
        font-size: 11px;
    }
} 