@charset "UTF-8";
.jobs-nav-icon{width: 100px;}
.contents {
    width: 92%;
    max-width: 1100px;
    margin: 40px auto;
}
.filterDiv{
	margin: 5rem 0 3rem;
}
.selected-wrapper {
	max-width: 600px;
	width: 100%;
	margin: 10px auto;
	text-align: left;
	margin-bottom: 8px;
	min-height: 23px;
	border: 1px solid #d2d2d2;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background-color:#fff;
}

.selected-location, .selected-position {
	font-weight: bold;
	font-size: 14px;
	color: #333;
	display: flex;
	flex-direction: row;
	gap: 10px;
	margin-bottom: 8px;
	width: fit-content;
}
.selected-position{
	flex-wrap: wrap;
}
.selected-position-span, .selected-area-span{
    height: 2rem;
    margin-top: 8px;
    padding: 9px 12px;
    border-color: #e8e8e8;
    background-color: #f8f8f8;
    border: 1px solid #e8e8e8;
    align-items: center;
    display: inline-flex;
    border-radius: 4px;
}
.selected-position-span{
	justify-content: center;
}
.switch-container {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 20px 0;
	font-weight: bold;
	font-size: 16px;
}

.switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 26px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ddd;
	transition: 0.4s;
	border-radius: 34px;
}

.slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.4s;
	border-radius: 50%;
}

/* 기본 색상 (unchecked 상태일 때) */
.slider {
	background-color: #003366;
}

input:checked+.slider {
	background-color: #ffdd77;
}

input:checked+.slider:before {
	transform: translateX(24px);
}

.filterBtnContainer {
	gap: 10px; 
	align-items: center; 
	max-width: 600px;
	margin: 10px auto;
}

.setting-filter {
	display: none;
	overflow: hidden;
	border: 1px solid #ddd;
	border-radius: 6px;
	background-color: #fff;
	max-width: 800px;
	margin: 0 auto;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	padding: 10px;
}

.setting-base-row {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.setting-base__col--title {
	flex: 1;
	height: 40px;
	line-height: 40px;
	font-weight: 600;
	font-size: 1.2rem;
	text-align: center;
	border-bottom: 1px solid #e5e8ec;
	color: #4c515b;
	background-color: #f7f8fa;
	border-right: 1px solid #e5e8ec;
}

.setting-base__col {
	flex: 1; 
	border: 1px solid #e5e8ec;
	border-radius: 4px;
	background-color: #f9f9f9;
	overflow: hidden;
}

.setting-base__col--list {
	max-height: 200px; 
	overflow-y: auto;
	background-color: #fff;
	padding: 8px;
	border: 1px solid #e5e8ec;
	border-radius: 4px;
}

.setting-base__col--list ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.setting-base__col--list li {
	padding: 8px 12px;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.2s;
	border-bottom: 1px solid #f0f0f0;
}

.setting-base__col--list li:last-child {
	border-bottom: none;
}

.setting-base__col--list li:hover {
	background-color: #f0f5ff;
}

.setting-base__col--list .placeholder {
	color: #aaa;
	font-style: italic;
	text-align: center;
}

.button-group {
	display: flex;
	gap: 10px; 
}

.filter-btn {
	position: relative;
	color: #333;
	background-color: #f9f9f9;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 90px;
}

.filter-btn:hover {
	background-color: #f0f0f0;
}

.filter-btn .icon {
	display: flex;
	align-items: center;
	justify-content: center;
}
.neo-btn {
	background: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 7px 7px 14px rgba(0, 0, 0, 0.08), -7px -7px 14px rgb(243 243 243 / 85%);
    transition: all 0.15s ease;
}
.neo-btn:active {
  	box-shadow:
    inset 7px 7px 14px rgba(0,0,0,0.12),
    inset -7px -7px 14px rgba(255,255,255,0.9);
}
.filter-btn i {
	font-size: 12px;
	color: #555;
}

#positionContainer {
	background: #f9f9f9;
	padding: 16px;
	border: 1px solid #ddd;
	border-radius: 6px;
	max-width: 600px;
	margin-top: 8px;
}

.position-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 
	gap: 8px; 
}

.position-grid label {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.2s, box-shadow 0.2s;
}

.position-grid label:hover {
	background-color: #f0f0f0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.position-grid input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #007bff;
}

.remove-btn, .area-remove-btn {
	background: none;
	border: none;
	color: #ff6b6b;
	font-weight: bold;
	font-size: 14px;
	cursor: pointer;
	padding-right: 0;
}

.boardDiv{
	height: 110px;
}
.job-board-header span{
	font-weight: bold;
}
.title{
	font-weight: normal;
}
.payDiv{
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	align-items: center;
}
.pay_category {
background-color: #fff;
    padding: 2px 8px;
    border-radius: 28px;
    font-size: .75rem;
    line-height: 1rem;
    align-items: center;
    display: inline-flex;
    font-weight: 400;
}
.negotiable {
    background-color: #f5f5f5;
    color: #616161;
}
.per-task {
    background-color: #fff3e0;
    color: #fb8c00;
}
.hourly {
    background-color: #fff3e0;
    color: #fb8c00;
}
.daily {
    background-color: #fff3e0;
    color: #fb8c00;
}
.monthly {
    background-color: #e1f5fe;
    color: #0277bd;
}
.yearly {
    background-color: #e1f5fe;
    color: #0277bd;
}
#pagination{
	padding-top: 40px;
}
.pagination > li > .selected_btn{
	color: #0F2D4A;
    border-color: #0F2D4A;
    font-weight: 700;
    background-color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: normal;
}
.pagination > li > .default_btn{
	border: none;
	font-size: 1rem;
	font-weight: normal;
	color: #666;
}
.created_at{
	color: #00a1ef;
}
.searchDiv{
	display: flex;
	justify-content: end;
}
.searchBtn{
    border: 1px solid #e8e8e8;
    padding: 7px 10px 8px;
    border-radius: 6px;
    width: 95.5px;
    text-align: center;
    height: 36px;
}
.post-actions{margin:0;}
#created_at{margin-left:5px;}
#jobWriteBtn {
	background-color: #0F2D4A;  
	color: #fff;                
	font-weight: 600;       
	padding: 10px 18px;
	border-radius: 7px;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.15s ease;
}

/* hover 효과 */
#jobWriteBtn:hover {
	background-color: #163B63; 
	transform: translateY(-2px); 
}

/* 클릭(활성) 효과 */
#jobWriteBtn:active {
	background-color: #0A1E34;
	transform: translateY(0);
}
/* ====== 1024px 이하 ====== */
@media (max-width: 1024px) {
	.position-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
	.setting-base__col--list { max-height: 180px; }
}

/* ====== 768px 이하: 모바일 (카드형)====== */
@media (max-width: 768px) {
	
	 #jobListHeader { display: none !important; }
	
	 .boardDiv {
		display: grid !important;
		grid-template-columns: 0.2fr 1fr 0.5fr;
		grid-template-areas:
			"favorite title date"
			"favorite area area"
			"favorite position pay";
		gap: 6px 10px;
		align-items: center;
		text-align: left;
		padding: 12px 12px !important;
		height: auto !important;
	 }
	
	.boardDiv .title       { grid-area: title; font-size: 0.95rem; font-weight: 600; }
	.boardDiv .created_at  { grid-area: date; justify-self: end; color: #6b7280; font-size: 0.8rem; }
	.boardDiv .area        { grid-area: area; font-size: 0.9rem; color: #374151; }
	.boardDiv .position    { grid-area: position; font-size: 0.9rem; }
	.boardDiv .payDiv      { grid-area: pay; justify-self: end; display: inline-flex; gap: 6px; align-items:center;}
	.boardDiv .favoriteSpan { grid-area: favorite; }
	
	.pay_category {
		font-size: 0.7rem; padding: 2px 8px; 
	}
	.searchBtn { 
		width: auto; padding: 7px 12px 8px; 
	}
	
	.setting-base__col--title {
	  border-right: 0;
	  border-bottom: 1px solid #e5e8ec;
	  text-align: left;
	  padding-left: 10px;
	  font-size: 13px;
	  height: auto;
      line-height: 30px;
	}
	.setting-base__col--list li{font-size: 13px; padding: 7px 12px;}
	.position-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
	.position-grid label, .jam-grid label { padding: 8px 9px; font-size: 13px; }
	
	.selected-position { 
		gap: 8px; flex-wrap: wrap; 
	}
	.selected-position-span, .selected-area-span {
	  margin-top: 6px;
	  padding: 6px 10px;
	  height: auto;
	}
	#jobWriteBtn{padding: 8px 12px;}
	#job_title{font-size: 16px;}
}


/* ====== 480px 이하 ====== */
@media (max-width: 480px) {
	.filterDiv{
		margin: 0;
	}
	.filter-btn {         
	 	padding: 7px 5px;
	    font-size: 12px;
	    width: 60px;
	}
	.filter-btn .icon {
	    width: min-content;
	    font-size: 8px;
	}
	.filter-btn i {
	    font-size: 8px;
	}
	.searchBtn {
	    width: auto;
	    color: #333;
	    padding: 5px 10px;
        font-size: 11px;
	    height: auto;
	    align-items: center;
	}
	span {
		font-size: 10px;
	}
	.switch {
	    width: 30px;
	    height: 17px;
	}
	.slider:before {
	    height: 12px;
	    width: 12px;
	}
	input:checked+.slider:before {
	    transform: translateX(12px);
	}
	.selected-wrapper { padding: 12px; }
	.position-grid { grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); }
	.boardDiv .title { font-size: 12px; }
	.boardDiv .area, .boardDiv .position { font-size: 10px; }
	.boardDiv .created_at { font-size: 10px; }
	.payDiv{ align-items: center; }
	.pay_category{
		font-size: 8px;
	    padding: 2px 4px;
	    line-height: normal;
	    align-items: center;
	}
	.position-grid label{font-size: 12px; padding: 5px 3px;}
	
	
}
