@charset "utf-8";

/* ADM UI 2.0 page primitives for tools. */
.tools-page.rp-page {
  padding-bottom: 100px;
  color: var(--rp-text);
}
.tools-page .rp-page-body { margin-top: 0; }
.tools-page .rp-card {
  background: var(--rp-surface);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow);
  padding: 30px;
  box-sizing: border-box;
}
.tools-page .tool-card > img { display: block; max-width: 100%; height: auto; margin: 0 auto 28px; }
.tools-page .loading-copy { margin-top: 10px; color: var(--rp-accent); }
.tools-page .preview-section.is-visible { display: block; }
.tools-page .soi-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tools-page .soi-modal { display:none; position:fixed; inset:0; background:var(--rp-overlay); z-index:9999; align-items:center; justify-content:center; }
.tools-page .soi-modal-dialog { background:var(--rp-surface); border-radius:var(--rp-radius); padding:36px 32px; max-width:580px; width:92%; max-height:88vh; overflow-y:auto; position:relative; box-shadow:var(--rp-shadow-lg); }
@media (max-width: 767px) {
  .tools-page.rp-page { padding-bottom: 72px; }
  .tools-page .rp-card { padding: 20px 15px; }
  .tools-page .soi-heading { align-items: flex-start; flex-direction: column; }
}

/* Image wash */
.container {
    border-radius: var(--rp-radius-lg);
    padding: 40px;
	margin-bottom: 248px;
    box-shadow: var(--rp-shadow-lg);
    width: 100%;
	height: 100%;
}

/* ------------------------------
   업로드 영역 (라온픽 메인 톤)
------------------------------ */
.upload-area {
    margin-top: 24px;
    border: 2px dashed var(--rp-border-strong);
    padding: 50px 20px;
    text-align: center;
    border-radius: var(--rp-radius);
    background: var(--rp-surface-alt);
    transition: 0.25s ease;
    cursor: pointer;
}
.upload-area:hover {
    border-color: var(--rp-primary);
    background: var(--rp-primary-soft);
}

.upload-icon {
    font-size: 60px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.file-label {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: var(--rp-text);
    cursor: pointer;
}

.file-info {
    margin-top: 10px;
    font-size: 13px;
    color: var(--rp-text-muted);
}

input[type="file"] { display: none; }

/* 선택된 파일 표시 */
.selected-file {
    margin-top: 20px;
    padding: 12px 16px;
    background: var(--rp-success-bright-soft);
    color: var(--rp-success-bright);
    border-left: 4px solid var(--rp-success-bright);
    font-size: 14px;
    border-radius: var(--rp-radius-sm);
    width: 20%;
    text-align: left;
}
.selected-file:empty { display: none !important; }
.selected-file:not(:empty) { display: block !important; }

/* ------------------------------
   버튼 스타일
------------------------------ */
#processBtn {
    margin-top: 25px;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--rp-radius-sm);
    width: 100%;
    background: linear-gradient(90deg, var(--rp-primary), var(--rp-secondary));
    border: none;
    color: var(--rp-chrome-title);
    transition: 0.25s;
}
#processBtn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
#processBtn:not(:disabled):hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* ------------------------------
   진행바
------------------------------ */
.progress-bar {
    width: 100%;
    height: 18px;
    background: var(--rp-border);
    border-radius: var(--rp-radius-sm);
    margin-top: 20px;
    overflow: hidden;
    display: none;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--rp-lilac-strong), var(--rp-lilac));
    text-align: center;
    font-size: 12px;
    color: var(--rp-chrome-title);
    line-height: 20px;
}

/* ------------------------------
   로딩
------------------------------ */
.loading {
    display: none;
    margin-top: 25px;
    text-align: center;
}

.spinner {
    border: 5px solid var(--rp-border);
    border-top: 5px solid var(--rp-lilac);
    border-radius: var(--rp-radius-round);
    width: 50px;
    height: 50px;
    animation: spin 0.7s linear infinite;
    margin: auto;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.success-message {
    display: none;
    margin-top: 20px;
    background: var(--rp-success-bright-soft);
    color: var(--rp-success-bright-text);
    padding: 12px;
    border-radius: var(--rp-radius-sm);
    text-align: center;
    font-size: 15px;
}


/* ------------------------------
   미리보기 영역 (중앙 정렬 개선)
------------------------------ */
.preview-section {
    margin-top: 50px;
    display: none;
    text-align: center;
}

.preview-section h3 {
    font-size: 22px;
    color: var(--rp-text);
    margin-bottom: 25px;
}

.preview-section .sample-label {
    margin-bottom: 12px;
    color: var(--rp-text-muted);
    font-size: 14px;
}

.preview-section .selected-file {
    margin-top: 0;
    margin-bottom: 20px;
}

/* 중앙 정렬 + 고정폭 + 가운데 배치 */
.preview-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 0 auto;
}

/* 이미지 박스 */
.preview-box {
    background: var(--rp-surface);
    padding: 20px;
    border-radius: var(--rp-radius);
    width: 360px;
    text-align: center;
    border: 1px solid var(--rp-border);
    backdrop-filter: blur(4px);
    box-shadow: var(--rp-shadow);
}

.preview-box h4 {
    margin-bottom: 15px;
    font-size: 17px;
    color: var(--rp-text);
}

/* 캔버스를 이미지 카드처럼 */
.preview-img {
    width: 100%;
    height: auto;
    border-radius: var(--rp-radius);
    background: var(--rp-surface-alt);
    box-shadow: var(--rp-shadow-sm);
}

/* SOI 레이아웃 */
.content-box{
	display: block !important;
    background: var(--rp-surface);
	border: 1px solid var(--rp-border);
	border-radius: var(--rp-radius);
	box-shadow: var(--rp-shadow);
}

.modify-box{}

.modify-box > .form-group{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
	text-align: left;
	margin-bottom: var(--space-60);
}

.download-btn{
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: var(--space-10);
	width: 25%;
	box-sizing: border-box;
	justify-content: center;
	text-align: center;
	color: var(--rp-chrome-title);
	background-color: var(--rp-primary);
	font-size: 1.125rem;
	font-weight: var(--fw-700);
	padding: 12px 20px;
	border-radius: var(--rp-radius-sm);
	transition: var(--transition);
	text-decoration: none;
}

.download-btn:hover{
	opacity: 0.8;
}


.modify-box .message-box{
	text-align: center;
	font-size: 1rem;
	font-weight: var(--fw-600);
	color: var(--rp-warning);
	line-height: 1.4;
	box-sizing: border-box;
    padding: 15px 20px;
    border-radius: var(--rp-radius-sm);
    background-color: color-mix(in srgb, var(--rp-warning) 16%, var(--rp-surface));
    text-align: center;
    border: 1px solid color-mix(in srgb, var(--rp-warning) 42%, var(--rp-border));
	width: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 5px;
}

.modify-box .message-box i{
	font-size: 1.25rem;
	color: inherit;
}

.modify-box .message-box span{
	font-size: inherit;
	color: inherit;
	word-break:  keep-all;
	line-height: inherit;
}

#modify{
	/* width: 400px; */
	margin: 0 auto;
	text-align: center;
}

#modify .form-group{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 30px;
	text-align: left;
	gap: 15px;
}

#modify .form-group:not(:first-child){
	margin-top: var(--space-60);
}

#modify .form-group h2,
.modify-box > .form-group h2{
	width: 100%;
	font-size: 1.25rem;
	font-weight: var(--fw-600);
	color: var(--rp-text);
	padding-bottom: 15px;
	border-bottom: 1px solid var(--rp-border);
	/* margin-bottom: var(--space-20); */
}

#modify .form-group h2 span{
	display: inline-block;
	font-size: 0.875rem;
	color: var(--rp-text-muted);
}

#modify .form-group fieldset{
	width: 100%;
	position: relative;
}

#modify .form-group:not(.notification-part) fieldset label{
	position: absolute;
	font-size: 0.9375rem;
	left: 20px;
    top: 50%;
	transform: translateY(-50%);
    color: var(--rp-text-muted);
    opacity: 0.5;
	transition: var(--transition);
	pointer-events: none;
}

#modify .form-group fieldset input{
	display: block;
	margin-top: 5px;
	height: 55px;
}

#modify .form-group:not(.notification-part) fieldset input:focus,
#modify .form-group:not(.notification-part) fieldset input:valid{
	padding-top: 25px;
}

#modify .form-group:not(.notification-part) fieldset input:hover + label{
	opacity: 0.8;
}

#modify .form-group:not(.notification-part) fieldset input:focus + label,
#modify .form-group:not(.notification-part)  fieldset input:valid + label{
	opacity: 1;
	color: var(--rp-primary);
	font-size: 0.8125rem;
	left: 20px;
	top: 18px;
}

#modify button[type=submit]{
	width: auto;
	margin: 0 auto;
	margin-top: var(--space-20);
	padding: 15px 30px;
}

#modify input{
	display: inline-block;
	font-size: 1rem;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 20px;
	padding-top: 23px;
	border: 1px solid var(--rp-border);
	background-color: var(--rp-surface);
	color: var(--rp-text);
	outline: none;
	border-radius: var(--rp-radius-sm);
	transition: var(--transition);
}

#modify input:hover,
#modify input:focus{
	border-color: var(--rp-primary);
	box-shadow: var(--rp-input-shadow);
}

#modify button{
	margin-top: var(--space-10);
	display: block;
	width: 100%;
	text-align: center;
	color: var(--rp-chrome-title);
	background-color: var(--rp-primary);
	font-size: 1.125rem;
	font-weight: var(--fw-700);
	box-sizing: border-box;
	padding: 12px 20px;
	border-radius: var(--rp-radius-sm);
	transition: var(--transition);
}

#modify button:hover{
	opacity: 0.8;
}

#modify form input{
	padding: 12px 20px;
}

#modify button#sendSmsBtn{
	width: auto; height: 55px;
	background-color: var(--rp-secondary);
	padding: 15px 20px;
    border: 1px solid var(--rp-primary-soft);
	display: inline-block;
	font-size: 1rem;
	margin-top: 0;
	vertical-align: middle;
}

#modify .general-info fieldset{
	width: calc( (100% - 30px) / 3);
}

#modify .notification-part{
	justify-content: flex-start;
}

#modify .notification-part fieldset{
	width: 200px;
}

#modify .notification-part .checkbox-deco{
	display: inline-block;
	position: relative;
	width: 20px; height: 20px;
	vertical-align: middle;
}

#modify .notification-part .checkbox-deco input{
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	opacity: 0;
	z-index: 2;
	cursor: pointer;
	margin: 0;
}

#modify .notification-part .checkbox-deco .checkbox{
	width: 100%; height: 100%;
	border: 1px solid var(--rp-border-strong);
	border-radius: var(--rp-radius-sm);
	position: relative;
	transition: var(--transition);
}

#modify .notification-part .checkbox-deco input:checked + .checkbox{
	background-color: var(--rp-primary);
	border-color: var(--rp-primary);
}

#modify .notification-part .checkbox-deco .checkbox i{
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0;
	color: var(--rp-chrome-title);
	font-size: 13px;
	transition: var(--transition);
}

#modify .notification-part .checkbox-deco input:checked + .checkbox i{
	opacity: 1;
}

#modify .notification-part label{
	line-height: 20px;
	display: inline-block;
	margin-left: 5px;
	color: var(--rp-text-muted);
}


#modify .phone-verification{
	width: 100%;
	justify-content: flex-start;
}

#modify .phone-verification fieldset{
	width: auto;
}

#modify .phone-verification fieldset label{
	color: var(--rp-secondary);
}

#modify .form-group.phone-verification fieldset input:focus + label,
#modify .form-group.phone-verification fieldset input:valid + label{
	opacity: 1;
	color: var(--rp-secondary);
}

#modify .phone-verification fieldset input{
	width: 275px;
	border-color: color-mix(in srgb, var(--rp-secondary) 22%, var(--rp-border));
	display: inline-block;
}

#modify .phone-verification input::placeholder{
	color: var(--rp-text-muted);
}

#modify .phone-verification input#verificationCode{
	/* margin-left: 10px; */
	/* width: 100%; */
}

#modify .phone-verification input:hover,
#modify .phone-verification input:focus{
	border-color: var(--rp-secondary);
}





/* SOI 앱 설정 */
/* mypage index - 앱 아이디 설정 영역 */
#appIdStatusArea {
    width: 100%;
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
#appIdStatusArea .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--rp-radius-lg);
    font-size: 0.8125rem;
    font-weight: var(--fw-700);
    width: 10%;
    box-sizing: border-box;
    text-align: center;
}
.badge-set { background: color-mix(in srgb, var(--rp-success) 14%, var(--rp-surface)); color: var(--rp-success); }
.badge-unset { background: color-mix(in srgb, var(--rp-danger) 14%, var(--rp-surface)); color: var(--rp-danger); }
#appIdValue { font-size: 0.9375rem; color: var(--rp-text); }
#deleteAppIdBtn {
    margin-left: auto;
    display: none;
    padding: 8px 16px;
    background: color-mix(in srgb, var(--rp-danger) 14%, var(--rp-surface));
    color: var(--rp-danger);
    border: 1px solid color-mix(in srgb, var(--rp-danger) 45%, var(--rp-border));
    border-radius: var(--rp-radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: var(--fw-600);
    transition: var(--rp-transition);
}
#deleteAppIdBtn:hover { background: color-mix(in srgb, var(--rp-danger) 35%, var(--rp-surface)); }

/* message-box - 안내 문구 */
.message-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    width: 50%;
}
.message-box i { flex-shrink: 0; }
.message-box span { flex: 1; min-width: 0; }

#modify .error-message {
    margin-top: 12px;
    font-size: 0.9rem;
    text-align: center;
}

#modify .error-message.is-error { color: var(--rp-danger); }
#modify .error-message.is-success { color: var(--rp-success); }

/* 서이추 프로그램 필수 확인 모달 */
.soi-notice-trigger { flex-shrink: 0; padding: 5px 12px; border: none; border-radius: var(--rp-radius-button); background: var(--rp-danger); color: var(--rp-on-brand); font-size: 13px; font-weight: bold; cursor: pointer; }
.soi-modal-close { position: absolute; top: 14px; right: 18px; border: none; background: none; color: var(--rp-text-muted); font-size: 24px; cursor: pointer; }
.soi-notice-title { margin: 0 0 10px; color: var(--rp-danger); font-size: 20px; text-align: center; }
.soi-notice-intro { margin: 0 0 20px; color: var(--rp-danger); font-size: 14px; line-height: 1.8; text-align: center; }
.soi-notice-title-divider { margin: 0 0 20px; border: none; border-top: 2px solid var(--rp-border); }
.soi-notice-content { color: var(--rp-text); font-size: 15px; }
.soi-notice-warning { display: block; margin-bottom: 8px; color: var(--rp-warning); font-size: 15px; }
.soi-notice-copy { margin: 0; line-height: 1.9; }
.soi-notice-note { display: block; color: var(--rp-text-muted); font-size: 14px; line-height: 1.4; }
.soi-notice-divider { margin: 14px 0; border: none; border-top: 1px solid var(--rp-border); }
.soi-support-link { color: var(--rp-info); }
.soi-notice-summary { padding: 16px; border: 1px solid var(--rp-border-strong); border-radius: var(--rp-radius-medium); background: var(--rp-surface-alt); color: var(--rp-text); font-size: 15px; line-height: 1.9; text-align: center; }
.soi-notice-actions { display: flex; gap: 10px; margin-top: 22px; }
.soi-notice-dismiss-today { flex: 1; padding: 14px; border: 1px solid var(--rp-border-strong); border-radius: var(--rp-radius-medium); background: var(--rp-surface-alt); color: var(--rp-text); font-size: 14px; cursor: pointer; }
.soi-notice-confirm { flex: 2; padding: 14px; border: none; border-radius: var(--rp-radius-medium); background: var(--rp-danger); color: var(--rp-on-brand); font-size: 16px; font-weight: bold; cursor: pointer; }
