/* Extracted responsive and modal styles moved to responsive.css and modal.css */

/* 기본설정 */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background: #f5f6f7;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	color: #111;
}

/* 전체컨테이너 */
#WTDcard_warp {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	width: 920px;
	height: 700px;
	border: 1px solid #ddd;
	border-radius: 13px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* 헤더영역 */
#WTDcard_warp .head_warp {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	height: 40px;
	padding: 0px;
	border-bottom: 1px solid #eee;
}

#WTDcard_warp .head_warp .CTitle {
	font-size: 13px;
	font-weight: bold;
	padding-left: 15px;
}

#WTDcard_warp .head_warp .Btn {
	display: flex;
	gap: 0px;
}

#WTDcard_warp .head_warp .Btn button {
	width: 30px;
	height: 30px;
	border: 0px;
	background: #fff;
	cursor: pointer;
	margin-right: 10px;
}

#WTDcard_warp .head_warp .Btn button.btn_close {
	background: #fff url('../img/close.svg') center/50% no-repeat;
}

/* 본문공통 */
#WTDcard_warp .contents_warp {
	flex: 1;
	display: flex;
	padding: 20px 15px 0 15px;
}

.left_panel {
	width: 400px;
	padding-right: 16px;
	border-right: 1px solid #ddd;
}

.right_panel {
	flex: 1;
	padding-left: 16px;
	display: flex;
	flex-direction: column;
}

.panel_title {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 10px;
}

/* 내명함정보 */
.mycard_box {
	border: 1px solid #000;
	border-radius: 7px;
	padding: 12px;
	margin-bottom: 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

/* Card Wrapper */
.mycard_box_scroll_wrapper {
	width: 100%;
	display: flex;
	overflow: hidden;
	border: 1px solid #aaa;
	border-radius: 10px;
	box-sizing: border-box;
}
/* Card Preview Container */
.mycard_preview {
	position: relative;
	display: flex;
	gap: 15px;
	width: 357px;
	min-width: 357px;
	height: 218px;
	min-height: 218px;
	padding: 15px;
	background: #fff;
	box-sizing: border-box;
}

/* Logo Section */
.mycard_logo {
	position: relative;
	width: 90px;
	height: 50px;
	margin: 5px 0 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mycard_logo .kwater_logo {
	width: 100%;
}

/* Profile Image */
.org_attach_ch {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 80px;
	height: 80px;
	margin: 0 0 20px 20px;
}

.org_attach_ch .kwater_ch {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Card Info Section */
.mycard_info {
	position: relative;
	flex: 1;
	min-width: 0;
	padding: 15px 0 0 0;
	font-size: 11px;
	line-height: 1.35;
}

.org_slogan {
	position: absolute;
	top: 0;
	right: 0;
	display: inline-block;
}

.org_slogan .kwater_slogan {
	width: 40%;
	float: right;
	margin: -5px 0 0 0;
}

/* Text Elements */
.mycard_info .name {
	font-size: 17px;
	font-weight: bold;
	margin: 7px 0 15px 0;
}

.mycard_info .org_name {
	font-size: 13px;
	font-weight: bold;
	margin: 7px 0 5px 0;
}

.mycard_info .department_position,
.mycard_info .academic_title {
	display: block;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mycard_info .org_address {
	font-size: 11px;
	letter-spacing: -0.5px;
}

/* Contact Info */
.org_tel_fax {
	display: flex;
	gap: 10px;
}

.org_tel_fax .tel,
.org_tel_fax .fax {
	display: inline-block;
	float: left;
}

.mycard_info .mobile {
	font-size: 11px;
	letter-spacing: -0.5px;
	margin: 5px 0 0 0;
}

.mycard_info .email {
	font-size: 11px;
	letter-spacing: -0.5px;
	word-break: break-all;
}

#WTDcard_warp.preview_private_mode .mycard_info .mobile {
	display: none !important;
}

.mycard_mascot {
	width: 60px;
	height: 60px;
	border-radius: 12px;
	border: 1px solid #ddd;
	background: #f5fbff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	color: #0075d9;
	margin-left: auto;
}

/* 내명함정보 : 명함정보 입력 */
.position_wrap {
	display: flex;
	gap: 5px;
	width: 100%;
}

.position_wrap ul.input_Box {
	display: inline-block;
	float: left;
	width: calc(100% - 100px);
	flex: 1 1;
}

.position_wrap ul.attach_ch {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
}

.position_input {
	flex: 1;
	width: 100%;
	height: 40px;
	border-radius: 5px;
	border: 1px solid #ccc;
	background: #fff;
	font-size: 13px;
	padding: 0 10px;
	margin-bottom: 5px;
}

.position_input:last-child {
	margin-bottom: 0px;
}

.input_attach_img {
	width: 100%;
	height: 100%;
	border-radius: 5px;
	border: 1px solid #ccc;
	background: #fff;
	object-fit: contain;
	padding: 8px 25px;
	cursor: pointer;
	/* margin: 0 25px; */
}

.btn_save {
	width: 100%;
	height: 45px;
	border-radius: 5px;
	border: 0;
	background: #000;
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	cursor: pointer;
}

/* 명함미리보기 */
.preview_box {
	margin-top: 20px;
	padding: 12px;
	border-radius: 7px;
	background: #f8f8f8;
}

.preview_box_title {
	font-size: 13px;
	font-weight: bold;
	margin-bottom: 4px;
}

.preview_box_desc {
	font-size: 11px;
	color: #555;
	margin-bottom: 10px;
}

.preview_btns {
	display: flex;
	gap: 8px;
	margin-top: 5px;
}

.preview_btns button {
	flex: 1;
	height: 40px;
	line-height: 38px;
	border-radius: 5px;
	border: 1px solid #000;
	background: #fff;
	font-size: 12px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.2s;
}

.preview_btns button:hover {
	background: #f5f6f7;
}

/* 명함발송 */
.send_head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.send_privacy {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
	font-size: 13px;
}

.send_privacy label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
}

.send_field_label {
	font-size: 13px;
	font-weight: 600;
	margin-top: 6px;
	margin-bottom: 4px;
}

.send_textarea_wrap {
	border-radius: 5px;
	border: 1px solid #ccc;
	padding: 10px;
	min-height: 110px;
	position: relative;
}

.send_textarea {
	width: 100%;
	height: 80px;
	border: 0;
	resize: none;
	outline: none;
	font-family: inherit;
	font-size: 13px;
}

.send_count {
	position: absolute;
	right: 10px;
	bottom: 6px;
	font-size: 11px;
	color: #555;
}

.send_receiver_title {
	margin-top: 14px;
	font-size: 13px;
	font-weight: 600;
}

.send_form_row {
	display: flex;
	gap: 8px;
	margin: 8px 0;
}

.send_form_row input {
	flex: 1;
	height: 34px;
	min-height: 34px;
	border-radius: 5px;
	border: 1px solid #ccc;
	padding: 0 7px;
	font-size: 13px;
}

.send_form_row button.btn_add {
	width: 70px;
	height: 34px;
	border-radius: 5px;
	border: 1px solid #000;
	background: #000;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.form_error {
	font-size: 11px;
	color: #d11;
	min-height: 14px;
	display: none;
}

.receiver_list_wrap {
	margin-top: 5px;
	border-radius: 5px;
	border: 1px solid #000;
	overflow: hidden;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.receiver_list_head,
.receiver_list_row {
	display: grid;
	grid-template-columns: 50px 0.8fr 1.5fr 40px;
	align-items: center;
	padding: 5px 10px;
	font-size: 13px;
}

.receiver_list_head > div,
.receiver_list_row > div {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.2;
}

.receiver_list_head > div:first-child,
.receiver_list_row > div:first-child {
	text-align: center;
}

.receiver_list_head > div:nth-child(2),
.receiver_list_row > div:nth-child(2) {
	padding-right: 6px;
}

.receiver_list_head > div:nth-child(3),
.receiver_list_row > div:nth-child(3) {
	padding-right: 6px;
}

.receiver_list_head > div:nth-child(4),
.receiver_list_row > div:nth-child(4) {
	display: flex;
	justify-content: flex-end;
}

.receiver_list_head {
	background: #f5f5f5;
	font-weight: bold;
	border-bottom: 1px solid #000;
}

.receiver_list_body {
	flex: 1;
	overflow-y: auto;
	max-height: 220px;
	scrollbar-width: thin; /* Firefox */
	scrollbar-color: rgba(0, 0, 0, 0.25) transparent; /* Firefox */
}

.receiver_list_row {
	background: #fff;
	transition: all 0.2s;
	border-bottom: 1px dashed #eee;
	min-height: 36px;
}

/* Custom scrollbar (WebKit) */
.receiver_list_body::-webkit-scrollbar {
	width: 6px;
}
.receiver_list_body::-webkit-scrollbar-track {
	background: transparent;
}
.receiver_list_body::-webkit-scrollbar-thumb {
	background-color: rgba(0, 0, 0, 0.25);
	border-radius: 6px;
}
.receiver_list_body::-webkit-scrollbar-thumb:hover {
	background-color: rgba(0, 0, 0, 0.35);
}

.receiver_list_row:hover {
	background: #f5f6f7;
}

.receiver_list_row button.btn_del {
	border: 0px solid #000;
	width: 25px;
	height: 25px;
	font-size: 12px;
	cursor: pointer;
	float: right;
	background: url('../img/close.svg');
	background-position: center;
	background-size: 50%;
	background-repeat: no-repeat;
}


/* 하단버튼 */
.footer_warp {
	padding: 12px 0px 18px 0px;
}

.btn_send_all {
	width: 100%;
	height: 45px;
	border-radius: 5px;
	border: 0;
	background: #000;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
}

.btn_send_all:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.btn_send_all:hover:not(:disabled) {
	background: #00a4e9;
}

/* Save button loading state */
.btn_save:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.btn_save_loading {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.btn_save_spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Toast Notification */
.toast {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 2000;
	animation: toast-slide-in 0.3s ease-out forwards;
}

.toast_content {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border-radius: 8px;
	padding: 14px 18px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border: 1px solid #e0e0e0;
	min-width: 200px;
}

.toast_icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.toast_icon .status_check {
	width: 24px;
	height: 24px;
	border-width: 2px;
}

.toast_icon .status_check::after {
	width: 10px;
	height: 6px;
	border-width: 2px;
	margin-top: -1px;
}

.toast_message {
	font-size: 14px;
	font-weight: 600;
	color: #1f9d55;
}

@keyframes toast-slide-in {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.toast.toast-hide {
	animation: toast-slide-out 0.3s ease-in forwards;
}

@keyframes toast-slide-out {
	from {
		transform: translateX(0);
		opacity: 1;
	}
	to {
		transform: translateX(100%);
		opacity: 0;
	}
}
