/* 모달 기본 css */
body.modal-open {
	padding-right:0 !important;
}

.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	justify-content: center;
	align-items: center;
	font-family:'SCoreDream', 'Noto Sans KR', Arial, sans-serif !important;
	
}

.modal .form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-group input[type="text"], .form-group input[type="password"],
	.form-group textarea {
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	transition: border-color 0.3s;
}

.modal-content {
	background-color: #fff;
	border-radius: 8px;
	width: 90%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-content h3 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 15px;
	color: #333;
}

.modal-content p {
	margin-bottom: 0px;
	color: #666;
	line-height: 1.3;
}


.modal-body-inner {
	padding: 0 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.modal-buttons {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.modal-buttons button {
	padding: 8px 20px;
	border: none;
	border-radius: 4px;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background-color 0.2s;
}

.modal-buttons .cancel-btn {
	background-color: #eaebec;
	color: #333;
}

.modal-buttons .cancel-btn:hover {
	background-color: #e9ecef;
}

.modal-buttons .confirm-btn {
	background-color: #007bff;
	color: #fff;
}

.modal-buttons .confirm-btn:hover {
	background-color: #0056b3;
}

.modal-backdrop.fade {
	display: none;
}

.modal-dialog-centered {
	justify-content: center;
}

.modal-backdrop.show {
	z-index: 1055 !important;
}

/* 마이페이지 모달 */
#mypageModal {
	z-index: 1050 !important;
}

#mypageConfirmModal {
	z-index: 1070 !important;
}

.modal-backdrop {
	z-index: 1050 !important;
}

/* 비밀번호 변경 모달 */
#passwordChangeModal {
	z-index: 1060 !important;
}
#passwordChangeModal .modal-dialog {
	max-width:30%;
}
/* 비밀번호 변경 확인 모달 (가장 위에) */
#confirmChangeModal, #mypageConfirmModal {
	z-index: 1070 !important;
}
/* 학교 검색 모달 */
#schoolSearchModal {
	z-index: 1060 !important;
}

#schoolSearchModal .modal-dialog {
	max-width: 40%;
}

.school-search-bar.form-group {
	flex-direction: row;
	gap: 8px;
}

.school-search-bar {
	padding-top: 10px;
	align-items: stretch;
}

.school-search-bar .btn.btn-dark {
	background-color: #4d4d4d;
	color: white;
	white-space: nowrap;
	padding:0 20px;
	border-radius: 5px;
}

#schoolGrid {
	margin-top: 16px;
	height: 300px;
}

/* tabulator grid */


.tabulator .selected-row {
    background-color: #e1ecff !important;
}
  
.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{
	color:#555 !important;
}

.tabulator-row .tabulator-cell{
	color:#000 !important;
}
.tabulator .tabulator-tableholder{
	overflow-x:hidden !important;
}
/* 주소 검색 모달 */
#__daum__layer_1 iframe, #__daum__layer_1 {
	min-width: auto !important;
}


/* 약관팝업 디자인 */

.terms-content {
	box-sizing: border-box;
	padding: 20px;
	max-height: 400px;
	overflow: auto;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #dcedff;
	text-align:left;
}

.terms-content p {
	margin-bottom: 20px !important;
	font-size: 15px;
	color: #000000b0 !important;
}

.terms-content h6 {
	color: #000;
	font-size: 1rem;
}

/* 모바일 대응 */
@media ( max-width : 1199px) {
	#schoolSearchModal .modal-dialog {
		max-width: 80%;
	}
	#passwordChangeModal .modal-dialog{
		max-width:80%;
	}
}

@media ( max-width : 768px) {
	.modal.fade .modal-dialog{
		max-width:100% !important;
	}
	.modal-content h3 {
		font-size: 1.3rem;
	}
	.modal-content input[type="password"] {
		padding: 10px;
		font-size: 0.9rem;
	}
	.modal-buttons button {
		padding: 10px 20px;
		font-size: 0.85rem;
		width: 50%;
 	}
 	[type=button]{
 		font-size:0.85rem;
 	}
 	.form-group textarea {
 		font-size:0.85rem;
 	}
}
@media ( max-width : 480px) {
	.modal-content {
		width: 100%;
	}
}