
/* ================================ 공통사항 ================================= */
body {
	font-family: 'Noto Sans KR', sans-serif;
	background-color: #f8f9fa;
}
main {
	padding-bottom: 100px; /* or 120px */
}

/* 전체 레이아웃 구성 ========================  */
.settings-wrapper {
	display: flex;
	gap: 40px;
	max-width: 1100px;
	margin: 40px auto;
}

/* 좌측 사이드바 카테고리 ========================  */
.category-menu {
	width: 180px;
}
.category-menu:active {
	width: 180px;
	font-weight: bold;
}

.category-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}
.category-header h5 {
	font-weight: bold;
	margin-bottom: 0;
}
.category-header p {
	margin: 0;
	color: #6c757d;
	font-size: 0.9rem;
}

/* 버튼 ========================  */
.pill-btn {
	border-radius: 50rem;
	background-color: #e9ecef;
	padding: 0.5rem 1rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
	width: 100%;
}
.pill-btn:hover {background-color: #ced4da;}
.pill-btn:active {background-color: #E63946; font-weight: bold;}

.btn-danger {
	background-color: #E63946;
	border-color: #E63946;
	color: white;
}
.btn-danger:hover {background-color: #d6283d; border-color: #d6283d;}

.big-button {
	padding: 1rem;
	border-radius: 0.75rem;
	font-weight: bold;
	font-size: 1rem;
}


/* ================================ alarm  ================================= */

.rounded-box {
	border: 1px solid #dee2e6;
	border-radius: 1rem;
	padding: 1rem 1.5rem;
	background-color: white;
	margin-bottom: 1rem;
	box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.05);
}
.sub-setting {padding-left: 1rem; padding-top: 0.5rem;}

/* 아코디언 화살표 ========================  */
.arrow {
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 8px;
	vertical-align: middle;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 6px solid black;
	transition: transform 0.3s ease;
}
.arrow.open {transform: rotate(-90deg);}

/* 스위치 버튼 ========================  */
.form-switch .form-check-input {
	width: 60px;
	height: 30px;
	border-radius: 30px;
	background-color: #dee2e6;
	border: 1px solid #ccc;
	position: relative;
	transition: all 0.3s ease;
	appearance: none;
}
.form-switch .form-check-input::before {
	content: "OFF";
	position: absolute;
	top: 4px;
	right: 6px;
	font-size: 12px;
	color: white;
	z-index: 2;
}

.form-switch .form-check-input::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 24px;
	height: 24px;
	background-color: white;
	border-radius: 50%;
	transition: all 0.3s ease;
	z-index: 1;
}
.form-switch .form-check-input:checked {
	background-color: #E63946; border-color: #E63946; }
.form-switch .form-check-input:checked::before {
	content: "ON";left: 10px; right: auto; }
.form-switch .form-check-input:checked::after {left: 33px;}

.alert-group {cursor: pointer;}
.alert-items {cursor: default;}


/* ================================ QnA  ================================= */
/* 우측 컨텐츠 구역 title ========================  */
.section-title {margin-bottom: 30px;}
.section-title h2 {font-weight: bold; margin-bottom: 20px;}
.section-title p {color: #6c757d; font-size: 17px;}

/* FAQ바로가기_문의전 자주묻는질문확인 박스 ========================  */
.faq-box {
	display: block;
	padding: 1rem 1.25rem;
	background-color: #fff3cd;
	border: 1px solid #ffeeba;
	font-size: 0.95rem;
	color: #495057;
	text-decoration: none;
	transition: all 0.2s ease; }
.faq-box:hover {background-color: #fff0a1;}
.faq-box strong {color: #e63946; font-size: 1rem; margin-right: 0.5rem;}

/* QnA toBusiness 문의할 클래스 선택 ========================  */
.class-card {
	background-color: #fff;
	border: 1px solid #dee2e6;
	border-radius: 0.75rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	margin-bottom: 1rem;
	transition: box-shadow 0.2s ease;
}
.thumbnail-wrapper {
	position: relative;
	width: 160px;
	height: 100px;
	flex-shrink: 0;
	border-radius: 0.5rem;
	overflow: hidden;
	cursor: pointer;
}
.thumbnail-wrapper img {width: 100%; height: 100%; object-fit: cover;}
.badge-status {position: absolute; top: 0.5rem; left: 0.5rem; font-size: 0.75rem;}
.class-info {flex-grow: 1;}
.class-info p {margin-bottom: 0.4rem; font-size: 14px; }
.class-name {
	font-weight: bold;
	margin-bottom: 0.5rem;
	font-size: 16px;
	cursor: pointer;
	color: #000;
}
.class-name:hover { text-decoration: underline; color: #E63946;}

/* form_box ========================  */
.form-box {
	background-color: #fff;
	padding: 2rem;
	border-radius: 0.75rem;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
}

/* 문의내역 (질문, 답변) ========================  */
.inquiry-card {
	background: #fff;
	border: 1px solid #dee2e6;
	border-radius: 0.75rem;
	transition: box-shadow 0.2s ease;
}
.inquiry-card:hover {box-shadow: 0 0 0.5rem rgba(0,0,0,0.05);}
.card-header {background: #fff;cursor: pointer;}
.card-body {background-color: #fdfdfd;}
.answer-header {display: flex;align-items: center;gap: 0.5rem;margin-bottom: 0.5rem;}
.answer-header img {width: 32px;height: 32px;border-radius: 50%;}
.answer-buttons button {margin-right: 0.5rem;}

.btn-inquire {white-space: nowrap;}
/* ================================ FaQ  ================================= */
.top-group { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
/* 질문 카드 ========================  */
.faq-card {
	border: 1px solid #dee2e6;
	border-radius: 0.75rem;
	background: #fff;
}
.faq-card .card-header {
	background: #fff;
	cursor: pointer;
	padding: 20px;
}
.faq-answer {
	padding: 1rem;
	background-color: #fdfdfd;
	padding: 30px;
}
.faq-form { display: none; border: 1px solid #dee2e6; border-radius: 0.5rem; padding: 1rem; background-color: #fff; }
.faq-buttons { margin-top: 1rem;}

.search-bar {max-width: 400px; margin-bottom: 1.5rem;}

.admin-only { display: none; }

/* 카테고리 선택 버튼 ========================  */
.round-filter-btn {
	border-radius: 50rem !important;
	padding: 0.4rem 1rem;
	font-weight: 500;
	border: 1px solid #dee2e6;
	background-color: white;
}
.round-filter-btn.active {
	border: 2px solid #E63946;
	color: #E63946;
	font-weight: bold;
}

/* ================================ 커뮤니티 Community ================================= */
/* 클래스 커뮤니티 정보 ========================  */
.community-sidebar {
	background-color: #ffffff;
	padding: 1rem;
	border-radius: 0.5rem;
	box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.community-header {
	background-color: #fff;
	border: 1px solid #dee2e6;
	border-radius: 0.75rem;
	overflow: hidden;
	margin-bottom: 1.5rem;
}
.community-header img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-bottom: 1px solid #dee2e6;
}
.community-header-body {
	padding: 1.5rem;
	display: flex;
	align-items: center;
}
.profile-thumbnail {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background-color: #dee2e6;
	flex-shrink: 0;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	margin-right: 1rem;
}

/* 강사님의 클래스 정보 ========================  */
.community-class-card {
	background-color: #fff;
	border: 1px solid #dee2e6;
	border-radius: 0.75rem;
	padding: 1rem;
	transition: box-shadow 0.2s ease;
}

.community-class-card:hover {
	box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.class-img-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 0.5rem;

}

.class-img-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}


.status-badge-overlay {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1;
}
.section-title {
	font-weight: bold;
	font-size: 1.1rem;
	margin-bottom: 1rem;
}
.btn-custom {
	margin-right: 0.5rem;
}

/* 좌측 사이드바 ========================  */
.category-list-btn {
	background: transparent;
	border: 1px solid transparent;
	text-align: left;
	padding: 10px 14px;
	border-radius: 0.5rem;
	font-weight: 500;
	font-size: 14px;
	color: #212529;
	transition: background-color 0.2s ease;

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}

.category-list-btn:hover,
.category-list-btn:focus,
.category-list-btn.active {
	background-color: #f1f3f5; /* 밝은 회색 */
	border: 1px solid #dee2e6;
}

.community-sidebar a {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-decoration: none;
	color: #212529;
	padding: 10px 14px;
	border-radius: 0.5rem;
	transition: background-color 0.2s ease;
	width: 100%;
}

/* 게시판 (목록형)========================  */
.board-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 3px
}
.board-tools { display: flex; gap: 0.5rem; margin-bottom: 0px;}
.board-link {text-decoration: none; color: inherit;}
.board-link:hover {text-decoration: none;}
.board-card {
	background-color: #fff;
	border: 1px solid #dee2e6;
	border-radius: 0.75rem;
	padding: 1.25rem;
	margin-bottom: 8px;
	transition: box-shadow 0.2s;
}
.board-card:hover {box-shadow: 0 2px 8px rgba(0,0,0,0.1);}
.board-title {font-weight: 600; margin-bottom: 0.5rem;}
.board-meta {font-size: 0.85rem; color: #6c757d;}

/* 게시판 (피드형)========================  */
.feed-card {
	background-color: #fff;
	border: 1px solid #dee2e6;
	border-radius: 0.75rem;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.25rem;
	position: relative;
}
.feed-header {
	font-size: 0.85rem;
	color: #555;
	margin-bottom: 0.5rem;
}
.feed-content {
	font-size: 0.95rem;
	margin-bottom: 0.75rem;
}
.feed-images {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 0.5rem;
}
.feed-images img {
	max-width: 150px;
	border-radius: 0.5rem;
}
.feed-actions {
	font-size: 0.9rem;
	color: #e63946;
	cursor: pointer;
}
.delete-btn {
	position: absolute;
	right: 1.25rem;
	font-size: 0.85rem;
	color: #aaa;
	cursor: pointer;
}
.post-form {
	background-color: #fff;
	border: 1px solid #dee2e6;
	border-radius: 0.75rem;
	padding: 1rem 1.25rem;
	margin-bottom: 2rem;
}
    
    