@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    /* 기본 그레이 스케일 */
    --iGray700: #2F3336;
    --iGray600: #4E4E4E;
    --iGray500: #636363;
    --iGray400: #898989;
    --iGray300: #9B9B9B;
    --iGray200: #B6B6B6;
    --iGray100: #D0D0D0;
    --iGray50: #E5E5E5;
    --iGray25: #F1F1F1;
    --iGray05: #F9F9F9;

    /* 브랜드 컬러 (레드) */
    --iRed700: #D0383A;
    --iRed600: #D44A4C;
    --iRed500: #D85C5D;
    --iRed400: #E18081;
    --iRed300: #E79899;
    --iRed200: #EBABAC;
    --iRed100: #F1C5C6;
    --iRed50: #F8E1E1;
    --iRed25: #FCF1F1;
    --iRed05: #FEF9F9;

    /* 기본 색상 */
    --White: #FFFFFF;
    --Black: #000000;

    /* 의미적 색상 (중복 제거) */
    --primary-color: var(--iRed700);
    --primary-color-dark: #A91214;
    --danger-color: var(--iRed700);
    --secondary-color: var(--iGray500);

    /* 배경 색상 */
    --primary-bg: var(--White);
    --surface-primary: var(--White);
    --surface-secondary: var(--iRed05);

    /* 경계선 색상 */
    --border: var(--iGray100);
    --border-lighter: var(--iGray50);
    --border-selected: var(--iRed200);

    /* 입력 요소 */
    --input-border: var(--iGray100);
    --input-placeholder: var(--iGray200);

    /* 텍스트 색상 */
    --placeholder: var(--iGray200);

    /* Bootstrap 호환성 */
    --bs-secondary-rgb: 99, 99, 99;

    /* 폰트 */
    --font-main: 'Pretendard Variable', sans-serif;

    /* 레이아웃 */
    --btn-radius: 0.5rem;
    --input-radius: 0.5rem;
}

/* ===============================================
   공통 유틸리티 클래스
   =============================================== */

/* 공통 전환 효과 */
.transition-all {
    transition: all 0.2s ease;
}

.transition-bg {
    transition: background-color 0.2s ease;
}

.transition-border {
    transition: border-color 0.2s ease;
}

/* 공통 버튼 상호작용 */
.btn-hover-gray:hover {
    background-color: var(--iGray05);
}

.btn-hover-light:hover {
    background-color: #f5f7fa;
    border-color: var(--iGray300);
}

.btn-active-primary:focus,
.btn-active-primary:active {
    background-color: var(--primary-color);
    color: var(--White);
}

/* 공통 테두리 반지름 */
.radius-sm {
    border-radius: 4px;
}

.radius-md {
    border-radius: 6px;
}

.radius-lg {
    border-radius: 8px;
}

/* 공통 그림자 */
.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-md {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 공통 플렉스 레이아웃 */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-gap-2 {
    gap: 0.5rem;
}

.flex-gap-4 {
    gap: 1rem;
}

/* ===============================================
   기존 스타일 섹션
   =============================================== */

 /* 글로벌 폰트 및 기본 스타일 */
body, html {
    font-family: var(--font-main);
    line-height: 1;
}

body {
    color: var(--iGray700);
    background: var(--primary-bg);
}

/* 사용되지 않는 product-card 스타일 제거됨 */


/* 인쇄 의뢰하기 버튼 피그마 스타일 맞춤 */
.design-toolbar__btn--primary.design-toolbar__btn--wide {
    min-width: 140px;
    max-width: 180px;
    width: auto;
    height: 32px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #D0383A;
    color: #FEF9F9;
    letter-spacing: 0;
}
.design-toolbar__btn--primary.design-toolbar__btn--wide .design-toolbar__label {
    color: #FEF9F9;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    line-height: 1em;
}
.design-toolbar__btn--primary.design-toolbar__btn--wide img {
    width: 16px;
    height: 16px;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(103%) contrast(103%);
}
/* Wide primary button for print order (인쇄 의뢰하기) */
.design-toolbar__btn--wide {
    min-width: 140px;
    max-width: 220px;
    width: auto;
    padding-left: 18px;
    padding-right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
}

/* 중복된 body 스타일 제거됨 */

.small, small {
    font-size: .6875em;
}
.text-muted {
    color: var(--bs-secondary-rgb);
}

.login-section {
  max-width: 19rem;
  margin: 8rem auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-section__logo {
  margin-bottom: 2rem;
}
.login-section__logo img {
  width: auto;
  height: 4.5rem;
}
.login-section__title {
  color: var(--Black);
  text-align: center;
  margin-bottom: .75rem;
}
.login-section__subtitle {
  font-size: 0.875rem;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 2rem;
}
.login-section__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.login-section__input {
  width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--iGray100);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--iGray700);
    background: var(--White);
    transition: border 0.15s;
}
.login-section__input::placeholder {
  color: var(--placeholder);
  font-size: 0.875rem;
}
.login-section__options {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn span {
  width: 100% !important;
  text-align: center;
  white-space: nowrap;
  line-height: 1rem;
}
.login-btn {
  width: 100%;
  height: 3rem;
  border-radius: 0.5rem !important;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.18s;
}
.login-btn.main-login {
  background: var(--iRed700);
  color: var(--iRed05);
}
.login-btn.main-login:hover {
  background: var(--iRed600);
  color:var(--White);
}
.login-btn.main-login img {
  width: 1.5rem;
  height: 1.5rem;
  opacity: .75;
}
.login-btn.main-login:hover img {
  opacity: 1;
}
.login-btn.trial-login {
  background: var(--White);
  color: var(--iRed500);
  border: 1px solid var(--iRed50);
}
.login-btn.trial-login:hover {
  border-color: var(--iRed200);
  color: var(--iRed700);
}
.login-btn.trial-login img {
  width: 1.5rem;
  height: 1.5rem;
  filter: invert(54%) sepia(41%) saturate(749%) hue-rotate(320deg) brightness(97%) contrast(91%);
}
.login-btn.trial-login:hover img {
  filter: invert(29%) sepia(77%) saturate(749%) hue-rotate(337deg) brightness(92%) contrast(101%);
}
.login-info {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--iGray400, #898989);
  margin-bottom: 1.25rem;
  margin-top: 0;
  text-align: center;
}
.login-info img {
  width: 1rem;
  height: 1rem;
}
.login-btn.register {
  height: 2rem;
  background: var(--White);
  color: var(--iGray500);
  border: 1px solid var(--iGray50);
  border-radius: 0.25rem !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 1;
  margin-bottom: 0;
}
.login-btn.register:hover {
  color: var(--iGray700);
  border-color: var(--iGray100);
}
.login-btn.register img {
  width: 1rem ;
  height: 1rem ;
  opacity: .75;
}
.login-btn.register:hover img {
  opacity: 1;
}
.validation-message {
  font-size: .675rem;
  color: var(--iRed700);
  margin-left: .5rem;
}
.checkbox-label {
  font-size: 0.8125rem;
  color: var(--iGray500);
  font-weight: 400;
}
.form-check {
    min-height: 1.25rem;
    display: flex;
    align-items: center;
}
.form-check-label {
  font-size: 0.8125rem;
  color: var(--secondary-color);
  white-space: nowrap;
}
.form-check-input:checked {
    background-color: var(--iRed700);
    border-color: var(--iRed700);
    color: var(--Black);
}
.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.125rem;
  border: 1px solid var(--input-border);
  margin-right: 0.5rem;
  outline: none;
}

.login-section__find-btn {
  font-size: 0.75rem;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}
.login-section__login-btn {
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--btn-radius) !important;
  background: var(--primary-color) !important;
  color: #FEF9F9 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
}
.login-section__trial-btn {
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--btn-radius) !important;
  border: 1px solid #F8E1E1 !important;
  color: var(--primary-color) !important;
  background: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
}
.login-section__register-btn {
  font-size: 0.875rem;
  font-weight: 400;
  border-radius: 0.25rem !important;
  border: 1px solid #E5E5E5 !important;
  color: var(--secondary-color) !important;
  background: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
}
.login-info {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  color: var(--iGray400);
  margin-bottom: 1.25rem;
  margin-top: 0;
  text-align: center;
}
.login-info img {
  width: 1rem;
  height: 1rem;
}

/* LabelDesign 헤더 스타일 (Figma 디자인 반영) */
.labeldoc-header {
  width: 100vw;
  min-width: 1024px;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 100;
  background: var(--White);
  border-bottom: 1px solid var(--iGray50);
  padding: 0 2rem;
  min-height: 3.75rem;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(44,44,44,0.04);
}
.header__container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.header__logo img.logo-lg {
  display: block;
  height: 2.625rem;
}
.header__logo img.logo-sm {
  display: none;
  height: 2rem;
}
@media screen and (max-width: 1024px) {
  .header__logo img.logo-lg {
  display: none;
}
  .header__logo img.logo-sm {
  display: block;
}
}
.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.header__tabs {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header__tab {
  position: relative;
}
.header__tab-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--iGray500);
  text-decoration: none;
  border-radius: 1.5rem;
  transition: background-color 0.2s, color 0.2s;
}
.header__tab-link:hover {
  color: var(--iGray700);
  background-color: var(--iGray05);
}
.header__tab.active .header__tab-link {
  background-color: var(--iRed700);
  color: var(--White);
}
.header__tab-icon {
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.7;
}
.header__tab.active .header__tab-icon {
  opacity: 1;
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(103%) contrast(103%);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header__help-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--iGray500);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background-color 0.2s, color 0.2s;
}
.header__help-btn:hover {
  color: var(--iGray700);
  background-color: var(--iGray05);
}
.header__help-btn img {
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.7;
}
.header__help-btn:hover img {
  opacity: 1;
}
.header__nav {
  display: flex;
    align-content: baseline;
    gap: 2rem !important;
    margin-bottom: -.0625rem;
    margin-top: 1.25rem;
}
.main-nav-link img {
  width: 1.5rem;
  height: 1.5rem;
  opacity: .57;
}
.main-nav-link:hover img {
  opacity: 1;
}
.main-nav-link:active img, .main-nav-link.active img {
  filter: invert(32%) sepia(77%) saturate(747%) hue-rotate(325deg) brightness(91%) contrast(97%);
}
.main-nav-link {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: .5rem 0;
  gap: .75rem;
  width: auto;
  border-bottom: 1px solid transparent;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: var(--iGray500);
  transition: border-bottom 0.18s, color 0.18s;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav-link:hover {
  color: var(--Black);
}
.main-nav-link.active {
  border-bottom: 1px solid var(--iRed700);
  color: var(--iRed700);
}
.header__tabs {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header__tab {
  font-size: 1.125rem;
  font-weight: 500;
  color: #636363;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.header__tab.active {
  background: var(--primary-color);
  color: #fff;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* 2차 메뉴(상단 탭 아래)도 상단에 고정 */
.labeldoc-menu {
  width: 100vw;
  max-width: 100vw;
  position: sticky;
  top: 4.5rem;
  left: 0;
  z-index: 99;
  background: var(--primary-bg);
  border-bottom: 1px solid #F0F0F0;
  padding: 0 2rem;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
}
.labeldoc-menu__tabs {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.labeldoc-menu__tab {
  font-size: 1rem;
  font-weight: 500;
  color: #636363;
  padding: 0.5rem 1.25rem;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.labeldoc-menu__tab.active {
  background: var(--primary-color);
  color: #fff;
}

/* 본문 컨텐츠는 상단 메뉴 높이만큼 마진 추가 */
.main-content, .labeldoc-main {
  display: flex;
  height: calc(100vh - 60px); /* Match design-toolbar height */
  margin-top: 60px; /* Offset for fixed header */
}

.right-sidebar {
  flex-shrink: 0;
  width: 17.5rem; /* 280px */
  background-color: var(--White);
  border-left: 1px solid var(--iGray50);
  padding: 1rem;
  overflow-y: auto;
  height: 100%; /* Fill the height of .labeldoc-main */
}
/* 사이드바 컨테이너 - Figma Frame 126 */
/* print-sidebar: fill vertical space, fixed to right, below header */
.print-sidebar {
    width: 25rem;
    height: calc(100vh - 60px);
    position: fixed;
    right: 0;
    top: 60px;
    background: var(--White);
    border-left: 1px solid var(--iGray50);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

/* 네비게이션 (상단 고정) */
.sidebar-navigation {
    position: relative;
    width: 100%;
    height: 50px;
    border-bottom: 1px solid var(--iGray50);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    z-index: 10;
    box-sizing: border-box;
}

.sidebar-navigation-tabs {
    display: flex;
    align-items: stretch;
    height: 50px;
}

.navigation-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 1px solid transparent;
    color: var(--iGray500);
    transition: all 0.2s ease;
}
.navigation-tab:hover {
    color: var(--Black);
}

.navigation-tab.active,
.navigation-tab.active:hover {
    color: var(--iRed700);
    border-bottom-color: var(--iRed700);
}



.sidebar-close-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    padding: 4px;
    background-color: transparent;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease;
}

.sidebar-close-btn:hover {
    background-color: #f5f5f5;
}

.sidebar-close-btn img {
    width: 24px;
    height: 24px;
    opacity: 0.6;
}

/* 메인 콘텐츠 영역 */
.sidebar-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 스크롤 컨테이너 */
.sidebar-scroll-container {
    flex: 1;
    overflow-y: scroll;
    padding-bottom: 6rem;
}
.text-danger {
  color: var(--iRed700) !important;
  white-space: nowrap;
}
/* 공통 버튼 스타일 */
.btn, .btn-light {
  font-family: var(--font-main);
  font-weight: 500;
}

/* 공통 아이콘 버튼 스타일 */
.icon-btn, .shape-btn {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-lighter);
  border-radius: 10px;
  background: var(--White);
  margin: 4px;
  transition: border-color 0.2s, background 0.2s;
  box-shadow: none;
  padding: 0;
  cursor: pointer;
}

.icon-btn.selected, .shape-btn.selected {
  border-color: #2563ff;
  background: #eef4ff;
}

.icon-btn:hover:not(.selected), .shape-btn:hover:not(.selected) {
  border-color: var(--iGray300);
  background: #f5f7fa;
}

.icon-btn img, .shape-btn img {
  width: 32px;
  height: 32px;
}
/* 공통 인풋 스타일 */
input.form-control, .form-control {
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--iGray700);
  border-radius: 0.25rem;
  border: 1px solid var(--iGray100);
  background: #fff;
  font-weight: 500;
}
input.form-control:focus, .form-control:focus {
  border: 1px solid var(--iGray700);
  outline: none !important;
  box-shadow: none !important;
}
input.form-control::placeholder, .form-control::placeholder {
  color: var(--iGray200);
  font-weight: 400;
}

/* 공통 체크박스, 라디오 버튼 스타일 */
input[type="checkbox"] {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--iGray100);
  border-radius: 2px;
  background:var(--White);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  position: relative;
  cursor: pointer;
}
input[type="checkbox"] {
  position: relative;
}
input[type="checkbox"]::after {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 1rem;
  background: url('/images/icon-check.svg') center center no-repeat;
  background-size: 1rem 1rem;
  filter: invert(91%) sepia(6%) saturate(0%) hue-rotate(179deg) brightness(95%) contrast(92%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
input[type="checkbox"]:checked {
  background: var(--iRed700, #D0383A);
  border: 1px solid var(--iRed700, #D0383A);
}
input[type="checkbox"]:checked::after {
  background: url('/images/icon-check.svg') center center no-repeat;
  background-size: 1rem 1rem;
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(103%) contrast(103%);
}
input[type="checkbox"]:focus {
  box-shadow: none !important;
}
input[type="radio"] {
  border-radius: 50%;
}
input[type="radio"]:focus {
  box-shadow: none !important;
}
input[type="radio"]:checked::after {
  content: '';
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 0.25rem;
  top: 0.25rem;
}
.btn-icon {
  width: 1rem;
  height: 1rem;
  text-decoration: none;
  padding: 0;
  line-height: 1;
  border: none;
  background: transparent;
}
.btn-icon:hover, .btn-icon:focus{
  border: none;
}
.btn-icon img {
  width: 1rem;
  height: 1rem;
  opacity: 0.5;
}
.btn-icon:hover img {
  opacity: 1;
}
.btn-icon:active, .btn-icon.active {
  filter: invert(33%) sepia(93%) saturate(633%) hue-rotate(341deg) brightness(95%) contrast(101%);
}
.btn-link {
  color: var(--iGray500);
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  --bs-btn-disabled-color: var(--placeholder);
}
.btn-link.text-danger {
  color: var(--iRed500) !important;
}
.btn-link.text-danger span:after  {
 background-color: var(--iRed700);
}
.btn-link.text-danger:hover span {
  color: var(--iRed700);
}
.btn-link span {
  position: relative;
  white-space: nowrap;
  font-size: .75rem;
  line-height: 1rem;
}
.btn-link span:after {
  content: "";
  display: block;
  position: absolute;
  bottom: -.125rem;
  right: 100%;
  height: .0625rem;
  width: 0;
  background-color: var(--Black);
  -webkit-transition: width .3s ease, right 0s linear .3s;
  transition: width .3s ease, right 0s linear .3s
}
.btn-link:hover span:after {
  right: 0;
  width: 100%;
  -webkit-transition: width .3s ease, right .3s ease;
  transition: width .3s ease, right .3s ease
}
.btn-link:hover span {
  color: var(--Black);
}
.btn-link img {
  width: 1rem;
  height: 1rem;
  filter: invert(41%) sepia(0%) saturate(0%) hue-rotate(179deg) brightness(92%) contrast(89%);
}
.btn-link:hover img {
  filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}
.icon-link {
padding: 8px;
border-radius: 24px;
}
.icon-link:hover {
  background: var(--iGray05);
}
.icon-link:hover img {
  margin: auto;
  filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}
.icon-link:active, .icon-link.active {
  background: var(--iRed700);
}
.icon-link:active img, .icon-link.active img {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(103%) contrast(103%);
}
.btn-nav-submenu {
  background: var(--iGray05);
  padding: .75rem 1rem;
  color: var(--iGray500);
  border-radius: .5rem !important;
  font-size: .875rem !important;
  line-height: 1;
  font-weight: 500;
  border: none;
}
.btn-nav-submenu img {
  width: 1rem;
  height: 1rem;
  margin-right: .75rem;
  filter: invert(38%) sepia(0%) saturate(0%) hue-rotate(179deg) brightness(97%) contrast(92%);
}
.btn-nav-submenu:hover, .btn-nav-submenu:focus {
  background: var(--iGray25);
  color: var(--Black);
}
.btn-nav-submenu:hover img, .btn-nav-submenu:focus img {
  filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}
.btn-nav-submenu:active, .btn-nav-submenu.active {
  background: var(--iRed700);
  color: var(--White);
}
.btn-nav-submenu:active img, .btn-nav-submenu.active img {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(103%) contrast(103%);
}
h1:focus {
  outline: none;
}
h5 {
  font-family: var(--font-main);
  font-style: normal;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.5;
}

p {
  font-size: .875rem;
  line-height: 1.3125rem;
}
.p-small {
  font-size: 0.75rem;
  line-height: 1.125rem;
}

.loading-progress {
  position: relative;
  display: block;
  width: 8rem;
  height: 8rem;
  margin: 20vh auto 1rem auto;
}

.loading-progress circle {
  fill: none;
  stroke: var(--iGray-200);
  stroke-width: 0.25rem;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}

.loading-progress circle:last-child {
  stroke: var(--iGray-700);
  stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
  transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text {
  position: absolute;
  text-align: center;
  font-weight: bold;
  width: 100%;
  top: 56px;
}

.loading-progress-text:after {
  content: var(--blazor-load-percentage-text, "Loading");
}
#blazor-error-ui {
  background: rgba(33,35,40,.7);
  backdrop-filter: blur(.5rem);
  color: #fff;
  font-size: .75rem;
  padding: 1rem;
  width: 13.125rem;
  border-radius: .5rem;
  position: fixed;
  left: 12px;
  bottom: 12px;
  display: none;
  z-index: 1000;
}
#blazor-error-ui a {
  color: #fff;
}
#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: .75rem;
  top: 1rem;
}

.user-name {
  display: flex;
  align-items: center;
  font-size: 1.125rem; /* 18px */
  font-family: var(--font-main);
  font-weight: 500;
  color: #34383B;
}
.user-name__id {
  font-weight: 500;
  color: #34383B;
  font-family: var(--font-main);
  font-size: 1.125rem;
}
.user-name__suffix {
  font-weight: 400;
  color: rgba(52, 56, 59, 0.6);
  font-family: var(--font-main);
  font-size: 1.125rem;
  margin-left: 0.1em;
}

/* 드롭다운 토글 after 아이콘을 커스텀 SVG로 변경 */
.dropdown-toggle::after {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background: url('/images/icon-arrow-down.svg') no-repeat center center;
  background-size: 1rem 1rem;
  border: none !important
}

/* LabelDocumentOpen Figma 스타일 반영 */

.mydesign-toolbar {
  display: flex;
  justify-content: space-between;
  row-gap: .5rem;
  background-color: var(--White);
  align-items: center;
  padding: .5rem 2rem;
  position: sticky;
  top:61px;
  z-index: 15;
}

.toolbar__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--iGray700);
  margin: 0;
  letter-spacing: -0.01em;
}

.toolbar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toolbar__dev-duplicate .input-group {
  min-width: 14rem;
}

.toolbar__dev-duplicate .form-control {
  border-radius: 0.5rem 0 0 0.5rem;
  font-size: 1rem;
  background: var(--White);
  border: 1px solid var(--border);
  color: var(--iGray700);
  font-family: var(--font-main);
}

.toolbar__dev-duplicate .btn {
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--iRed700);
  color: var(--White);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
  transition: background 0.18s;
}
.toolbar__dev-duplicate .btn:hover {
  background: var(--iRed600);
}

.toolbar__dev-duplicate img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.labeldoc-open__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  row-gap: 2rem;;
}

.item-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(20% - 1rem), 1fr));
  grid-gap: 2rem 1rem;
}

.item-list-2column {
  grid-template-columns: repeat(auto-fill, minmax(calc(40% - 1rem), 1fr));
  grid-gap: 1rem 0.5rem;
}

.icons-wrap {
  height: calc(100vh - 3.5rem);
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 0 0.5rem;
}
.themes-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: scroll;
  overflow-x: hidden;
  height: 100%;
}
.icons-wrap::-webkit-scrollbar,
.themes-wrap::-webkit-scrollbar,
.item-wrap::-webkit-scrollbar,
.layers-contents::-webkit-scrollbar,
.quantity-popup::-webkit-scrollbar {
    width: .5rem;
}
.icons-wrap::-webkit-scrollbar-thumb,
.themes-wrap::-webkit-scrollbar-thumb,
.item-wrap::-webkit-scrollbar-thumb,
.layers-contents::-webkit-scrollbar-thumb,
.quantity-popup::-webkit-scrollbar-thumb {
    background: rgba(229, 229, 229);
    border-radius: .5rem;
}

.icons-wrap::-webkit-scrollbar-track,
.themes-wrap::-webkit-scrollbar-track,
.item-wrap::-webkit-scrollbar-track,
.layers-contents::-webkit-scrollbar-track,
.quantity-popup::-webkit-scrollbar-track {
    background: transparent !important;
}


.icon-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));;
  grid-gap: 1rem 0.25rem;
}
.icon-list .btn {
  height: 55px;
  padding: 0.25rem;
}
.icon-list .btn svg {
  height: 2rem;
}

.label-icon {
    text-align: center;
    font-size: 0.6875rem;
    color: var(--iGray300);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (min-width: 1400px) {
  .item-list {
  grid-template-columns: repeat(auto-fill, minmax(calc(16.6% - 1rem), 1fr));
}
.item-list-2column {
  grid-template-columns: repeat(auto-fill, minmax(calc(33.2% - 1rem), 1fr));
}
}

@media screen and (max-width: 1024px) {
   body {
    width: 1024px;
  }
  .item-list {
    grid-template-columns: repeat(auto-fill, minmax(calc(25% - 1rem), 1fr));
  }
  .item-list-2column {
  grid-template-columns: repeat(auto-fill, minmax(calc(50% - 1rem), 1fr));
}
  .design-toolbar,
  .labeldoc-main,
  .print-main {
    width: 1024px;
  }

}
.item-list-container {
  height: auto;
  width: 100%;
}
.item-card {
  position: relative;
  background: var(--iGray05);
  border-radius: .5rem;
  border: 1px solid transparent;
  width: 100%;
}
.item-card::after {
  content: '';
  display: block;
  padding-top: 100%;
}
.item-card:hover, .item-card.selected {
  border: 1px solid var(--iRed200);
  background-color: var(--iRed05);
  cursor: pointer;
}

.item-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .75rem;
}
.item-list-title {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--Black);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.item-list-title .unit {
  font-size: .8125rem;
  font-weight: 300;
  color: var(--iGray300);
  margin-left: 0.25rem;
}
.item-card-title {
  font-size: 1.25rem;
  color: #222;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  text-align: center;
}

.mydesign-card .share-btn {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.mydesign-card .share-btn img {
  width: 1.5rem;
  height: 1.5rem;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.mydesign-card .share-btn:hover img {
  opacity: 1;
}
.mydesign-card .hashtag-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}
.mydesign-card .hashtag {
  font-size: 1rem;
  color: #636363;
  font-weight: 500;
  opacity: 0.85;
}
@media (max-width: 900px) {
  .mydesign-card {
    padding: 1.5rem 0.5rem 1rem 0.5rem;
    min-height: 220px;
  }
  .mydesign-card__img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
  }
  .mydesign-card__title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
}
.alert {
  display: flex;
  align-items: start;
}
.alert p {
  margin: 0;
}
.alert img {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.75rem;
}
.alert-secondary {
    --bs-alert-color: var(--Black);
    --bs-alert-bg: var(--iGray05);
    --bs-alert-border-color: none;
    --bs-alert-link-color: var(--iRed700);
}
.alert-danger {
    --bs-alert-color: var(--iRed700);
    --bs-alert-bg: var(--iRed05);
    --bs-alert-border-color: none;
    --bs-alert-link-color: var(--iRed700);
}
.alert-danger img {
  filter: invert(33%) sepia(93%) saturate(633%) hue-rotate(341deg) brightness(95%) contrast(101%);
}

/* 검색창 Figma 스타일 */
.searchbox {
  display: flex;
  align-items: center;
  background: var(--White);
  border: 1px solid var(--border);
  border-radius: .5rem;
  padding: 0.75rem 1rem;
  width: 100%;
}
.searchbox-sm {
  display: flex;
  align-items: center;
  background: var(--White);
  border: 1px solid var(--border);
  border-radius: .25rem;
  padding: 0.375rem;
  min-width: 10rem;
}
.searchbox-input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: .75rem !important;
  line-height: 1.125rem;
  color: var(--iGray100);
  padding: 0;
  border-radius: 0 !important;
}
.searchbox-input:focus {
  border: none !important;
}
.searchbox-input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}
.searchbox-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: 1rem;
  line-height: 1;
}
.searchbox-btn img {
  width: 1rem;
  height: 1rem;
  opacity: 0.6;
}
.searchbox-btn:hover img {
  opacity: 1;
}
.result-search {
  color: var(--iGray500);
  white-space: nowrap;
}
.title-list {
  display: flex;
  align-items: center;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--Black);
}
.recent-specs-warp {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-bottom: 2rem;
}
.item-wrap {
  height: calc(100vh - 7rem) !important;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 1rem 2rem;
}

.recent-specs-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* Figma recent-specs-list chip 스타일 */
.spec-chip {
  min-height: 2rem;
  display: inline-block;
  background: var(--iGray05);
  border: none !important;
  color: var(--iGray500);
  font-family: var(--font-main);
  font-size: 0.875rem;
  line-height: 1;
  text-transform: uppercase !important;
  border-radius: 1.25rem;
  padding: .5rem .875rem;
  transition: border 0.15s, color 0.15s, background 0.15s;
  cursor: pointer;
  outline: none;
}
.spec-chip img {
  width: .875rem;
  height: .875rem;
  margin-right: .5rem;
  filter: invert(38%) sepia(0%) saturate(0%) hue-rotate(179deg) brightness(97%) contrast(92%);
}
.spec-chip:hover, .spec-chip:focus {
  color: var(--Black);
  background: var(--iGray25);
}
.spec-chip:hover img, .spec-chip:focus img {
  filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}
.spec-chip.active {
  color: var(--iRed700);
  background: var(--iRed05);
}
.spec-chip.active img {
  filter: invert(32%) sepia(77%) saturate(747%) hue-rotate(325deg) brightness(91%) contrast(97%);
}

/* LabelDesign 좌측 사이드바 스타일 (Figma 디자인 반영) */
.labeldoc-main {
  display: flex;
  height: calc(100vh - 3.75rem);
}


/* 디자인 메뉴 (상단 툴바) 스타일 */
.control-box {
  background-color: var(--White);
  border-bottom: 1px solid var(--iGray50);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.design-menu {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.design-menu__item {
  margin: 0;
}

.design-menu__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  color: var(--iGray500);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.design-menu__btn:hover {
  background-color: var(--iGray05);
  color: var(--iGray700);
}

.design-menu__icon img {
  width: 1.5rem;
  height: 1.5rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.design-menu__btn:hover .design-menu__icon img {
  opacity: 1;
}

.design-menu__label {
  white-space: nowrap;
}

.nav-pills-explain {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  color: var(--iGray400);
  white-space: nowrap;
}

.labeldoc-zoom {
  text-align: center;
  font-size: 0.75rem;
  color: var(--iGray700);
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}

.labeldoc-zoom:hover {
  background-color: var(--iGray05);
}

/* 우측 사이드바 스타일 */
.right-sidebar {
  flex-shrink: 0;
  width: 17.5rem;
  background-color: var(--White);
  border-left: 1px solid var(--iGray50);
  padding: 1rem;
  overflow-y: auto;
  height: 100%;
}

/* 드롭다운 메뉴 커스텀 스타일 */
.dropdown-menu--custom {
  min-width: 12rem;
  border-radius: 0.5rem;
  border: 1px solid var(--iGray100);
  box-shadow: 0 8px 32px rgba(44,44,44,0.12);
  padding: 0.5rem 0;
  background: var(--White);
}



hr {
  margin: 0.5rem 0;
  border-color: var(--iGray100);
}

/* 캔버스 영역 스타일 */
.labeldoc-canvas {
  background-color: var(--iGray05);
  position: relative;
}

.h-canvas {
  height: calc(100% - 4rem);
}

.user-manage-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: .8125rem;
  color: var(--iGray700);
  border: none !important
}

.user-manage-link:hover {
  background-color: transparent !important;
}
.dropdown-toggle::after {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background: url('/images/icon-arrow-down.svg') no-repeat center center;
  background-size: 1rem 1rem;
  border: none !important;
}

.user-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
}
.user-dropdown-menu {
  min-width: 8rem;
  border-radius: 0.5rem;
  box-shadow: 0px 0px 11px rgba(0, 0, 0, 0.15);
  --bs-dropdown-border-color: transparent;
  padding: 0.25rem;
  background: var(--White);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--iGray700);
  padding: 0.5rem;
  transition: background-color 0.2s;
}
.dropdown-divider {
    margin: .25rem 0;
    border-top: 1px dashed var(--iGray50);
}
.user-dropdown-item:hover {
  background-color: var(--iRed05);
  color: var(--iRed700);
  font-weight: 600;
}

.user-dropdown-item img {
  width: 1rem;
  height: 1rem;
  opacity: 0.5;
  filter: invert(17%) sepia(6%) saturate(1112%) hue-rotate(169deg) brightness(97%) contrast(92%);
}
.user-dropdown-item:hover img {
  opacity: 1;
  filter: invert(32%) sepia(77%) saturate(747%) hue-rotate(325deg) brightness(91%) contrast(97%);
}

/* 버튼 그룹 스타일 개선 */

.btn-group .btn img {
  width: 1rem;
  height: 1rem;
  opacity: 0.57;
}

.btn-outline-danger {
    --bs-btn-color: var(--iRed700);
    --bs-btn-border-color: var(--iGray50);
    --bs-btn-hover-bg: var(--iGray05);
    --bs-btn-hover-border-color: var(--iGray50);
    --bs-btn-active-bg: var(--iRed700);
    --bs-btn-active-border-color: var(--iRed700);
}
.btn-check:checked+.btn-outline-danger img,
.btn-outline-danger:active img,
.btn-outline-danger.active img,
.btn-outline-danger:active svg,
.btn-outline-danger.active svg,
.btn-outline-danger.show img{
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    opacity: 1;
}

.btn-group-sm>.btn, .btn-sm {
    --bs-btn-border-radius: 0.25rem !important;
    padding: 0.4375rem;
    line-height: 1;
}

.btn-group .btn:hover img {
  opacity: 1;
}

.btn-caption {
  width: 100%;
  text-align: center;
  color: var(--iGray500);
  font-size: 0.6875rem;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.btn-caption img {
  width: 1rem;
  height: 1rem;
  margin-right: 0.25rem;
}

.form-control-sm {
  font-size: 0.75rem !important;
  line-height: 1.125rem;
  padding: 0.375rem;
  border-radius: .25rem !important;
}
.form-control-lg {
  font-size: 0.875rem !important;
  line-height: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: .5rem !important;
}
/* LabelDesign 캔버스 관련 스타일 (LabelDesign.razor에서 이동) */
.labeldoc-canvas-container {
    position: relative;
    overflow: hidden;
}

/* Design Toolbar Styles (Figma Design) - Merged from assets/css/app.css */
.design-toolbar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--iGray50);
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 3.75rem;
}

.design-toolbar__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 100%;
    width: 100%;
}

.design-toolbar__logo {
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    background: url('/images/logo-labelspace-sm.svg') no-repeat 0 0;
    background-size: contain;
    transition: all 0.15s ease;
}
.design-toolbar__logo:hover{
   background: url('/images/icon-nav-labeldoc.svg') no-repeat 0 0;
}

/* Base button styling */
.btn-setting {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1.25rem;
    padding: .5rem;
    transition: all 0.15s ease;
    opacity: 0.57;
}

.btn-setting:hover {
    background-color: var(--iGray05);
    opacity: 1;
}
.btn-setting:focus, .btn-setting:active {
    background-color: var(--iRed700);
    opacity: 1;
}
.btn-setting:focus img {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}


/* Undo/Redo buttons - rectangular style with labels */
.btn-with-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    border: none;
    cursor: pointer;
    padding: .5rem;
    min-height: auto;
    opacity: 0.57;
    background: transparent;
}


.btn-with-label:hover {
  background-color: transparent;
    opacity: 1;
}
.btn-with-label:focus,
.btn-with-label:enabled:active {
  background-color: transparent;
  color: var(--iRed700);
}
.btn-with-label:focus img,
.btn-with-label:enabled:active img {
    filter: invert(33%) sepia(93%) saturate(633%) hue-rotate(341deg) brightness(95%) contrast(101%);
}

.btn-with-label:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-with-label img {
    width: 24px;
    height: 24px;
}
.btn-with-label small {
  white-space: nowrap;
}

.design-toolbar__divider {
    width: 0px;
    height: 30px;
    border-left: 1px solid var(--iGray50);
    margin: 0;
}

/* Primary button styling */
.design-toolbar__btn--primary {
    background-color: #D0383A;
    color: #FEF9F9;
    opacity: 1;
    padding: 6px 12px;
    border-radius: 4px;
    width: 140px;
    height: 32px;
    font-size: 14px;
    font-weight: 400;
    gap: 8px;
    flex-direction: row;
}

.design-toolbar__btn--primary:hover {
    background-color: #A91214;
}

.design-toolbar__btn--primary .design-toolbar__label {
    color: #FEF9F9;
    font-size: 14px;
    font-weight: 400;
}

/* Zoom Controls - Center Section */
.zoom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-left: 16px;
}

.zoom-controls__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    opacity: 0.57;
    background: transparent;
}

.zoom-controls__btn:hover {
    opacity: 1;
}

.zoom-controls__btn:focus img,
.zoom-controls__btn:active img{
  filter: invert(33%) sepia(93%) saturate(633%) hue-rotate(341deg) brightness(95%) contrast(101%);
}
.zoom-controls__btn img {
    width: 1.5rem;
    height: 1.5rem;
}

.zoom-controls__input {
    min-width: 60px;
    width: 60px;
    height: 32px;
    padding: 8px;
    text-align: center;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    font-family: var(--font-main);
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

/* Right Section - Download, Auto-save, Print Order Buttons */
.design-toolbar__right .design-toolbar__btn {
    border-radius: 0;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0.57;
}

.design-toolbar__right .design-toolbar__btn:hover {
    opacity: 1;
}

/* Auto-save Toggle Switch */
.toggle-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.toggle-switch-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: #636363;
    font-family: var(--font-main);
}

.toggle-switch {
    position: relative;
    width: 2.25rem;
    height: 1.25rem;
    background-color: var(--iGray200);
    border-radius: 0.625rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.toggle-switch.active {
    background-color: #D0383A;
}

.toggle-switch-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: #FFFFFF;
    border-radius: 50%;
    transition: transform 0.15s ease;
}

.toggle-switch.active .toggle-switch-slider {
    transform: translateX(1rem);
}

/* Alternative toggle switch styling */
.auto-save-toggle__input {
    appearance: none;
    -webkit-appearance: none;
    width: 36px;
    height: 20px;
    background: #D0D0D0;
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 0;
    padding: 2px;
}

.auto-save-toggle__input::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FFFFFF;
    left: 2px;
    top: 2px;
    transition: transform 0.2s ease;
}

.auto-save-toggle__input:checked {
    background: #D0383A;
}

.auto-save-toggle__input:checked::before {
    transform: translateX(16px);
}

.auto-save-toggle__text {
    user-select: none;
}


.design-toolbar__right .design-toolbar__btn img {
    width: 24px;
    height: 24px;
}

/* Download dropdown styling */
.design-toolbar__right .dropdown {
    display: flex;
    align-items: center;
}

.design-toolbar__right .dropdown .design-toolbar__btn {
    width: 97px;
    height: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 1;
    padding: 0;
}

.design-toolbar__right .dropdown .design-toolbar__label {
    font-size: 13px;
    font-weight: 400;
    color: #2F3336;
}

/* Responsive Design */
@media (max-width: 768px) {
    .design-toolbar__center {
        display: none;
    }

    .design-toolbar__label {
        display: none;
    }

    .auto-save-toggle__text {
        display: none;
    }
}

@media (max-width: 480px) {
    .design-toolbar {
        padding: 0 0.5rem;
    }

    .design-toolbar__divider {
        display: none;
    }
}

/* Print 페이지 - 설정 팝업 스타일 */
.settings-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-popup {
  background: var(--White);
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 28rem;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.settings-popup__header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid var(--iGray100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-popup__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--iGray700);
}

.settings-popup__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-popup__pin-btn,
.settings-popup__close-btn {
  background: transparent;
  border: none;
  padding: 0.375rem;
  border-radius: 0.375rem;
  cursor: pointer;
  opacity: 0.7;
}

.settings-popup__pin-btn:hover,
.settings-popup__close-btn:hover {
  opacity: 1;
}

.settings-popup__pin-btn.is-pinned {
  background-color: var(--iRed05);
}

.settings-popup__pin-btn img,
.settings-popup__close-btn img {
  width: 1rem;
  height: 1rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.settings-popup__pin-btn:hover img,
.settings-popup__close-btn:hover img {
  opacity: 1;
}

.settings-popup__pin-btn.is-pinned img {
  filter: invert(32%) sepia(77%) saturate(747%) hue-rotate(325deg) brightness(91%) contrast(97%);
  opacity: 1;
}

.settings-popup__content {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.print-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.print-option {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.print-option__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--iGray700);
  margin: 0;
}

.print-option__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.print-option__checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--iGray600);
}

.print-option__checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.print-option__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.print-option__input {
  width: 5rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--iGray100);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  text-align: center;
  background: var(--White);
  color: var(--iGray700);
}

.print-option__input:focus {
  border-color: var(--iRed700);
  outline: none;
  box-shadow: 0 0 0 2px rgba(208, 56, 58, 0.1);
}

.print-option__unit {
  font-size: 0.875rem;
  color: var(--iGray500);
  min-width: 1.5rem;
}

.print-option__btn {
  background: var(--iGray05);
  border: 1px solid var(--iGray100);
  border-radius: 0.375rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--iGray600);
}

.print-option__btn:hover {
  background: var(--iGray25);
  border-color: var(--iGray200);
  color: var(--iGray700);
}

.print-option__btn:active {
  background: var(--iGray50);
}

.print-option__reset-btn {
  background: var(--iRed05);
  border: 1px solid var(--iRed200);
  color: var(--iRed700);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.print-option__reset-btn:hover {
  background: var(--iRed100);
  border-color: var(--iRed300);
  color: var(--iRed800);
}

/* 인쇄 설정 섹션별 스타일 */
.print-settings-section {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--iGray50);
}

.print-settings-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.print-settings-section__title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--iGray500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* 설정 팝업 애니메이션 */
.settings-popup-overlay {
  animation: fadeIn 0.2s ease-out;
}

.settings-popup {
  animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 설정 팝업 내부 섹션들 */
.adjustment-section,
.spacing-section {
  margin-bottom: 1.5rem;
}

.adjustment-section:last-child,
.spacing-section:last-child {
  margin-bottom: 0;
}

.adjustment-section__title,
.spacing-section__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--iGray700);
  margin: 0 0 1rem 0;
}

.adjustment-controls,
.spacing-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.adjustment-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.adjustment-label {
  font-size: 0.875rem;
  color: var(--iGray600);
  min-width: 5rem;
  flex-shrink: 0;
}

.adjustment-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.radio-group input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.radio-group label {
  font-size: 0.875rem;
  color: var(--iGray600);
  cursor: pointer;
  white-space: nowrap;
}

.adjustment-input {
  width: 4rem;
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--iGray100);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  text-align: center;
  background: var(--White);
  color: var(--iGray700);
}

.adjustment-input:focus {
  border-color: var(--iRed700);
  outline: none;
  box-shadow: 0 0 0 2px rgba(208, 56, 58, 0.1);
}

.reset-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--iGray100);
}

.reset-btn {
  background: var(--iGray05);
  border: 1px solid var(--iGray200);
  color: var(--iGray700);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}

.reset-btn:hover {
  background: var(--iGray25);
  border-color: var(--iGray300);
}

.reset-btn img {
  width: 1rem;
  height: 1rem;
  opacity: 0.7;
}

/* ==============================================
   LabelPrint Component Styles - Figma Design
   ============================================== */

/* Print Header */
.print-header {
  height: 60px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.print-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.print-header__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.print-header__logo img {
  height: 24px;
}

.print-header__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.print-header__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.print-header__title {
  font-weight: 600;
  font-size: 16px;
  color: #111827;
}

.print-header__divider {
  width: 1px;
  height: 12px;
  background: #d1d5db;
}

.print-header__subtitle {
  font-size: 14px;
  color: #6b7280;
}

.print-header__desc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #9ca3af;
}

.print-header__zoom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.zoom-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-btn:hover {
  background: #f3f4f6;
}

.zoom-value {
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.zoom-value:hover {
  background: #f3f4f6;
}

.print-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.print-header__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 6px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.print-header__btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.print-header__btn--primary {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
}

.print-header__btn--primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.property-color-input {
    width: 100%;
    height: 2rem;
    border-radius: 0.25rem;
    border: 1px solid var(--iGray100);
    padding: 0;
}

.form-select {
  line-height: 1;
}
.form-select:focus {
    border-color: var(--iRed700);
    box-shadow: none !important;
    outline: none !important;
}
.form-select-md {
    padding-top: .5rem;
    padding-bottom: .5rem;
    font-size: .875rem;
    border-radius: 0.25rem;
}
.form-select-sm {
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    font-size: .75rem;
    line-height: 1.125rem;
    border-radius: .25rem;
    background-position: right center;
}
.modal {
  background-color: rgba(0, 0, 0, 0.5);
  --bs-modal-width: 550px;
}
.modal-sm {
  --bs-modal-width: 350px;
}

.modal-content {
  border-radius: 1rem !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden;
  width: 100%;
}

.modal-header {
  border-bottom: 1px solid var(--iGray50);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}


.modal-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--iGray700);
  width: 100%;
}
.modal-title:focus {
  outline-width: thin;
  outline-style: dotted;
  outline-color: var(--iRed500);
}

.modal-subtitle {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #636363;
  margin: 0;
}


.modal-body {
  padding: 2rem;
}

.modal-body_content {
  display: flex;
  gap: 1.5rem;
}

.preview-image {
  width: 210px;
  height: 297px;
  object-fit: contain;
}
.preview-design {
  width: 14rem;
  height: 14rem;
  background: var(--iGray05);
  border-radius: .5rem;
      padding: .5rem;
  overflow: hidden;
  position: relative;
  object-fit: contain;
}


.info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 1 auto !important;
}

.info-list__item {
  display: flex;
  align-items: center;
}

.info-list__item p {
  min-width: 7.5rem;
  margin-bottom: 0;
}
.info-list__item p.pw-100 {
  min-width: 6.25rem;
}

.infomation-wrap {
    background-color: var(--iGray05);
    border-radius: 0.5rem;
    padding: 1rem;
}
.info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.notice-label {
     flex: 1 1 auto!important;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--iGray700);
    margin-bottom: 0.5rem;
}
ul {
    font-size: 0.75rem;
    line-height: 1.125rem;
    margin: 0;
    list-style-position: outside;
    padding-left: 1rem;
    color: var(--iGray500);
}

ul {
  list-style-type: disc;
}
ul li {
    margin-bottom: 0.5rem;
}
ul > li::marker {
    font-size: 0.375rem;
}
.highlight{
    color: var(--iRed700);
   background:linear-gradient(180deg,rgba(255,255,255,0) 50%, var(--iRed50) 50%);
}

.help-icon-btn {
    width: 16px;
    height: 16px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-icon-btn img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.help-icon-btn-sm {
    width: 12px;
    height: 12px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-icon-btn-sm img {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

.help-icon-btn-sm {
    width: 16px;
    height: 16px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    opacity: 0.57;
    flex-shrink: 0;
}

.help-icon-btn-sm:hover {
    opacity: 1;
}

.help-icon-btn-sm img {
    width: 16px;
    height: 16px;
}

.modal-footer {
  padding: 1rem;
  gap: 1.5rem;
  justify-content: space-between;
}

.modal-footer .btn {
  min-width: 4.375rem;
}

.btn-outline-md {
  font-size: .875rem;
  font-weight: 400;
  line-height: 1;
  color: var(--iRed500);
  border: 1px solid var(--iRed50);
  border-radius: .25rem;
  padding: .375rem .75rem;
  display: flex;
}
.btn-outline-md img {
  filter: invert(48%) sepia(41%) saturate(749%) hue-rotate(337deg) brightness(92%) contrast(101%);
  width: 1rem;
  height: 1rem;
}

.btn-outline-md:hover,
.btn-outline-md:focus,
.btn-outline-md:active {
  color: var(--iRed700) !important;
  border-color: var(--iRed700) !important;
}

.btn-outline-md:hover img,
.btn-outline-md:focus img
.btn-outline-md:active img {
  filter: invert(32%) sepia(77%) saturate(747%) hue-rotate(325deg) brightness(91%) contrast(97%);
}

.btn-outline-sub-md {
  font-size: .875rem;
  font-weight: 400;
  line-height: 1;
  color: var(--iGray500);
  border: 1px solid var(--iGray50);
  border-radius: .25rem;
  padding: .375rem .75rem;
  display: flex;
}
.btn-outline-sub-md img {
  filter: invert(42%) sepia(0%) saturate(0%) hue-rotate(179deg) brightness(91%) contrast(85%);
  width: 1rem;
  height: 1rem;
}

.btn-outline-sub-md:hover,
.btn-outline-sub-md:focus,
.btn-outline-sub-md:active {
  color: var(--Black) !important;
  border-color: var(--iGray200) !important;
}

.btn-outline-sub-md:hover img,
.btn-outline-sub-md:focus img
.btn-outline-sub-md:active img {
  filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.btn-fill-md {
  font-size: .875rem;
  font-weight: 400;
  line-height: 1;
  color: var(--iRed05);
  background: var(--iRed700);
  border: 1px solid  var(--iRed700);
  border-radius: .25rem;
  padding: .375rem .75rem;
  display: flex;
}
.btn-fill-md img {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(99%) contrast(101%);
  width: 1rem;
  height: 1rem;
}

.btn-fill-md:hover,
.btn-fill-md:focus,
.btn-fill-md:active {
  background: var(--iRed600) !important;
  border-color: var(--iRed600) !important;
  color: var(--White) !important;
}

.btn-fill-md:hover img,
.btn-fill-md:focus img,
.btn-fill-md:active img {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(103%) contrast(103%);
}
.btn-fill-md:disabled {
  background: var(--iRed25) !important;
  border-color: var(--iRed25) !important;
  color: var(--iRed200) !important;
}
.btn-fill-md:disabled img {
  filter: invert(81%) sepia(17%) saturate(543%) hue-rotate(311deg) brightness(93%) contrast(90%);
}

.btn-fill-sub-md {
  font-size: .875rem;
  font-weight: 400;
  line-height: 1;
  color: var(--iGray05);
  background: var(--iGray700);
  border: 1px solid  var(--iGray700);
  border-radius: .25rem;
  padding: .375rem .75rem;
  display: flex;
}
.btn-fill-sub-md img {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(96%) contrast(100%);
  width: 1rem;
  height: 1rem;
}

.btn-fill-sub-md:hover,
.btn-fill-sub-md:focus,
.btn-fill-sub-md:active {
  background: var(--iGray600) !important;
  border-color: var(--iGray600) !important;
  color: var(--White) !important;
}

.btn-fill-sub-md:hover img,
.btn-fill-sub-md:focus img,
.btn-fill-sub-md:active img {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(103%) contrast(103%);
}
.bw-140 {
  width: 8.75rem;
   min-width: 8.75rem;
}

.offcanvas {
    color: var(--iGray50);
    --bs-offcanvas-height: 20vh;
}
.offcanvas-dark {
  background-color: var(--iGray700) !important;
}
.offcanvas-start {
    width: 440px !important;
    border-right: 1px solid var(--iGray100);
    transform: translateX(-100%);
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    gap: 1rem;
}
.offcanvas-body {
    overflow-x: hidden;
    padding: 0 0.5rem;
}
.shortcut-box {
    height: 1.5rem;
    min-width: 1.5rem;
    line-height: 1.5rem;
    padding: 0 .3125rem;
    text-align: center;
    border: 1px solid var(--iGray500);
    border-radius: .125rem;
    font-size: .625rem;
}

.w-shortcut {
    width: 25% !important;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: var(--White);
    background-color: var(--iRed700);
}

/* 우측 컨트롤 버튼들 스타일 */
.nav-pills .nav-link {
  color: var(--iGray200);
  border-radius: 0.25rem;
  padding: 0.25rem 1rem;
  margin: 0 0.125rem;
  font-size: 0.8125rem;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.nav-pills .nav-link:hover {
  background: var(--iGray400);
  color: var(--iGray700);
}

.nav-pills .nav-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* Settings Popup */
.settings-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-popup {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 480px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
}

/* Figma-style popup menu */
.more-menu-popup {
  position: absolute;
  background: var(--White);
  border-radius: 0.375rem;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
  padding: 0.25rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.18s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.more-menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  font-size: 0.8125rem;
  color: var(--iGray500);
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.more-menu-item .img-wrapper {
  padding: .5rem;
  border-radius: 1rem;
  opacity: 0.7;
}
.more-menu-item .img-wrapper img {
  width: 1rem;
  height: 1rem;
}
.more-menu-item:hover {
  color: var(--Black);
}
.more-menu-item:focus, .more-menu-item:active {
  color: var(--iRed700);
}
.more-menu-item:hover .img-wrapper {
  background-color: var(--iGray05);
  opacity: 1;
}
.more-menu-item:focus .img-wrapper, .more-menu-item:active .img-wrapper {
  background-color: var(--iRed700);
  opacity: 1;
}
.more-menu-item:focus .img-wrapper img, .more-menu-item:active .img-wrapper img {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}
.more-menu-item.text-danger {
  color: #D0383A;
}
.more-menu-item.text-danger img {
  filter: invert(32%) sepia(77%) saturate(747%) hue-rotate(325deg) brightness(91%) contrast(97%);
}
.animate-fade-in {
  animation: fadeIn 0.18s;
}


/* Design Settings Popup Styles */
.design-settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1050;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 60px 0 0 20px; /* Position relative to settings button */
}

.design-settings-popup {
    background: var(--White);
    border-radius: .5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 11.25rem;
    display: flex;
    flex-direction: column;
}

.design-settings-popup .settings-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 8px 12px;
    border-bottom: none;
}

.design-settings-popup .settings-popup__title {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.design-settings-popup .settings-popup__actions {
    display: flex;
    gap: 4px;
}

.design-settings-popup .settings-popup__pin-btn.is-pinned {
    background-color: #E8F4FD;
    color: #0066CC;
}

.design-settings-popup .settings-popup__content {
    padding: .75rem;
}

.design-settings {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


.input-search {
    position: relative;
    width: 100%;
}

.input-search input {
    width: 100%;
    padding: 8px 32px 8px 8px;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 400;
    color: #636363;
    background: #FFFFFF;
    outline: none;
    transition: border-color 0.15s;
}

.input-search input:focus {
    border-color: #0066CC;
}

.input-search input::placeholder {
    color: #B6B6B6;
}

.input-search img {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.design-settings__divider {
    height: 1px;
    background-color: #E5E5E5;
    width: 100%;
    margin: 0;
}

.design-setting-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-switch-wrapper .form-switch {
    background-color: var(--iGray100);
    border-radius: 1rem;
    width: 36px;
    height: 20px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.15s;
    padding: 2px;
    display: flex;
    align-items: center;
}

.form-switch-wrapper .form-switch.active {
    background-color: #D0383A;
    justify-content: flex-end;
}

.form-switch-wrapper .form-switch .form-switch-handle {
    width: 1rem;
    height: 1rem;
    background-color: var(--White);
    border-radius: 50%;
    transition: transform 0.15s;
}

.form-switch-wrapper .form-switch.active .form-switch-handle {
    transform: translateX(1rem);
}

.design-setting-item label {
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 400;
    color: #636363;
    margin: 0;
    cursor: pointer;
    flex: 1;
}

.design-setting-item.active label {
    color: #000000;
}

.design-setting-btn {
    width: 100%;
    border-radius: 1rem;
    padding: .5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    border: none;
    font-size: 0.8125rem;
    color: var(--iGray700);
}

.design-setting-btn:hover {
    background-color: var(--iGray05);
    color: var(--Black);
}

.design-setting-btn img {
    width: 1rem;
    height: 1rem;
    opacity: 0.57;
}
.design-setting-btn:hover img {
    opacity: 1;
}

/* Template Page Styles - Following Figma Design */
.template-page__submenu-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
}

.template-page__submenu {
    display: flex;
    overflow-x: auto;
    align-items: center;
    gap: 0.5rem;
}
.template-page__submenu-nowrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.template-page__tag {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 0.5rem  0.875rem;
    height: 2rem;
    border-radius: 1.125rem;
    border: 1px solid var(--iGray50);
    background-color: var(--White);
    color: var(--iGray500);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.template-page__tag:hover {
    color: var(--Black);
    border-color: var(--iGray100);
}
.template-page__tag:active, .template-page__tag.active {
  border-color: var(--iRed200);
  color: var(--iRed700);
  background-color: var(--iRed05);
}

.tag-count {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: .75rem;
}


.template-page__container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: 100%;
}

.template-page__list-items {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 140px 32px 24px;
    width: 100%;
    overflow-y: auto;
}

.template-page__item-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 230px;
}

.template-page__item-preview {
    display: flex;
    align-items: stretch;
    padding: 12px;
    background: #F9F9F9;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-page__item-preview:hover {
    background: #F0F0F0;
    transform: translateY(-1px);
}

.template-page__title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.template-page__title {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 13px;
    line-height: 1em;
    color: #000000;
    flex: 1;
}

.item-hashtag-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.item-hashtag {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 11px;
    line-height: 1em;
    color: #636363;
    cursor: pointer;
    transition: color 0.2s ease;
}

.template-page__hashtag:hover {
    color: #D0383A;
}

.floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 12px;
    background: var(--iGray600);
    border-radius: 1.5rem;
    box-shadow: 0px 0px 11px 0px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
    opacity: 0.85;
    border: none;
}
.floating-btn img {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(103%) contrast(103%);
  opacity: 0.7;
}

.floating-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: var(--Black);
}

.floating-btn:hover img {
  opacity: 1;
}

.floating-btn:focus, .floating-btn:active {
  background: var(--iRed700);
}

.template-page__empty-state {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}


@media (max-width: 768px) {
    .template-page__item-list {
        width: calc(50% - 8px);
    }

    .floating-btn {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .template-page__item-list {
        width: 100%;
    }

    .template-page__list-items {
        gap: 12px;
    }
}

/* Complete Template Page Styles - Figma Design Implementation */
.template-page {
    width: 100%;
    height: 100vh;
    background: #FFFFFF;
    position: relative;
    font-family: var(--font-main);
}

/* Category tags submenu */
.category-count {
  font-weight: 300;
  font-size: .675rem;
}

.category-more {
    display: flex;
    align-items: center;
    height: 2rem;
    padding: 0 0.5rem;
    cursor: pointer;
    border-radius: 1rem;
}

.category-more:hover {
    background: rgba(0, 0, 0, 0.05);
}

.category-more img {
    display: block;
    width: 1rem;
    height: 1rem;
    opacity: 0.57;
}
.category-more:hover img {
  opacity: 1;
}

.template-page__submenu::-webkit-scrollbar {
    display: none;
}

/* Template grid container */
.template-page__container {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    padding-top: 120px; /* Account for fixed header and submenu */
}

.template-page__list-items {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 80px;
    justify-content: flex-start;
    min-height: calc(100vh - 140px);
}

/* Individual template item */
.template-page__item-list {
    width: 230px;
    flex-shrink: 0;
}

.template-page__item-preview {
    width: 100%;
    background: #F9F9F9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.template-page__item-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Heart icon */
.template-page__heart-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    color: #CCCCCC;
    transition: color 0.2s ease;
}

.template-page__item-preview:hover .template-page__heart-icon {
    color: #D0383A;
}

/* Template title */
.template-page__title-wrap {
    padding: 12px 16px 8px;
}

.template-page__title {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.template-page__hashtag {
    font-size: 12px;
    font-weight: 400;
    color: #666666;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1.2;
}

.template-page__hashtag:hover {
    color: #D0383A;
}

/* Empty state */
.template-page__empty-state {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

@media (max-width: 480px) {
    .template-page__item-list {
        width: 100%;
        min-width: auto;
    }

    .template-page__list-items {
        gap: 12px;
        padding: 20px 16px;
    }

    .template-page__submenu {
        gap: 8px;
        width: calc(100% - 40px);
    }



    .tag-count {
        font-size: 11px;
        padding: 1px 4px;
    }
}

/* Figma-based Search Template Interface Styles */


/* Search input container with icon and cancel */
.search-input-container {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 16px;
    width: 100%;
}

/* Search input wrapper */
.search-input-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    background: #FFFFFF;
    flex: 1;
}

/* Search input field */
.search-input {
    border: none;
    outline: none;
    width: 100%;
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.714;
    color: #000000;
    background: transparent;
}

.search-input::placeholder {
    color: #B6B6B6;
}

/* Search icon */
.search-icon {
    width: 24px;
    height: 24px;
    opacity: 0.57;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cancel button */
.search-cancel-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: #FFFFFF;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.search-cancel-btn:hover {
    opacity: 0.8;
}

.search-cancel-icon {
    width: 16px;
    height: 16px;
    opacity: 0.57;
    border-radius: 16px;
}


/* Clear all button */
.clear-all-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.clear-all-btn:hover {
    opacity: 0.8;
}

.clear-all-text {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 11px;
    line-height: 1em;
    color: #636363;
    text-align: center;
}

.clear-all-icon {
    width: 16px;
    height: 16px;
    opacity: 0.57;
    border-radius: 16px;
}

/* Tags container */
.search-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Base tag styles */
.search-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 32px;
    border-radius: 18px;
    border: 1px solid #E5E5E5;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.search-tag:hover {
    background: #F0F0F0;
    transform: translateY(-1px);
}

.search-tag--active {
    background: #D0383A;
    color: #FFFFFF;
}

.search-tag--active:hover {
    background: #B8323A;
}

.search-tag-text {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 14px;
    line-height: 1em;
    color: #636363;
}

/* Removable tag (recent tags) */
.removable-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 32px;
    border-radius: 18px;
    border: 1px solid #E5E5E5;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s;
}

.removable-tag:hover {
    border-color: #D0383A;
    box-shadow: 0 1px 3px rgba(208, 56, 58, 0.1);
}

.tag-remove-btn {
    width: 14px;
    height: 14px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.tag-remove-btn:hover {
    opacity: 0.7;
}

.tag-remove-icon {
    width: 14px;
    height: 14px;
}

/* Recommended tag styles */
.recommended-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 32px;
    border-radius: 18px;
    border: 1px solid #E5E5E5;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s;
}

.recommended-tag:hover {
    border-color: #EBABAC;
    background: #FEF9F9;
}

.recommended-tag.selected {
    background: #FEF9F9;
    border-color: #EBABAC;
}

.recommended-tag.selected .search-tag-text {
    color: #D0383A;
}

/* Recommended categories container */
.recommended-categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 800px;
}


/* Sort select styling */
.sort-select {
    padding: 8px 12px;
    border: 1px solid #D0D0D0;
    border-radius: 6px;
    background: #FFFFFF;
    font-family: var(--font-main);
    font-size: 14px;
    color: #636363;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.sort-select:hover {
    border-color: #B0B0B0;
}

.sort-select:focus {
    border-color: #D0383A;
}

/* Responsive design */
@media (max-width: 1024px) {
    .search-section-header,
    .search-tags-container,
    .recommended-categories-container,
    .shape-selection-container {
        width: 100%;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .search-input-container {
        flex-direction: column;
        gap: 12px;
    }

    .search-section-header {
        padding: 0 0 8px 0;
    }

    .shape-options-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .shape-option {
        width: 80px;
        height: 50px;
    }

    .shape-text {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .search-tags-container,
    .recommended-categories-container {
        gap: 6px;
    }

    .search-tag,
    .removable-tag,
    .recommended-tag {
        height: 28px;
        padding: 0 10px;
        font-size: 12px;
    }

    .shape-option {
        width: 70px;
        height: 45px;
    }

    .shape-icon {
        width: 20px;
        height: 20px;
    }

    .shape-text {
        font-size: 9px;
    }
}

.layers-contents {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 25vh;
    overflow: hidden;
    overflow-y: scroll;
}

.ungroup-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    line-height: 1;
    color: var(--iGray500)
}
.ungroup-file:hover {
    background: var(--iGray25);
    color: var(--Black);
}
.ungroup-file:focus,
.ungroup-file:active,
.ungroup-file.active {
    background: var(--iRed700);
    color: var(--White)
}
.ungroup-file:focus img,
.ungroup-file:active img,
.ungroup-file.active img {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}
.ungroup-file img {
  width: 1rem;
  height: 1rem;
}

/* Toast z-index override - 메뉴바나 다른 요소들보다 위에 표시되도록 설정 */
.blazored-toast-container {
    z-index: 10000 !important;
}

.blazored-toast {
    z-index: 10001 !important;
}