/* ==================== 개선된 컬러 팔레트 스타일 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard';
    scroll-behavior: smooth;
}

html{
    overflow-x: hidden; 
}

@font-face {
  font-family: 'EunSikDimiBang';
  src: url('/fonts/YydimibangBold.woff2') format('woff2'),
       url('/fonts/YydimibangBold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'KDG'; /* CSS에서 사용할 이름 */
  src: url('/fonts/KDG.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GH'; /* CSS에서 사용할 이름 */
  src: url('/fonts/GHL.woff') format('woff'),
       url('/fonts/GHR.woff') format('woff');;
  font-weight: 300;
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
    --background-color: #000000;
    --text-color: #ffffff;
    --accent-color: #01FF75;
    --accent-color-hover:#007a37;

    --secondary-color: rgba(1, 255, 117, 0.1);
    --transition: all 0.3s ease;

    /* 타이틀 */
    --title-color:#080808; 

    /* 타이틀 안의 요소 */
    --sub-bg-color: #141414;
    --sub-border-color: #272727;

    /* 그보다 더 약한 요소 */
    --semi-black :rgba(255, 255, 255, 0.05);
    --semi-black-hover : #4d4c4c77;

    
    /* 폰트 굵기 변수 */
    --font-medium: 500;
    --font-bold: 700;
    --font-black: 900;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: var(--font-medium);
    /* cursor: url('../img/coser.png') 2 2, auto; */
}

.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 0px;
}

section {
padding: 140px 0;
position: relative;
}

/* 배경 애니메이션 */
.bg-animation {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -2;
background: linear-gradient(-45deg, #000000, #001122, #000011, #112200);
background-size: 400% 400%;
animation: gradientShift 15s ease infinite;
}

.bg-particles {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
overflow: hidden;
}

.particle {
position: absolute;
width: 2px;
height: 2px;
background: #01FF75;
border-radius: 50%;
opacity: 0.3;
animation: float 20s infinite linear;
}

@keyframes gradientShift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}

@keyframes float {
0% {
    transform: translateY(100vh) translateX(0px);
    opacity: 0;
}
10% { opacity: 0.3; }
90% { opacity: 0.3; }
100% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0;
}
}



/* 펄스 애니메이션 정의 */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(1, 255, 117, 0.5);
    }
    50% {
        box-shadow: 0 0 8px rgba(1, 255, 117, 0.8);
    }
}

@keyframes titleGlow {
0% { filter: drop-shadow(0 0 20px rgba(1, 255, 117, 0.5)); }
100% { filter: drop-shadow(0 0 40px rgba(1, 255, 117, 0.8)); }
}


.color-palette-layout {
    /* display: grid; */
    /* grid-template-columns: 200px 1fr; */
    /* align-items: start; */
    display: grid;
    grid-template-columns: 1fr 2fr;  /* 왼쪽:오른쪽 = 1:2 */
    gap: 40px;
    margin-bottom: 30px;
    align-items: start;
}



.color-picker-section {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

.base-color-label {
    text-align: center;
    margin-bottom: 10px;
    font-size: 22px;
    color: #01FF75;
    font-weight: 700;
}

.studio-input-group span{
    color: var(--text-color);
}

/* 컬러 팔레트 프리뷰(베이스 컬러) 영역 */
.large-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 2px;
    outline: none;  /* 추가 */
}



.large-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 2px;
    outline: none;  /* 추가 */
}

/* 파이어폭스 */
.large-color-picker::-moz-color-swatch {
    border: none;
    border-radius: 2px;
    outline: none;  /* 추가 */
}

.large-color-picker {
    width: 400px;
    height: 200px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    padding: 0;
    border: none;  /* 이미 있지만 확실히 */
    outline: none;  /* 포커스 아웃라인 제거 */
}

.large-color-picker:hover {
    box-shadow: 0 0 20px rgba(1, 255, 117, 0.6);  /* 글로우 효과 */
}



.color-controls-section {
       display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;  /* 부모 컨테이너가 줄어들 수 있도록 */
}

.palette-type-radios {
     display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;  /* 전체 너비 사용 */
}

.studio-input-group:last-child,
.rgb-controls {
    width: 100%;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(1, 255, 117, 0.2);
}

/* 계산기 탭에서만 라디오 버튼 정렬 수정 */
#design-calculator .radio-option input[type="radio"] {
    top: 0; /* 계산기 탭에서는 top 제거 */
}

.radio-option:hover {
    background: rgba(1, 255, 117, 0.1);
    border-color: rgba(1, 255, 117, 0.4);
}

.radio-option input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(1, 255, 117, 0.5);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
    top: 10%;
}

.radio-option input[type="radio"]:checked {
    border-color: var(--accent-color);
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

.radio-option span {
    font-size: 14px;
    color: var(--text-color);
    margin-left: 5px;
}

/* 기존 컬러 입력 관련 스타일들 */
.color-input-section {
    background: rgba(255, 255, 255, 0)/* ==================== 기본 섹션 스타일 ==================== */
}

.studio-input-group:first-child {
    grid-column: 1;
}

.studio-page-section {
    padding: 140px 0;
    position: relative;
}

/* 팔레트 타입은 오른쪽 열 상단에 위치 */
.studio-input-group:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.studio-page-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(1, 255, 117, 0.05);
    border-radius: 50%;
    filter: blur(100px);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

/* 웹데모 페이지 */ 
.studio-page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    /* background: linear-gradient(135deg, #01FF75 0%, #00AAFF 100%); */
    color: white;
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    background-clip: text;
}

.studio-page-header h1 span {
    color: #01FF75;
}

.studio-page-header p {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.6;
}

/* 탭 스타일 */
/* .studio-page-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.studio-page-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
} */

.studio-page-tab:hover {
    background: rgba(1, 255, 117, 0.1);
    border-color: rgba(1, 255, 117, 0.3);
    transform: translateY(-2px);
}

.studio-page-tab.active {
    background: linear-gradient(135deg, #01FF75 0%, #00AAFF 100%);
    color: #000;
    border-color: transparent;
}

.studio-page-tab i {
    font-size: 1.1rem;
}

.page-btn-wrapper {
display: flex;
align-items: center;
gap: 10px;
justify-content: center;
margin-bottom: 40px;
flex-wrap: wrap;
}



/* 페이지 이동 버튼 */
.page-btn {
padding: 8px 16px;
border-radius: 4px;
border: 1px solid var(--accent-color);
font-size: 14px;
font-family: inherit;
color: var(--accent-color);
/* background-color: var(--background-color); */
text-decoration: none;
transition: var(--transition);
white-space: nowrap;
}

.page-btn:hover {
background-color: var(--accent-color);
border: 1px solid var(--accent-color);
color: var(--background-color);
}

.page-btn:active {
background-color: var(--accent-color);
color: var(--background-color);
}

/* 서브 페이지 이동버튼 */
.home-btn-wrapper{
display: flex;
align-items: center;
gap: 10px;
justify-content: center;
width: 600px;
flex-wrap: wrap;
margin: 30px auto;
}

.sub-page-btn-home{
padding: 8px 16px;
border-radius: 4px;
border: 1px solid var(--accent-color);
font-size: 18px;
font-family: inherit;
color: var(--accent-color);
text-decoration: none;
transition: var(--transition);
white-space: nowrap;
text-align: center;
}

.sub-page-btn-home:hover{
background-color: var(--accent-color);
border: 1px solid var(--accent-color);
color: var(--background-color);
}

/* 버튼 그리드 */
.sub-page-btn-wrapper {
display: grid;
grid-template-columns: repeat(5, minmax(180px, 1fr)); /* 최소 180px, 남으면 늘어남 */
justify-items: center;
row-gap: 10px;
column-gap: 15px;
margin: 0 auto;
margin-bottom: 40px;
width: 1000px;
}

/* 개별버튼 */
.sub-page-btn {
padding: 8px 16px;
border-radius: 4px;
border: 1px solid var(--accent-color);
font-size: 14px;
font-family: inherit;
color: var(--accent-color);
text-decoration: none;
transition: var(--transition);
white-space: nowrap;
text-align: center;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}

.sub-page-btn:hover {
background-color: var(--accent-color);
border: 1px solid var(--accent-color);
color: var(--background-color);
}

/* 활성화된 개별버튼*/
.sub-page-btn-active {
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid var(--accent-color);
    font-size: 14px;
    font-family: inherit;
    font-weight: 700;
    color: #000000;
    background: linear-gradient(135deg, #00FF75 0%, #00FF88 100%);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    text-align: center;
    width: 100%;
    box-shadow: 
        0 0 10px rgba(1, 255, 117, 0.6),
        0 4px 7px rgba(0, 0, 0, 0.3);
    position: relative;
}

.sub-page-btn-active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00FF75, #00FF88, #00FF75);
    border-radius: 6px;
    z-index: -1;
    animation: active-glow 2s ease-in-out infinite alternate;
}

.sub-page-btn-active:hover {
background: linear-gradient(135deg, #00FF88 0%, #00FF9A 100%);
color: #000000;
box-shadow: 
0 0 20px rgba(1, 255, 117, 0.8),
0 6px 15px rgba(0, 0, 0, 0.4);
}

/* 스튜디오 서브페이지 각 타이틀 스타일 */
.highlight{
  font-weight: 700;
  font-size: 18px;
  color: var(--background-color);
  background: var(--accent-color);
  padding: 12px 16px;
  border-radius: 4px;
}

/* 웹 데모 전용 스타일 */
.web-demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: calc(100vh - 200px);
    min-height: 600px;
    margin-top: 0;
    margin-bottom: 0;
}

.demo-editor-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.demo-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
}

.demo-panel-title i {
    color: #01FF75;
}

.demo-editor-tabs {
    display: flex;
    gap : 8px;
}

.demo-editor-tab {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.demo-editor-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.demo-editor-tab.active {
    background: #01FF75;
    color: #000;
    border-color: #01FF75;
}

.demo-editor {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.demo-textarea {
    width: 100%;
    height: 100%;
    background: #1e1e1e;
    border: none;
    outline: none;
    padding: 20px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
    resize: none;
    tab-size: 2;
}

.demo-textarea::-webkit-scrollbar {
    width: 8px;
}

.demo-textarea::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.demo-textarea::-webkit-scrollbar-thumb {
    background: rgba(1, 255, 117, 0.3);
    border-radius: 4px;
}

.demo-preview-panel {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.demo-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgb(255, 255, 255);
    border-radius: 4px;
}

.demo-preview-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    flex: 1;
    
}

.demo-preview-title i {
    color: #202020;
}

.demo-preview-controls {
    display: flex;
    gap: 8px;
}

.demo-control-btn {
    padding: 12px 16px;
    background:  #667eea ;
    color: white;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.demo-control-btn:nth-of-type(2) {
  background: #764ba2;
}

.demo-control-btn:hover {
    background: #4a5eb6 ;
}

.demo-control-btn:nth-of-type(2):hover {
  background: #5e3883;
}

.demo-preview {
    flex: 1;
    background: #ffffff;
    overflow: hidden;
    border-radius: 0 0 4px 4px;
}

.demo-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

/* 컨트롤 버튼들 */
.demo-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 12px;
    z-index: 100;
}

.demo-floating-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #01FF75 0%, #00AAFF 100%);
    border: none;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(1, 255, 117, 0.3);
}

.demo-floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(1, 255, 117, 0.4);
}


/* 숨김 처리 */
.studio-tab-panel {
    display: none;
}

.studio-tab-panel.active {
    display: block;
}

/* 기본 코드 스타일링 */
.demo-textarea {
    background: #1e1e1e;
    color: #d4d4d4;
}

/* HTML 문법 하이라이팅 시뮬레이션 */
.demo-textarea:focus {
    box-shadow: inset 0 0 0 2px rgba(1, 255, 117, 0.3);
}

/* ==================== 헤더 스타일 ==================== */
.studio-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.studio-page-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
}

.studio-page-header h1 span {
    color: var(--accent-color);
}

.studio-page-header p {
    font-size: 18px;
    opacity: 0.8;
}

/* ==================== 앱 다운로드 버튼 ==================== */
.studio-download-section {
    display: flex;
    justify-content: center;
    margin: 25px auto 0 auto;
    max-width: 1200px;
}

.studio-download-section .app-download-btn {
display: flex;
align-items: center;
gap: 15px;
/* background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(1, 1, 1, 0.95) 50%, rgba(0, 0, 0, 0.9) 100%); */
border: 2px solid rgba(1, 255, 117, 0.3);
border-radius: 50px;
padding: 12px 25px 12px 15px;
cursor: pointer;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
backdrop-filter: blur(10px);
max-width: 300px;
margin-top: 0px;
margin-bottom: 40px;
}

.studio-download-section .app-download-btn:hover {
transform: translateY(-5px) scale(1.02);
background: transparent;
border-color: rgba(1, 255, 117, 0.7);
}


/* ==================== 개선된 탭 네비게이션 ==================== */
.studio-page-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 15px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.studio-page-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(1, 255, 117, 0.3);
    border-radius: 4px;
    padding: 16px 20px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 60px;
}

.studio-page-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(1, 255, 117, 0.1), transparent);
    transition: left 0.5s ease;
}

.studio-page-tab:hover::before {
    left: 100%;
}

.studio-page-tab:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 255, 117, 0.2);
}

.studio-page-tab.active {
    background: var(--accent-color);
    color: var(--background-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(1, 255, 117, 0.4);
}

.studio-page-tab i {
    font-size: 18px;
    flex-shrink: 0;
}

.tab-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== 서브 탭 스타일 ==================== */
.studio-sub-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.studio-sub-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(1, 255, 117, 0.3);
    border-radius: 4px;
    padding: 12px 20px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.studio-sub-tab:hover {
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.studio-sub-tab.active {
    background: var(--accent-color);
    color: var(--background-color);
    border-color: var(--accent-color);
}

.studio-sub-tab i {
    font-size: 14px;
}

/* ==================== 탭 컨텐츠 기본 스타일 ==================== */
.studio-main-content {
min-height: 600px;
border: 2px solid rgba(1, 255, 117, 0.3);
border-radius: 4px;
padding: 40px;
backdrop-filter: blur(10px);
position: relative;
overflow: hidden;    
}

.studio-main-content::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(
45deg,
transparent 30%,
rgba(1, 255, 117, 0.02) 50%,
transparent 70%
);
animation: studio-content-scan 8s infinite linear;
pointer-events: none;
}


.studio-tab-panel,
.studio-sub-panel {
    display: none;
    position: relative;
    z-index: 2;
}

.studio-tab-panel.active,
.studio-sub-panel.active {
    display: block;
    animation: studio-fadeIn 0.3s ease;
}

@keyframes studio-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-header {
    text-align: center;
    margin-bottom: 30px;
}

.tab-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.tab-header p {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 0;
}

/* ==================== 공통 입력 스타일 ==================== */
.studio-input-group {
    margin-bottom: 20px;
}

.studio-input-group label {
    display: block;
    margin-top: 10px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--accent-color);
}

.studio-form-input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(1, 255, 117, 0.3);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 16px;
    transition: var(--transition);
    box-sizing: border-box;
}

.studio-form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(1, 255, 117, 0.3);
}

/* ==================== 셀렉트 및 컬러 입력 스타일 ==================== */
.studio-form-input[type="color"],
select.studio-form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(1, 255, 117, 0.3);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 16px;
    padding: 15px 40px 15px 15px;
    transition: var(--transition);
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2301FF75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

select.studio-form-input:hover {
    border-color: var(--accent-color);
    background-color: rgba(1, 255, 117, 0.05);
}

select.studio-form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(1, 255, 117, 0.3);
    background-color: rgba(1, 255, 117, 0.08);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

select.studio-form-input option {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 10px;
}

/* ==================== 버튼 스타일 ==================== */
.studio-page-btn {
    background: var(--accent-color);
    color: var(--background-color);
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.studio-page-btn:hover {
    background: #00e066;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 255, 117, 0.4);
}

/* ==================== QR 생성기 스타일 ==================== */
.studio-qr-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.studio-qr-result {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 30px;
    border: 2px solid rgba(1, 255, 117, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.studio-qr-result h3 {
    margin-bottom: 20px;
}

#studio-qr-canvas {
    margin: 20px 0;
    max-width: 100%;
    display: block;
}

#studio-download-btn {
    margin-top: 20px;
    align-self: center;
}

/* ==================== 개선된 컬러 팔레트 스타일 ==================== */
.color-input-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid rgba(1, 255, 117, 0.2);
}

.color-picker-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.color-input-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

.studio-color-picker {
    width: 80%;
    height: 20px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.color-code-input {
    flex: 1;
    display: flex;
    gap: 10px;
}

.color-code-input input {
    flex: 1;
    text-transform: uppercase;
}

.color-apply-btn {
    background: var(--accent-color);
    color: var(--background-color);
    border: none;
    padding: 15px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.color-apply-btn:hover {
    background: #00e066;
    transform: translateY(-1px);
}

/* RGB 조절 바 스타일 */
.rgb-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;  /* 전체 너비 사용 */
}

.rgb-slider {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rgb-slider label {
    min-width: 50px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0;
}

.color-range {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    /* 기존 회색 바 */
    /* background: rgba(255, 255, 255, 0.1); */
    /* 녹색 바 */
    background: rgba(1, 255, 117, 0.1);
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;  /* 기본 스타일 제거 */

}

.color-range::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: 2px solid var(--background-color);
    box-shadow: 0 2px 8px rgba(1, 255, 117, 0.3);
}

.color-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: 2px solid var(--background-color);
    box-shadow: 0 2px 8px rgba(1, 255, 117, 0.3);
}

.rgb-slider span {
    min-width: 35px;
    text-align: center;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
}

/* ==================== 컬러 그리드 스타일 ==================== */
.studio-color-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.studio-color-items-row {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    align-items: stretch;
}

.studio-color-item {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    border: 2px solid rgba(1, 255, 117, 0.2);
    transition: var(--transition);
    cursor: pointer;
}

.studio-color-item:hover {
    border-color: var(--accent-color);
}

.studio-color-preview {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    margin-bottom: 10px;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
}

.studio-color-code {
    font-size: 12px;
    color: var(--text-color);
    margin-top: 5px;
    font-family: 'Pretendard'!important;
}

.studio-color-code:first-child {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 18px;
    font-family: 'Pretendard'!important;
}


/* ==================== 생성기 컨테이너 중앙정렬 ==================== */
.palette-generator-container,
.gradient-generator-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 5색 팔레트 스타일 */
.palette-5-result {
    margin-top: 30px;
}

.palette-5-colors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; /* 모바일 대응 */
}


.palette-5-color {
    width: 150px;
    height: 150px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.palette-5-color:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.palette-5-color-code {
    margin-top: 12px;
    font-size: 18px;
    color: white;
    font-weight: 500;
    text-align: center;
}

/* 그라디언트 결과 스타일 */
.gradient-result {
    margin-top: 30px;
    width: 100%;
    max-width: 500px; /* 부모 컨테이너 폭 확장 */
    margin: 0 auto;
}

.gradient-bar {
    width: 100%;
    max-width: 500px; /* 최대 너비 설정 */
    height: 60px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin: 0 auto 15px auto; /* 중앙 정렬 + 아래 여백 */
    margin-top: 20px;
    margin-bottom: 40px;
}

.gradient-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 255, 117, 0.3);
}

.gradient-colors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px; /* 그라디언트 바와 간격 */
}

.gradient-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}


.gradient-color {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gradient-color:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gradient-color-code {
    font-size: 14px;
    color: white;
    font-weight: 500;
    text-align: center;
}

/* 그라데이션 카드 버튼 스타일 */
#gradient-card .studio-pick-btn {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    flex: none !important;
    align-self: center !important;
    /* background: linear-gradient(45deg, #01FF75, #00FFCC) !important; */
    background: linear-gradient(135deg, #FFF200, #01FF75, #00F0FF) !important;
}

/* 그라데이션 카드 액션 버튼들 */
/* #gradient-card .studio-action-btn {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, 
                linear-gradient(45deg, #667eea, #764ba2) border-box;
} */

/* 그라데이션 카드 컨테이너 */
/* #gradient-card .single-card-container {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, 
                linear-gradient(45deg, #667eea, #764ba2) border-box;
} */

/* ==================== 컬러 추출기 개선된 스타일 ==================== */
.studio-upload-area {
    border: 2px dashed rgba(1, 255, 117, 0.3);
    border-radius: 4px;
    padding: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 20px;
}

.studio-upload-area:hover {
    border-color: var(--accent-color);
    background: rgba(1, 255, 117, 0.05);
}

.studio-upload-area.dragover {
    border-color: var(--accent-color);
    background: rgba(1, 255, 117, 0.1);
    transform: scale(1.02);
}

.studio-upload-icon {
    font-size: 48px;
    color: #666;
    margin-bottom: 15px;
}

/* 개선된 추출 결과 레이아웃 - gap 추가 */
.color-extraction-result {
    display: flex;
    flex-direction: column;
    gap: 20px; /* gap 증가 */
    margin-top: 30px;
}

.extraction-color-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    border: 2px solid rgba(1, 255, 117, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.extraction-color-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.extraction-color-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.extraction-color-square {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    /* border: 2px solid rgba(255, 255, 255, 0.1); */
    flex-shrink: 0;
}

.extraction-color-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.extraction-color-code {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
    /* font-family: 'Monaco', 'Menlo', monospace; */
}

.extraction-color-rgb {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    /* font-family: 'Monaco', 'Menlo', monospace; */
}

.extraction-color-right {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
}

.extraction-percentage-bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.extraction-percentage-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.extraction-percentage-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-color);
    min-width: 45px;
    text-align: right;
}

/* ==================== 개선된 디자인 계산기 스타일 ==================== */
.studio-calc-section {
    /* background: rgba(255, 255, 255, 0.05); */
    border-radius: 15px;
    padding: 25px;
    /* border: 2px solid rgba(1, 255, 117, 0.2); */
}

.studio-calc-section h3 {
    color: var(--accent-color);
    margin-bottom: 0px;
    font-size: 24px;
    font-weight: 700;
}

.studio-calc-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    font-size: 16px;
}

/* 그리드 계산기 전용 스타일 */
.studio-grid-inputs {
    margin-bottom: 24px;
}

.studio-input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.studio-input-col {
    flex: 1;
}

.studio-input-col label {
    display: block;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.studio-input-with-unit {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 2px solid rgba(1, 255, 117, 0.3);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.studio-input-with-unit input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: var(--text-color);
    font-size: 16px;
    outline: none;
    min-width: 0;
    box-sizing: border-box;
}

.studio-input-with-unit span {
    padding: 12px 16px;
    background: rgba(1, 255, 117, 0.1);
    color: var(--accent-color);
    /* color: white; */
    font-size: 14px;
    border-left: 1px solid rgba(1, 255, 117, 0.3);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.studio-grid-result-info {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(1, 255, 117, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(1, 255, 117, 0.2);
}

.studio-result-item {
    /* display: flex;
    flex-direction: column; */

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.studio-result-item span:first-child {
    /* color: rgba(255, 255, 255, 0.7); */
    color: white;
    font-size: 16px;
}

.studio-result-item span:last-child {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 16px;
}

/* 개선된 그리드 시각화 */
.studio-grid-preview-wrapper {
    background: rgba(1, 255, 117, 0.05);
    border-radius: 6px;
    padding: 20px;
    border: 1px solid rgba(1, 255, 117, 0.2);
    overflow: hidden;

    padding: 20px; /* 패딩 제거해서 공간 확보 */
    width: 100%;
}

.studio-grid-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    overflow: visible;
    width: 100%;
    padding: 0;
    max-width: none; /* 최대 너비 제한 해제 */
}

#design-calculator {
    max-width: 1200px; /* 기본보다 더 넓게 */
    margin: 0 auto;
}

.studio-grid-preview {
    width: 100%;
    
}

.studio-grid-container {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
    overflow: visible;
    /* background: #f5f5f5; */
    border-radius: 8px;
    padding: 10px;
}

.studio-grid-column {
    /* background: rgba(200, 180, 140, 0.7); */
    /* border: 1px solid #c8b48c; */
    position: absolute;
    top: 10px;
    bottom: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: #8b7355; */
    font-size: 12px;
    font-weight: bold;
    background: rgba(1, 255, 117, 0.3);
    border: 1px solid #01FF75;
    color: #01FF75;
}

.studio-grid-margin {
    position: absolute;
    top: 10px;
    bottom: 10px;
    /* background: rgba(220, 100, 100, 0.3); */
    /* border: 1px dashed #dc6464; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: #dc6464; */
    font-size: 11px;
    font-weight: bold;

    background: rgba(255, 77, 77, 0.3); /* 빨간색 유지 */
    border: 1px dashed #ff4d4d;
    color: #ff4d4d;
}

.studio-grid-margin.left {
    left: 0;
}

.studio-grid-margin.right {
    right: 0;
}

.studio-grid-gutter {
    position: absolute;
    top: 10px;
    bottom: 10px;
    background: rgba(14, 73, 40, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 20px; /* 최소 너비 보장 */
}

/* 폰트 사이즈 계산기 개선된 스타일 */
.studio-font-calc-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.studio-font-converter {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 5px;
    padding: 20px;
    background: rgba(1, 255, 117, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(1, 255, 117, 0.2);
}

.studio-converter-item {
    flex: 1;
}

.studio-converter-item label {
    display: block;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    text-align: center;
}

.studio-size-input {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 2px solid var(--accent-color);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.studio-size-input input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    outline: none;
    min-width: 0;
    box-sizing: border-box;
}

.studio-size-input span {
    padding: 16px;
    /* color: var(--accent-color); */
    color: white;
    font-size: 16px;
    /* background: rgba(1, 255, 117, 0.1); */
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.studio-converter-arrow {
    color: var(--accent-color);
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

/* 반응형 사이즈 */
.studio-responsive-sizes {
    margin-bottom: 32px;
}

.studio-responsive-sizes h4 {
    color: var(--accent-color);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.studio-device-sizes {
    display: flex;
    gap: 16px;
}

.studio-device-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(1, 255, 117, 0.2);
}

.studio-device-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.studio-device-info span:first-child {
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
}

.studio-device-info span:last-child {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 16px;
}

/* 권장 사이즈 가이드 */
.studio-size-guide {
    margin-bottom: 32px;
}

.studio-size-guide h4 {
    color: var(--accent-color);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.studio-size-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.studio-size-guide-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    border-radius: 6px;
    border: 1px solid rgba(1, 255, 117, 0.2);
}

.studio-size-guide-item span:first-child {
    color: var(--text-color);
    font-weight: 600;
}

.studio-size-guide-item span:last-child {
    color: rgba(255, 255, 255, 0.7);
    /* font-family: 'Monaco', 'Menlo', monospace; */
    font-size: 14px;
}

/* 미리보기 */
.studio-font-preview {
    margin-bottom: 0;
}

.studio-font-preview h4 {
    color: var(--accent-color);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.studio-preview-text {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 24px;
    color: var(--text-color);
    border: 1px solid rgba(1, 255, 117, 0.2);
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== 사이즈 가이드 스타일 ==================== */
.studio-size-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.studio-size-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 25px;
    border: 2px solid rgba(1, 255, 117, 0.2);
}

.studio-size-category h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.studio-size-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.studio-size-item:last-child {
    border-bottom: none;
}

/* ==================== 공통 액션 버튼 스타일 ==================== */
.studio-pick-btn {
    background: #01ff75;
    color: black;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    margin: 20px 0;
    position: relative;
    /* overflow: hidden; */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px; /* 고정 높이 추가 */
    min-width: 180px; /* 최소 너비도 설정 (선택사항) */
}

#single-card .studio-pick-btn {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    flex: none !important; /* flex로 크기 조정되지 않도록 */
    align-self: center !important;
}

.studio-pick-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.015), transparent);
    transition: left 0.5s ease;
}

.studio-pick-btn:hover::before {
    left: 100%;
}

.studio-pick-btn:hover {
    background: #00e066;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 255, 117, 0.4);
}

.studio-pick-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.studio-card-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.studio-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(1, 255, 117, 0.3);
    color: white;
    padding: 12px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.studio-action-btn:hover {
    border-color: #01ff75;
    background: rgba(1, 255, 117, 0.1);
    transform: translateY(-1px);
}

/* 단색카드 뽑기 */
.single-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* min-height: 70vh; */
    justify-content: center;
    /* padding: 20px; */
}

.color-card {
    width: 320px;
    height: 500px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 15px solid var(--text-color);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;

    border: none; /* 부모에서 보더 제거 */
    background: transparent; /* 부모는 투명 */
}

.color-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* 뽑기 전 카드 */
.card-question {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    border: 2px solid #01FF75; /* 뽑기 전은 녹색 보더로 */
    border-radius: 8px;
    box-sizing: border-box; /* 일관성을 위해 추가 */
    /* background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 50, 0, 0.8) 100%); */
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.9), rgba(0, 50, 0, 0.8), rgba(0, 0, 0, 0.9));
    background-size: 200% 200%;
    animation: gradientMove 3s ease-in-out infinite;
    /* animation: borderGlow 2s ease-in-out infinite; */
    /* animation: cardPulse 4s ease-in-out infinite, gradientShift 6s ease-in-out infinite; */
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* @keyframes borderGlow {
    0%, 100% { 
        border-color: #01FF75;
        box-shadow: 0 0 10px rgba(1, 255, 117, 0.5);
    }
    50% { 
        border-color: #00ff88;
        box-shadow: 0 0 20px rgba(1, 255, 117, 0.8);
    }
}

@keyframes cardPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
} */



.question-icon {
    font-size: 80px;
    color: #01FF75;
    margin-bottom: 20px;
    animation: pulse-scale 2s infinite;
}

.question-text h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.question-text p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.question-text h3,
.question-text p {
    color: #01FF75; /* 텍스트도 녹색 */
}

/* 카드 뽑기 결과 카드 */
.card-result {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    border: 15px solid var(--text-color);
    box-sizing: border-box; /* 보더 포함해서 전체 크기 계산 */
}

.color-display-area {
    height: 60%;
    width: 100%;
    border-radius: 2px;
}

.color-info-area {
    height: 40%;
    padding: 15px 5px 15px 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.color-brand-name {
    font-size: 30px;
    font-weight: 900;
    color: #333;
    margin-bottom: 0px;

    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
}

.color-hex-code {
    font-size: 18px;
    color: #666;
    font-weight: 600;
    margin-bottom: 8px;
}

.color-korean-name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    /* margin-bottom: 10px; */
}

.color-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.card-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    height: 80px; /* 고정 높이로 버튼 영역 크기 통일 */
    justify-content: center;
}

.studio-card-actions {
    display: flex;
    gap: 15px;
    height: 40px; /* 액션 버튼들의 높이 고정 */
    align-items: center;
}

.card-flip {
    animation: flip-card 0.8s ease-in-out;
}

.card-fade {
    animation: fade-out 0.3s ease-out;
}

@keyframes pulse-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes flip-card {
    0% { transform: rotateY(0deg); }
    25% { transform: rotateY(-180deg); }
    50% { transform: rotateY(-360deg); }
    75% { transform: rotateY(-540deg); }
    100% { transform: rotateY(-720deg); }
}

@keyframes fade-out {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* 사이즈 계산기, 단위 변환기 스타일 */
.studio-unit-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.studio-unit-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.studio-unit-group label {
    color: var(--accent-color);
    /* color: white; */
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 0;
}

.studio-unit-radios {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 디자인 가이드 항목명 통일 */
#size-guide .studio-size-item span,
#size-guide .studio-size-item small {
    font-size: 14px;
}

/* 단위 변환기 컨테이너 삐져나가기 방지 - 모든 해상도 */
#unit-converter .studio-font-converter {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

#unit-converter .studio-converter-item {
    flex: 1;
    min-width: 0;
    max-width: 50%;
}

#unit-converter .studio-size-input {
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

#unit-converter .studio-size-input input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#unit-converter .studio-converter-arrow {
    flex-shrink: 0;
    min-width: 40px;
    text-align: center;
}

/* ==================== 다크 스페셜 카드 CSS ==================== */

/* 다크 스페셜 카드 전체 스타일 */
.dark-special-card .card-result {
    background: #111111 !important; /* 사이트 배경보다 연한 검은색 */
    border: 15px solid #111111 !important; /* 어두운 보더 */
    box-shadow: 0 0 20px rgba(1, 255, 117, 0.3) !important; /* 네온 글로우 */
}

/* 브랜드명 스타일링 */
.dark-special-card .color-brand-name {
    color: #333 !important; /* 기존 스타일 유지를 위한 fallback */
}

.dark-special-card .color-brand-name .studio-text {
    color: #ffffff !important; /* STUDIO는 흰색 */
}

.dark-special-card .color-brand-name .nfp-text {
    color: #01FF75 !important; /* NFP는 강조색 */
}

/* 색상 코드 - 밝은 흰색 */
.dark-special-card .dark-hex-code {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5) !important;
}

/* 컬러 이름 - 중간 톤 흰색 */
.dark-special-card .dark-color-name {
    color: #e0e0e0 !important;
    font-weight: 700 !important;
}

/* 설명 텍스트 - 연한 흰색 */
.dark-special-card .dark-description {
    color: #b0b0b0 !important;
    line-height: 1.4 !important;
}

/* 다크 스페셜 카드 호버 효과 */
.dark-special-card:hover {
    box-shadow: 0 0 30px rgba(1, 255, 117, 0.5) !important;
    transform: translateY(-8px) !important;
}

/* 다크 스페셜 카드 글로우 애니메이션 강화 */
.dark-special-card.nfp-special-card {
    animation: darkNfpGlow 2s ease-in-out infinite !important;
}

@keyframes darkNfpGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(1, 255, 117, 0.5), 
                   0 0 40px rgba(1, 255, 117, 0.2) !important; 
    }
    50% { 
        box-shadow: 0 0 30px rgba(1, 255, 117, 0.8), 
                   0 0 60px rgba(1, 255, 117, 0.4),
                   0 0 80px rgba(1, 255, 117, 0.2) !important; 
    }
}

/* 텍스트 카운터 페이지 */
/* 텍스트 카운터 전용 스타일 */
.text-counter-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    align-items: start;       /* 상단 정렬 */
    gap: 24px;
}

.text-counter-input-section {
    display: flex;
    flex-direction: column;
}

.text-counter-input-section label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.text-counter-input {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 2px solid var(--sub-border-color);
    border-radius: 4px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    resize: vertical;
    background: var(--sub-bg-color);
    transition: border-color 0.3s ease;
    color: white;
}

.text-counter-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.text-counter-actions {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.text-counter-actions button {
    padding: 14px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--background-color);
    background:var(--accent-color);
    font-weight: 600;
}

.text-counter-actions button:hover{
    background-color: var(--accent-color-hover);
}

.text-counter-results {
    background: var(--sub-bg-color);
    border: 2px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.text-counter-results h3 {
    margin: 0 0 1.5rem 0;
    color: var(--accent-color);
    font-size: 18px;
}

.text-counter-grid {
    display: grid;
    gap: 1rem;
}

.text-counter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--sub-border-color);
    border-radius: 4px;
}

.text-counter-label {
    font-weight: 500;
    color: white;
    font-size: 14px;
}

.text-counter-value {
    font-weight: 700;
    color: white;
    font-size: 16px;
    min-width: 3rem;
    text-align: right;
}

.text-counter-additional-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sub-border-color);
}

.text-counter-additional-info h4 {
    margin: 0 0 1rem 0;
    color: white;
    font-size: 16px;
}

.text-counter-info-grid {
    display: grid;
    gap: 0.75rem;
}

.text-counter-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 0.5rem 0.75rem; */
    /* background: var(--sub-border-color); */
    /* border-radius: 4px; */
}

.text-counter-info-label {
    font-size: 13px;
    color: white;
}

.text-counter-info-value {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 14px;
}

/* 텍스트 카운터 반응형 */
@media (max-width: 768px) {
    .text-counter-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .text-counter-results {
        position: static;
        order: -1;
    }
    
    .text-counter-actions {
        flex-wrap: wrap;
    }
    
    .text-counter-actions button {
        flex: 1;
        min-width: 100px;
    }
}

/* 로엠입섬, 더미텍스트 페이지 */
/* Lorem Ipsum 생성기 전용 스타일 */
.lorem-generator-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    /* margin-top: 2rem; */
}

.lorem-generator-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.lorem-generator-options {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 1.5rem;
}

.lorem-generator-options h3 {
    margin: 0 0 1.5rem 0;
    color: white;
    font-size: 18px;
}

.lorem-option-group {
    margin-bottom: 1.5rem;
}

.lorem-option-group label {
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
}

.lorem-radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.lorem-radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
}

.lorem-radio-label input[type="radio"] {
    margin: 0;
}

.lorem-count-input {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--sub-border-color);
    border: 2px solid transparent;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.lorem-count-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.lorem-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.4;
}

.lorem-checkbox-label input[type="checkbox"] {
    margin: 0;
    margin-top: 0.1rem;
}

.lorem-generate-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--background-color);
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lorem-generate-btn:hover {
    background-color: var(--accent-color-hover);
}

.lorem-generator-info {
    background: var(--sub-bg-color);
    border: 1px solid var(--semi-black-hover);
    border-radius: 4px;
    padding: 1.5rem;
}

.lorem-generator-info h4 {
    margin: 0 0 1rem 0;
    color: var(--accent-color);
    font-size: 18px;
}

.lorem-generator-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.lorem-usage-tips h5 {
    margin: 0 0 0.75rem 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.lorem-usage-tips ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.lorem-usage-tips li {
    margin-bottom: 0.25rem;
}

.lorem-generator-results {
    display: flex;
    flex-direction: column;
}

.lorem-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.lorem-results-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 18px;
}

.lorem-results-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    justify-content: flex-end;
}

.lorem-copy-btn {
    padding: 14px 18px;
    background-color: var(--accent-color);
    color: var(--background-color);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lorem-copy-btn:hover {
    background-color: var(--accent-color-hover);
}

.lorem-clear-btn {
    padding: 14px 18px;
    background-color: var(--accent-color);
    color: var(--background-color);
    font-weight: 700;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lorem-clear-btn:hover {
    background-color: var(--accent-color-hover);
}

.lorem-output {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 1.5rem;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

.lorem-output p {
    margin: 0 0 1rem 0;
}

.lorem-output p:last-child {
    margin-bottom: 0;
}

.lorem-placeholder {
    color: #9ca3af;
    font-style: italic;
}

.lorem-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sub-border-color);
}

.lorem-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--sub-border-color);
    border-radius: 4px;
}

.lorem-stat-label {
    font-size: 14px;
    color: white;
    font-weight: 500;
}

.lorem-stat-value {
    font-size: 16px;
    color: white;
    font-weight: 700;
}

/* 라디오 버튼 스타일 */
.lorem-radio-label input[type="radio"] {
   appearance: none;
   width: 16px;
   height: 16px;
   border: 2px solid #666;
   border-radius: 50%;
   margin: 0;
   position: relative;
   cursor: pointer;
   transition: all 0.2s ease;

   top: 2px;
   margin-right: 4px;
}

.lorem-radio-label input[type="radio"]:checked {
   border-color: var(--accent-color);
   background-color: var(--accent-color);
}

.lorem-radio-label input[type="radio"]:checked::after {
   content: '';
   position: absolute;
   top: 50%;
   left: 50%;
   width: 6px;
   height: 6px;
   background-color: var(--background-color);
   border-radius: 50%;
   transform: translate(-50%, -50%);
}

.lorem-radio-label input[type="radio"]:hover {
   border-color: var(--accent-color);
}

/* 체크박스 스타일 */
.lorem-checkbox-label input[type="checkbox"] {
   appearance: none;
   width: 16px;
   height: 16px;
   border: 2px solid #d1d5db;
   border-radius: 2px;
   margin: 0;
   position: relative;
   cursor: pointer;
   transition: all 0.2s ease;

   top: 2px;
   margin-right: 6px;
}

.lorem-checkbox-label input[type="checkbox"]:checked {
   border-color: var(--accent-color);
   background-color: var(--accent-color);
}

.lorem-checkbox-label input[type="checkbox"]:checked::after {
   content: '✓';
   position: absolute;
   top: 50%;
   left: 50%;
   color: var(--background-color);
   font-size: 10px;
   font-weight: bold;
   transform: translate(-50%, -50%);
}

.lorem-checkbox-label input[type="checkbox"]:hover {
   border-color: var(--accent-color-hover);
}

/* Lorem Ipsum 생성기 반응형 */
@media (max-width: 768px) {
    .lorem-generator-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .lorem-generator-controls {
        order: 2;
    }
    
    .lorem-generator-results {
        order: 1;
    }
    
    .lorem-radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .lorem-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .lorem-stats {
        grid-template-columns: 1fr;
    }
    
    .lorem-results-actions {
        width: 100%;
    }
    
    .lorem-copy-btn,
    .lorem-clear-btn {
        flex: 1;
    }
}

/* 단위 변환기 페이지 */
/* 단위 변환기 전용 스타일 */
.unit-converter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 상단: 설정 영역 (3개 컬럼) */
.unit-converter-settings {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

/* 하단: 결과 영역 (2개 컬럼) */
.unit-converter-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.unit-converter-section {
    background: #080808;
    border: 1px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    padding: 1.5rem;
}

.unit-converter-section h3 {
    margin: 0 0 1rem 0;
    color: var(--accent-color, #01FF75);
    font-size: 20px;
    font-weight: 600;
}

.unit-converter-section p {
    color: #666;
    font-size: 14px;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.unit-converter-radios {
    display: flex;
    flex-direction: column;
    gap: 10ㅔㅌ
}

.unit-converter-radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.unit-converter-radio-label:hover {
    color: #888;
}

.unit-converter-radio-label input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--sub-border-color, #272727);
    border-radius: 50%;
    margin: 0;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--sub-bg-color, #141414);
}

.unit-converter-radio-label input[type="radio"]:checked {
    border-color: var(--accent-color, #01FF75);
    background-color: var(--accent-color, #01FF75);
}

.unit-converter-radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: var(--sub-bg-color, #141414);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.unit-converter-radio-label input[type="radio"]:hover {
    border-color: var(--accent-color, #01FF75);
}

.unit-converter-reference h5 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 15px;
    font-weight: 600;
}

.unit-converter-reference ul {
    margin: 0;
    padding-left: 1rem;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.unit-converter-reference li {
    margin-bottom: 0.25rem;
}

.unit-converter-calculator {
    background: var(--title-color);
    border: 1px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    padding: 1.5rem;
}

.unit-converter-calculator h3 {
    margin: 0 0 1.5rem 0;
    color: var(--accent-color, #01FF75);
    font-size: 20px;
    font-weight: 600;
}

.unit-converter-inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.unit-converter-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 280px;
}

.unit-converter-input-group label {
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.unit-converter-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.unit-converter-input-wrapper input {
    width: 100%;
    padding: 1rem 4rem 1rem 1rem;
    background: var(--sub-bg-color, #141414);
    border: 2px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.unit-converter-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-color, #01FF75);
    box-shadow: 0 0 0 3px rgba(1, 255, 117, 0.1);
}

.unit-converter-input-wrapper span {
    position: absolute;
    right: 1rem;
    color: var(--accent-color, #01FF75);
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
}

.unit-converter-arrow {
    color: var(--accent-color, #01FF75);
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    transform: rotate(90deg);
}

.unit-converter-examples {
    background: var(--title-color);
    border: 1px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    padding: 1.5rem;
}

.unit-converter-examples h3 {
    margin: 0 0 1rem 0;
    color: var(--accent-color, #01FF75);
    font-size: 20px;
    font-weight: 600;
}

.unit-converter-example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
}

.unit-converter-example-btn {
    padding: 0.75rem 1rem;
    background: var(--sub-bg-color, #141414);
    border: 2px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unit-converter-example-btn:hover {
    border-color: var(--accent-color, #01FF75);
    color: var(--accent-color, #01FF75);
}

.unit-converter-example-btn:active {
    background: var(--accent-color, #01FF75);
    color: var(--sub-bg-color, #141414);
}

/* 단위 변환기 반응형 */
@media (max-width: 1024px) {
    .unit-converter-settings {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .unit-converter-settings .unit-converter-section:last-child {
        grid-column: 1 / -1;
    }
    
    .unit-converter-results {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .unit-converter-settings {
        grid-template-columns: 1fr;
    }
    
    .unit-converter-settings .unit-converter-section:last-child {
        grid-column: auto;
    }
    
    .unit-converter-input-wrapper input {
        padding: 0.875rem 3rem 0.875rem 1rem;
        font-size: 16px;
    }
    
    .unit-converter-example-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 폰트 계산기 페이지 */
/* 폰트 크기 변환기 전용 스타일 */
.font-converter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.font-converter-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--title-color);
    border: 1px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    padding: 24px;
}

.font-converter-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.font-converter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.font-converter-size-input {
    position: relative;
    display: flex;
    align-items: center;
}

.font-converter-size-input input {
    width: 160px;
    padding: 16px 60px 16px 16px;
    background: var(--sub-bg-color, #141414);
    border: 2px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.font-converter-size-input input:focus {
    outline: none;
    border-color: var(--accent-color, #01FF75);
    box-shadow: 0 0 0 3px rgba(1, 255, 117, 0.1);
}

.font-converter-size-input span {
    position: absolute;
    right: 16px;
    color: var(--accent-color, #01FF75);
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
}

.font-converter-arrow {
    color: var(--accent-color, #01FF75);
    font-size: 28px;
    font-weight: bold;
    text-align: center;
}

.font-converter-preview {
    text-align: center;
}

.font-converter-preview h3 {
    margin: 0 0 16px 0;
    color: var(--accent-color, #01FF75);
    font-size: 18px;
    font-weight: 600;
}

.font-converter-preview-text {
    background: var(--sub-bg-color, #141414);
    border: 2px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    padding: 32px;
    color: white;
    font-family: 'Pretendard', sans-serif;
    line-height: 1.6;
    text-align: center;
}

.font-converter-guides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.font-converter-responsive,
.font-converter-size-guide {
    background: var(--title-color);
    border: 1px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    padding: 24px;
}

.font-converter-responsive h3,
.font-converter-size-guide h3 {
    margin: 0 0 16px 0;
    color: var(--accent-color, #01FF75);
    font-size: 18px;
    font-weight: 600;
}

.font-converter-device-sizes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.font-converter-device-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--sub-bg-color, #141414);
    border: 1px solid var(--sub-border-color, #272727);
    border-radius: 4px;
}

.font-converter-device-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.font-converter-device-info span:first-child {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.font-converter-device-info span:last-child {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.font-converter-size-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.font-converter-size-guide-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--sub-bg-color, #141414);
    border: 1px solid var(--sub-border-color, #272727);
    border-radius: 4px;
}

.font-converter-size-guide-item span:first-child {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

.font-converter-size-guide-item span:last-child {
    color: white;
    font-size: 16px;
    font-weight: 400;
}

/* 사이즈 계산기 페이지 */
/* 사이즈 계산기 전용 스타일 */
.size-calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.size-calculator-section {
    background: var(--sub-bg-color, #141414);
    border: 1px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    padding: 24px;
}

.size-calculator-section h3 {
    margin: 0 0 8px 0;
    color: var(--accent-color, #01FF75);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.size-calculator-section p {
    margin: 0 0 24px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.size-calculator-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.size-calculator-input-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.size-calculator-input-col label {
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.size-calculator-input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.size-calculator-input-with-unit input {
    width: 100%;
    padding: 12px 60px 12px 12px;
    background: var(--sub-bg-color, #141414);
    border: 2px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.size-calculator-input-with-unit input:focus {
    outline: none;
    border-color: var(--accent-color, #01FF75);
}

.size-calculator-input-with-unit input::placeholder {
    color: #666;
}

.size-calculator-input-with-unit span {
    position: absolute;
    right: 12px;
    color: var(--accent-color, #01FF75);
    font-size: 15px;
    font-weight: 600;
    pointer-events: none;
}

.size-calculator-result-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.size-calculator-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--sub-bg-color, #141414);
    border: 1px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* .size-calculator-result-item:hover {
    border-color: var(--accent-color, #01FF75);
} */

.size-calculator-result-item span:first-child {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.size-calculator-result-item span:last-child {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

/* 사이즈 계산기 반응형 */
@media (max-width: 768px) {
    .size-calculator-input-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .size-calculator-result-info {
        grid-template-columns: 1fr;
    }
    
    .size-calculator-input-with-unit input {
        padding: 10px 50px 10px 10px;
        font-size: 14px;
    }
    
    .size-calculator-result-item {
        padding: 10px 12px;
    }
    
    .size-calculator-result-item span:first-child,
    .size-calculator-result-item span:last-child {
        font-size: 13px;
    }
}

/* 폰트 크기 변환기 반응형 */
@media (max-width: 768px) {
    .font-converter-inputs {
        flex-direction: column;
        gap: 16px;
    }
    
    .font-converter-arrow {
        transform: rotate(90deg);
    }
    
    .font-converter-guides {
        grid-template-columns: 1fr;
    }
    
    .font-converter-size-input input {
        width: 140px;
        padding: 12px 50px 12px 12px;
        font-size: 18px;
    }
    
    .font-converter-preview-text {
        padding: 24px 16px;
    }
}

/* 그리드 계산기 페이지 */
.grid-calculator-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.grid-calculator-top-section {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.grid-calculator-inputs {
    background: var(--semi-black);
    border: 1px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    padding: 24px;
    flex: 1;
    text-align: center;
}

.grid-calculator-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.grid-calculator-input-row:last-child {
    margin-bottom: 0;
}

.grid-calculator-input-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grid-a{
    display: inline-block;
    padding: 6px 26px;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    width: auto;
    font-weight: 600;
    font-size: 20px;
    color: var(--accent-color);
    margin-bottom: 24px;
    text-align: center;
}

.grid-calculator-input-col label {
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

.grid-calculator-input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.grid-calculator-input-with-unit input {
    width: 100%;
    padding: 12px 16px;
    background: var(--sub-bg-color, #141414);
    border: 1px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.grid-calculator-input-with-unit input:focus {
    outline: none;
    border-color: var(--accent-color, #01FF75);
}

.grid-calculator-input-with-unit span {
    position: absolute;
    right: 12px;
    color: var(--accent-color, #01FF75);
    font-size: 16px;
    font-weight: 600;
    pointer-events: none;
}

.grid-calculator-result-info {
    flex: 1;
    background: var(--semi-black);
    border: 1px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    padding: 24px;
    text-align: center;
}

.grid-calculator-result-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.grid-calculator-result-row:last-child {
    margin-bottom: 0;
}

.grid-calculator-result-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grid-calculator-result-col label {
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

.grid-calculator-result-value {
    background: var(--sub-bg-color, #141414);
    border: 1px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    padding: 12px 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.grid-calculator-input-with-unit input,
.grid-calculator-result-value {
    min-height: 48px; /* 동일한 최소 높이 지정 */
    box-sizing: border-box; /* 박스 모델 통일 */
    line-height: 1.2; /* 라인 높이 통일 */
}

.grid-calculator-result-value span {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.grid-calculator-preview-wrapper {
    background: #0e0e0e;
    border: 1px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    padding: 24px;
}

.grid-calculator-preview-wrapper h3 {
    margin: 0 0 16px 0;
    color: var(--accent-color, #01FF75);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.grid-calculator-preview {
    /* background: #01ff7307; */
    /* border: 1px solid var(--sub-border-color, #272727); */
    border-radius: 4px;
    padding: 0px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-calculator-container {
    background: rgba(1, 255, 117, 0.05);
    /* border: 1px dashed var(--accent-color, #01FF75); */
    border-radius: 0px;
}

.grid-calculator-column {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(1, 255, 117, 0.3);
    border: 1px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-color);
    opacity: 0.8;
}

.grid-calculator-margin {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(255, 77, 77, 0.3);
    border: 1px dashed #ff4d4d;;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #ff4d4d;
}

.grid-calculator-margin.left {
    left: 0;
}

.grid-calculator-margin.right {
    right: 0;
}

.grid-calculator-gutter {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(14, 73, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
}

/* 그리드 계산기 반응형 */
@media (max-width: 768px) {
    .grid-calculator-top-section {
        display: flex;
        flex-direction: column;
        gap: 24px;
        align-items: normal;
    }
    
    .grid-calculator-input-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .grid-calculator-result-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .grid-calculator-input-with-unit input {
        padding: 10px 40px 10px 10px;
        font-size: 14px;
    }
    
    .grid-calculator-result-value {
        padding: 10px 12px;
    }
    
    .grid-calculator-result-value span {
        font-size: 14px;
    }
    
    .grid-calculator-preview {
        min-height: 140px;
        padding: 16px;
    }
}


/* 컬러 조합기 페이지 */
/* 컬러 조합기 전용 스타일 */

/* 컬러 조합기 반응형 */
@media (max-width: 768px) {
    .color-palette-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .large-color-picker {
        height: 100px;
    }
    
    .color-code-input {
        flex-direction: column;
    }
    
    .studio-color-items-row {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .studio-color-preview {
        height: 60px;
    }
}

/* 5컬러 팔레트 페이지 */
/* 5색 팔레트 전용 스타일 */
.palette-5-description {
    text-align: center;
    /* margin-bottom: 40px; */
    /* background: #141414; */
    /* border: 1px solid #272727; */
    border-radius: 4px;
    padding: 30px;
    padding-top: 0px;
}

.palette-5-description h3 {
    color: #01FF75;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.palette-5-description p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.palette-5-button-area {
    text-align: center;
    margin-bottom: 50px;
}

.palette-5-btn {
    background: linear-gradient(135deg, #01FF75, #00CC5E);
    color: #000;
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 255, 117, 0.3);
    min-width: 250px;
}

.palette-5-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 255, 117, 0.4);
}

.palette-5-btn:active {
    transform: translateY(0);
}

.palette-5-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


/* 반응형 디자인 */
@media (max-width: 768px) {
    .palette-5-colors {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .palette-5-item {
        max-width: none;
    }
    
    .palette-5-color {
        width: 60px;
        height: 60px;
    }
    
    .palette-5-description {
        padding: 20px;
    }
    
    .palette-5-description h3 {
        font-size: 20px;
    }
    
    .palette-5-description p {
        font-size: 14px;
    }
    
    .palette-5-btn {
        font-size: 16px;
        padding: 14px 28px;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .palette-5-generator-container {
        padding: 20px 10px;
    }
    
    .palette-5-colors {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .palette-5-color {
        width: 50px;
        height: 50px;
    }
    
    .palette-5-result {
        padding: 20px;
    }
    
    .palette-5-description {
        padding: 15px;
    }
    
    .palette-5-btn {
        font-size: 14px;
        padding: 12px 24px;
        min-width: 180px;
    }
}

/* 로딩 애니메이션 */
.palette-5-btn i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 성공 피드백 애니메이션 */
@keyframes colorPickSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.palette-5-item.picked {
    animation: colorPickSuccess 0.3s ease;
    border-color: #01FF75;
    background: rgba(1, 255, 117, 0.1);
}

/* 랜덤 컬러팔레트 페이지 */
/* 5색 랜덤 팔레트 전용 스타일 */
.palette-random-description {
    text-align: center;
    padding: 30px;
    padding-top: 0;
}

.palette-random-description h3 {
    color: #01FF75;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.palette-random-description p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.palette-random-button-area {
    text-align: center;
    margin-bottom: 50px;
}

.palette-random-btn {
    background: var(--accent-color);
    color: var(--background-color);
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 255, 86, 0.24);
    min-width: 250px;
}

.palette-random-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 255, 151, 0.4);
}

.palette-random-btn:active {
    transform: translateY(0);
}

.palette-random-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.palette-random-result {
    /* padding: 30px; */
}

.palette-random-colors {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-items: center;
}

.palette-random-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 4px;
    background: white;
    border: 1px solid transparent;
    width: 100%;
    max-width: 200px;
    position: relative;
}

.palette-random-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(107, 255, 139, 0.2);
}

.palette-random-color {
    width: 170px;
    height: 170px;
    border-radius: 4px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}


.palette-random-color-code {
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-align: center;
    padding: 8px 12px;
    border-radius: 4px;
    background : #272727;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
}

/* 랜덤 특별 효과 - 가끔 번쩍이는 애니메이션 */
.palette-random-item.sparkle {
    animation: randomSparkle 0.6s ease-in-out;
}

@keyframes randomSparkle {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.02) rotate(1deg); }
    75% { transform: scale(0.98) rotate(-1deg); }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .palette-random-colors {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .palette-random-item {
        max-width: none;
    }
    
    .palette-random-color {
        width: 60px;
        height: 60px;
    }
    
    .palette-random-description {
        padding: 20px;
    }
    
    .palette-random-description h3 {
        font-size: 20px;
    }
    
    .palette-random-description p {
        font-size: 14px;
    }
    
    .palette-random-btn {
        font-size: 16px;
        padding: 14px 28px;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .palette-random-generator-container {
        padding: 20px 10px;
    }
    
    .palette-random-colors {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .palette-random-color {
        width: 50px;
        height: 50px;
    }
    
    .palette-random-result {
        padding: 20px;
    }
    
    .palette-random-description {
        padding: 15px;
    }
    
    .palette-random-btn {
        font-size: 14px;
        padding: 12px 24px;
        min-width: 180px;
    }
}

/* 로딩 애니메이션 */
.palette-random-btn i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 성공 피드백 애니메이션 */
@keyframes randomColorPickSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(0.95);}
    100% { transform: scale(1); }
}


/* QR 기본 페이지 */
/* 중복 이슈로 HTML에 인라인으로 삽입 */

/* ==================== 반응형 디자인 ==================== */

/* 태블릿 */
@media (max-width: 1024px) {
    .studio-enhanced-calculator {
        gap: 30px;
    }
    
    .studio-font-converter {
        gap: 15px;
    }
    
    .color-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .studio-color-picker {
        width: 100%;
        height: 20px;
    }
}

/* 이미지 포맷 변환기 페이지 */
.format-converter-container {
    max-width: 1200px;
    margin: 0 auto;
}

.format-converter-description {
    text-align: center;
    margin-bottom: 40px;
}

.format-converter-description h3 {
    color: #01FF75;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.format-converter-description p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.format-converter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.format-converter-upload-section {
    background: #141414;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 30px;
}

.converter-settings-group {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #272727;
}

.converter-settings-group:last-of-type {
    border-bottom: none;
    margin-bottom: 25px;
}

.converter-settings-group h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.converter-input-group {
    margin-bottom: 20px;
}

.converter-input-group:last-child {
    margin-bottom: 0;
}

.converter-input-group label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 18px;
}

.converter-input-group small {
    color: #666;
    font-size: 16px;
    display: block;
    margin-top: 5px;
}

.image-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: 2px dashed #272727;
    border-radius: 4px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.image-upload-label:hover {
    border-color: #01FF75;
    background: #1f1f1f;
}

.image-upload-label i {
    font-size: 32px;
    color: #01FF75;
    margin-bottom: 15px;
}

.image-upload-label span {
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
}

.image-upload-label small {
    color: #666;
    font-size: 15px;
    margin: 0;
}

.original-preview,
.converted-preview {
    overflow: hidden;
}

.preview-header {
    background: #1a1a1a;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header h5 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.remove-image-btn {
    background: #272727;
    border: 1px solid #272727;
    border-radius: 4px;
    color: white;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.remove-image-btn:hover {
    background: #333;
}

.preview-image-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.preview-image-container img,
.preview-image-container canvas {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
}

.image-info {
    padding: 15px;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

.converter-form-select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 12px;
    color: white;
    font-size: 14px;
    box-sizing: border-box;

    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    appearance: none;
    transition: all 0.3s ease;
}

.converter-form-select:focus {
    outline: none;
    border-color: #01FF75;
}

.quality-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quality-slider {
    flex: 1;
    height: 6px;
    background: #272727;
    border-radius: 3px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.quality-slider::-webkit-slider-track {
    background: #272727;
    height: 6px;
    border-radius: 3px;
}

.quality-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #01FF75;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.quality-slider::-moz-range-track {
    background: #272727;
    height: 6px;
    border-radius: 3px;
    border: none;
}

.quality-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #01FF75;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.quality-value {
    color: #01FF75;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

.converter-button-area {
    text-align: center;
}

.converter-btn {
    background: linear-gradient(135deg, #01FF75, #00CC5E);
    color: #000;
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 255, 117, 0.3);
    width: 100%;
}

.converter-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 255, 117, 0.4);
}

.converter-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.converter-download-btn {
    background: linear-gradient(135deg, #01FF75, #00CC5E);
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.converter-download-btn:hover {
    transform: translateY(-2px);
}

.format-converter-result-section {
    background: #141414;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 30px;
}

.converter-result-header h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 25px 0;
    text-align: center;
}

.converter-result-container {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.converter-placeholder {
    color: #666;
    text-align: center;
}

.converter-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.converter-placeholder p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.converter-download-area {
    padding: 20px 0 0 0;
}

@media (max-width: 1024px) {
    .format-converter-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .format-converter-result-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .format-converter-description {
        padding: 20px;
    }
    
    .format-converter-upload-section,
    .format-converter-result-section {
        padding: 20px;
    }
    
    .image-upload-label {
        padding: 30px 15px;
    }
}

.converter-btn i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 모바일 */
/* 반응형 */
@media (max-width: 768px) {
    .web-demo-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .studio-page-header h1 {
        font-size: 2rem;
    }
    
    .demo-controls {
        bottom: 20px;
        right: 20px;
    }
    
    .demo-floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* 이미지 압축기 페이지 */
.image-compressor-container {
    max-width: 1200px;
    margin: 0 auto;
}

.image-compressor-description {
    text-align: center;
    margin-bottom: 40px;
    /* background: #141414; */
    /* border: 1px solid #272727; */
    /* border-radius: 4px; */
    /* padding: 30px; */
}

.image-compressor-description h3 {
    color: #01FF75;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.image-compressor-description p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.image-compressor-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.compressor-upload-section {
    background: #141414;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 30px;
}

.compressor-settings-group {
    margin-bottom: 30px;
    /* padding-bottom: 25px; */
}

.compressor-settings-group:last-of-type {
    border-bottom: none;
    margin-bottom: 25px;
}

.compressor-settings-group h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.compressor-input-group {
    margin-bottom: 20px;
}

.compressor-input-group:last-child {
    margin-bottom: 0;
}

.compressor-input-group label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.5;
}


.multiple-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: 2px dashed #272727;
    border-radius: 4px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.multiple-upload-label:hover {
    border-color: #01FF75;
    background: #1f1f1f;
}

.multiple-upload-label i {
    font-size: 32px;
    color: #01FF75;
    margin-bottom: 15px;
}

.multiple-upload-label span {
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
}

.multiple-upload-label small {
    color: #666;
    font-size: 15px;
    margin: 0;
    display: block;
}

.selected-images-list {
    margin-top: 20px;
    border: 1px solid #272727;
    border-radius: 4px;
    overflow: hidden;
}

.list-header {
    background: #1a1a1a;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-header h5 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.clear-all-btn {
    background: #272727;
    border: 1px solid #272727;
    border-radius: 4px;
    color: white;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.clear-all-btn:hover {
    background: #333;
}

.images-grid {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.image-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #272727;
}

.image-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.image-item .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 2px;
    color: white;
    width: 16px;
    height: 16px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-item .remove-btn:hover {
    background: #ff4444;
}

.compression-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.compression-slider {
    flex: 1;
    height: 6px;
    background: #272727;
    border-radius: 3px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.compression-slider::-webkit-slider-track {
    background: #272727;
    height: 6px;
    border-radius: 3px;
}

.compression-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #01FF75;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.compression-slider::-moz-range-track {
    background: #272727;
    height: 6px;
    border-radius: 3px;
    border: none;
}

.compression-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #01FF75;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.compression-value {
    color: #01FF75;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

.quality-description {
    color: var(--accent-color);
    font-size: 15px;
    margin-top: 5px;
}

.compressor-form-select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 12px;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    appearance: none;
}

.compressor-form-select:focus {
    outline: none;
    border-color: #01FF75;
}

.compressor-button-area {
    text-align: center;
}

.compressor-btn {
    background: linear-gradient(135deg, #01FF75, #00CC5E);
    color: #000;
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 255, 117, 0.3);
    width: 100%;
}

.compressor-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 255, 117, 0.4);
}

.compressor-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.compressor-result-section {
    background: #141414;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 30px;
}

.compressor-result-header h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 25px 0;
    text-align: center;
}

.compressor-result-container {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compressor-placeholder {
    color: #666;
    text-align: center;
}

.compressor-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.compressor-placeholder p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.compression-progress {
    width: 100%;
    text-align: center;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-header h5 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.progress-count {
    color: #01FF75;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #272727;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #01FF75, #00CC5E);
    width: 0%;
    transition: width 0.3s ease;
}

.compression-results {
    width: 100%;
}

.results-header {
    text-align: center;
    margin-bottom: 20px;
}

.results-header h5 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.compression-stats {
    color: #666;
    font-size: 14px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    max-height: 300px;
    overflow-y: auto;
}

.result-item {
    border: 1px solid #272727;
    border-radius: 4px;
    overflow: hidden;
    background: #1a1a1a;
}

.result-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.result-item-info {
    padding: 10px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.result-item-info .filename {
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
    word-break: break-all;
}

.result-item-info .size-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.result-item-info .compression-ratio {
    color: #01FF75;
    font-weight: 600;
}

.result-item .download-single-btn {
    background: #272727;
    border: none;
    color: white;
    padding: 6px;
    width: 100%;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.result-item .download-single-btn:hover {
    background: #01FF75;
    color: #000;
}

.bulk-download-btn {
    background: linear-gradient(135deg, #01FF75, #00CC5E);
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.bulk-download-btn:hover {
    transform: translateY(-2px);
}

/* 지원 형식 표시 */
.supported-formats {
    margin-top: 5px;
}

.supported-formats small {
    color: #01FF75;
    font-size: 15px;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #01FF75;
    color: #000;
    padding: 15px 20px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 1000;
    transform: translateX(300px);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

@media (max-width: 1024px) {
    .image-compressor-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .compressor-result-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .image-compressor-description {
        padding: 20px;
    }
    
    .compressor-upload-section,
    .compressor-result-section {
        padding: 20px;
    }
    
    .multiple-upload-label {
        padding: 30px 15px;
    }
    
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

.compressor-btn i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* 이미지 크기 조절기 스타일 */
.image-resizer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.image-resizer-description {
    text-align: center;
    margin-bottom: 40px;
}

.image-resizer-description h3 {
    color: #01FF75;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.image-resizer-description p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}


.image-resizer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.resizer-upload-section {
    background: #141414;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 30px;
}

.resizer-settings-group {
    margin-bottom: 30px;
}

.resizer-settings-group:last-of-type {
    border-bottom: none;
    margin-bottom: 25px;
}

.resizer-settings-group h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.resizer-input-group {
    margin-bottom: 20px;
}

.resizer-input-group:last-child {
    margin-bottom: 0;
}

.resizer-input-group label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.5;
}

.single-upload-label {
    align-items: center;
    background: #1a1a1a;
    border: 2px dashed #272727;
    border-radius: 4px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.single-upload-label:hover {
    border-color: #01FF75;
    background: #1f1f1f;
}


.single-upload-label span {
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 18px;
}

.single-upload-label small {
    color: #666;
    font-size: 15px;
}

.selected-image-preview {
    margin-top: 20px;
    border: 1px solid #272727;
    border-radius: 4px;
    overflow: hidden;
}


.preview-container {
    padding: 15px;
}

.preview-container img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 15px;
}

.original-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item .label {
    color: white;
    font-size: 16px;
}

.info-item .value {
    color: #666;
    font-weight: 600;
    font-size: 16px;
}

/* 빠른 크기 선택 버튼들 */
.preset-sizes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.preset-btn {
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    background: #272727;
    border-color: #01FF75;
}

/* 사용자 정의 크기 입력 */
.custom-size-container {
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 15px;
}

.size-input-row {
    display: flex;
    align-items: end;
    gap: 10px;
    margin-bottom: 10px;
}

.size-input-group {
    flex: 1;
}

.size-input-group label {
    margin-bottom: 5px;
    font-size: 16px;
}

.size-input-group input {
    width: 100%;
    background: #141414;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 8px 12px;
    color: white;
    font-size: 16px;
    box-sizing: border-box;
}

.size-input-group input:focus {
    outline: none;
    border-color: #01FF75;
}

.ratio-lock {
    display: flex;
    align-items: center;
    padding-bottom: 1px;
}

.ratio-lock-btn {
    background: #272727;
    border: 1px solid #666;
    border-radius: 4px;
    color: #666;
    width: 40px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ratio-lock-btn.active {
    background: #01FF75;
    border-color: #01FF75;
    color: #000;
}

.aspect-ratio-info {
    color: var(--accent-color);
    font-size: 15px;
}

/* 폼 요소들 */
.resizer-form-select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 12px;
    color: white;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-right: 40px;
    -webkit-appearance: none;
}

.resizer-form-select:focus {
    outline: none;
    border-color: #01FF75;
}

.quality-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quality-slider {
    flex: 1;
    height: 6px;
    background: #272727;
    border-radius: 3px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.quality-slider::-webkit-slider-track {
    background: #272727;
    height: 6px;
    border-radius: 3px;
}

.quality-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #01FF75;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.quality-slider::-moz-range-track {
    background: #272727;
    height: 6px;
    border-radius: 3px;
    border: none;
}

.quality-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #01FF75;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.quality-value {
    color: #01FF75;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* 버튼 스타일 */
.resizer-button-area {
    text-align: center;
}

.resizer-btn {
    background: linear-gradient(135deg, #01FF75, #00CC5E);
    color: #000;
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 255, 117, 0.3);
    width: 100%;
}

.resizer-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 255, 117, 0.4);
}

.resizer-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 결과 영역 */
.resizer-result-section {
    background: #141414;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 30px;
}

.resizer-result-header h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 25px 0;
    text-align: center;
}

.resizer-result-container {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resizer-placeholder {
    color: #666;
    text-align: center;
}

.resizer-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.resizer-placeholder p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.resize-progress {
    width: 100%;
    text-align: center;
}

.progress-header {
    margin-bottom: 15px;
}

.progress-header h5 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #272727;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #01FF75, #00CC5E);
    width: 0%;
    transition: width 0.3s ease;
}

.resize-results {
    width: 100%;
}

.results-header {
    text-align: center;
    margin-bottom: 20px;
}


.result-comparison {
    margin-bottom: 25px;
}

.before-after {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 20px;
}

.comparison-item {
    text-align: center;
    flex: 1;
}

.comparison-item h6 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.comparison-info {
    color: #666;
    font-size: 15px;
}

.info-line {
    margin-bottom: 5px;
}

.comparison-arrow {
    color: #01FF75;
    font-size: 20px;
    margin: 0 20px;
}

.result-image-container {
    text-align: center;
    margin-bottom: 25px;
}

.result-image-container img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border: 1px solid #272727;
    border-radius: 4px;
}

.download-area {
    text-align: center;
}

.download-btn {
    background: linear-gradient(135deg, #01FF75, #00CC5E);
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
}

/* 이미지 자르기 페이지 */
/* 이미지 자르기/크롭 스타일 */
.image-cropper-container {
    max-width: 1200px;
    margin: 0 auto;
}

.image-cropper-description {
    text-align: center;
    margin-bottom: 40px;
}

.image-cropper-description h3 {
    color: #01FF75;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.image-cropper-description p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.supported-formats {
    margin-top: 10px;
}


.image-cropper-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.cropper-upload-section {
    background: #141414;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 30px;
}

.cropper-settings-group {
    margin-bottom: 30px;
    padding-bottom: 25px;
}

.cropper-settings-group:last-of-type {
    border-bottom: none;
    margin-bottom: 25px;
}

.cropper-settings-group h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.cropper-input-group {
    margin-bottom: 20px;
}

.cropper-input-group:last-child {
    margin-bottom: 0;
}

.cropper-input-group label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.single-upload-label:hover {
    border-color: #01FF75;
    background: #1f1f1f;
}



/* 폼 요소들 */
.cropper-form-select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 12px;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
}

.cropper-form-select:focus {
    outline: none;
    border-color: #01FF75;
}

/* 크롭 정보 */
.crop-info-container {
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 15px;
}

.crop-info-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.crop-info-row:last-child {
    margin-bottom: 0;
}

.crop-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crop-info-item .label {
    color: #666;
    font-size: 15px;
    min-width: 30px;
}

.crop-info-item .value {
    color: #01FF75;
    font-weight: 600;
    font-size: 15px;
    min-width: 40px;
}

/* 수동 크롭 설정 */
.manual-crop-container {
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 15px;
}

.manual-crop-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.manual-crop-row:last-child {
    margin-bottom: 15px;
}

.manual-crop-item {
    flex: 1;
}

.manual-crop-item label {
    margin-bottom: 5px;
    font-size: 15px;
}

.manual-crop-item input {
    width: 100%;
    background: #141414;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 8px 10px;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
}

.manual-crop-item input:focus {
    outline: none;
    border-color: #01FF75;
}

.apply-manual-crop {
    background: #272727;
    border: 1px solid #666;
    border-radius: 4px;
    color: white;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.apply-manual-crop:hover {
    background: #01FF75;
    color: #000;
    border-color: #01FF75;
}

/* 빠른 크롭 버튼들 */
.quick-crop-buttons {
    display: flex;
    gap: 10px;
}

.quick-crop-btn {
    flex: 1;
    background: #272727;
    border: 1px solid #666;
    border-radius: 4px;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.quick-crop-btn:hover {
    background: #333;
    border-color: #01FF75;
}

/* 품질 슬라이더 */
.quality-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quality-slider {
    flex: 1;
    height: 6px;
    background: #272727;
    border-radius: 3px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.quality-slider::-webkit-slider-track {
    background: #272727;
    height: 6px;
    border-radius: 3px;
}

.quality-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #01FF75;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.quality-slider::-moz-range-track {
    background: #272727;
    height: 6px;
    border-radius: 3px;
    border: none;
}

.quality-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #01FF75;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.quality-value {
    color: #01FF75;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* 버튼 스타일 */
.cropper-button-area {
    text-align: center;
}

.cropper-btn {
    background: linear-gradient(135deg, #01FF75, #00CC5E);
    color: #000;
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 255, 117, 0.3);
    width: 100%;
}

.cropper-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 255, 117, 0.4);
}

.cropper-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 결과 영역 */
.cropper-result-section {
    background: #141414;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 30px;
}

.cropper-result-header h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 25px 0;
    text-align: center;
    display: none;
}

.cropper-result-container {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cropper-placeholder {
    color: #666;
    text-align: center;
}

.cropper-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.cropper-placeholder p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* 크롭 캔버스 */
.crop-canvas-container {
    width: 100%;
}

.crop-canvas-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.crop-canvas {
    display: block;
    /* border: 1px solid #272727; */
    /* border-radius: 4px; */
    cursor: crosshair;
}

.crop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 4px;
    overflow: hidden;
}

.crop-selection {
    position: absolute;
    border: 2px solid #01FF75;
    pointer-events: all;
    cursor: move;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
}

.crop-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #01FF75;
    border: 1px solid #000;
    border-radius: 2px;
}

.crop-handle-nw {
    top: -4px;
    left: -4px;
    cursor: nw-resize;
}

.crop-handle-ne {
    top: -4px;
    right: -4px;
    cursor: ne-resize;
}

.crop-handle-sw {
    bottom: -4px;
    left: -4px;
    cursor: sw-resize;
}

.crop-handle-se {
    bottom: -4px;
    right: -4px;
    cursor: se-resize;
}

.crop-handle-n {
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    cursor: n-resize;
}

.crop-handle-s {
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    cursor: s-resize;
}

.crop-handle-w {
    top: 50%;
    left: -4px;
    transform: translateY(-50%);
    cursor: w-resize;
}

.crop-handle-e {
    top: 50%;
    right: -4px;
    transform: translateY(-50%);
    cursor: e-resize;
}

.crop-instructions {
    text-align: center;
    margin-top: 15px;
}

.crop-instructions small {
    color: #666;
    font-size: 15px;
}

/* 진행바 및 결과 */
.crop-progress {
    width: 100%;
    text-align: center;
}

.progress-header {
    margin-bottom: 15px;
}

.progress-header h5 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #272727;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #01FF75, #00CC5E);
    width: 0%;
    transition: width 0.3s ease;
}

.crop-results {
    width: 100%;
}

.results-header {
    text-align: center;
    margin-bottom: 20px;
}

.results-header h5 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;

    display: none;
}

.result-comparison {
    margin-bottom: 25px;
}

.before-after {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    border-radius: 4px;
    padding: 20px;
}

.comparison-item {
    text-align: center;
    flex: 1;
}

.comparison-item h6 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}




.comparison-arrow {
    color: #01FF75;
    font-size: 20px;
    margin: 0 20px;
}

.result-image-container {
    text-align: center;
    margin-bottom: 25px;
}

.result-image-container img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border: 1px solid #272727;
    border-radius: 4px;
}

.download-area {
    text-align: center;
}

.download-btn {
    background: linear-gradient(135deg, #01FF75, #00CC5E);
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
}


/* 스피너 애니메이션 */
.cropper-btn i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 반응형 */
@media (max-width: 1024px) {
    .image-cropper-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cropper-result-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .image-cropper-description {
        padding: 20px;
    }
    
    .cropper-upload-section,
    .cropper-result-section {
        padding: 20px;
    }
    
    .single-upload-label {
        padding: 30px 15px;
    }
    
    .crop-info-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .manual-crop-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .quick-crop-buttons {
        flex-direction: column;
    }
    
    .before-after {
        flex-direction: column;
        gap: 15px;
    }
    
    .comparison-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

/* 스피너 애니메이션 */
.resizer-btn i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 반응형 */
@media (max-width: 1024px) {
    .image-resizer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .resizer-result-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .image-resizer-description {
        padding: 20px;
    }
    
    .resizer-upload-section,
    .resizer-result-section {
        padding: 20px;
    }
    
    .single-upload-label {
        padding: 30px 15px;
    }
    
    .preset-sizes {
        grid-template-columns: 1fr;
    }
    
    .size-input-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .ratio-lock {
        order: 3;
        justify-content: center;
        padding: 0;
    }
    
    .before-after {
        flex-direction: column;
        gap: 15px;
    }
    
    .comparison-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

/* URL 인코더,디코더 페이지 */
/* URL 인코더/디코더 스타일 */
.url-encoder-container {
    max-width: 1200px;
    margin: 0 auto;
}

.url-encoder-description {
    text-align: center;
    margin-bottom: 40px;
}

.url-encoder-description h3 {
    color: #01FF75;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.url-encoder-description p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.url-encoder-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3개 열을 동일한 크기로 */
    gap: 30px;
    margin-bottom: 40px;
}

.encoder-section {
    background: #141414;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 30px;
}

.encoder-header {
    margin-bottom: 30px;
    text-align: center;
}

.encoder-header h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.encoder-header h4 i {
    color: #01FF75;
}

.encoder-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.encoder-input-section,
.encoder-output-section {
    margin-bottom: 25px;
}

.encoder-input-section label,
.encoder-output-section label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.input-container,
.output-container {
    position: static;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.input-header label {
    color: white;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.input-container {
    position: static; /* relative에서 static으로 변경 */
}


.input-actions {
    position: static; /* absolute에서 static으로 변경 */
    top: auto;
    right: auto;
}

.input-header .input-actions {
    display: flex;
    gap: 5px;
}

.url-textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 15px;
    color: white;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.url-textarea:focus {
    outline: none;
    border-color: #01FF75;
}

.url-textarea::placeholder {
    color: #666;
}

.output-textarea {
    background: #0f0f0f;
    cursor: text;
}

.input-actions,
.output-actions {
    position: static; /* absolute에서 static으로 변경 */
    top: auto;
    right: auto;
}

.clear-btn,
.sample-btn,
.copy-btn {
    background: rgba(39, 39, 39, 0.9);
    border: 1px solid #272727;
    border-radius: 3px;
    color: white;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);

    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.clear-btn:hover {
    background: rgba(255, 68, 68, 0.9);
    border-color: #ff4444;
}

.sample-btn:hover {
    background: rgba(1, 255, 117, 0.9);
    color: #000;
    border-color: #01FF75;
}

.copy-btn:hover {
    background: rgba(1, 255, 117, 0.9);
    color: #000;
    border-color: #01FF75;
}

.encoder-options {
    margin-bottom: 25px;
}

.encoder-options label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 14px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: white;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 18px;
    height: 18px;
    background: #141414;
    border: 2px solid #272727;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-mark {
    border-color: #01FF75;
}

.radio-label input[type="radio"]:checked + .radio-mark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    background: #01FF75;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.option-description {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.encoder-button-area {
    text-align: center;
    margin-bottom: 25px;
}

.encoder-btn {
    background: linear-gradient(135deg, #01FF75, #00CC5E);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.encoder-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 255, 117, 0.3);
}

/* 참고 정보 */
.url-reference {
    background: #141414;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 30px;
}

.reference-header {
    margin-bottom: 25px;
    text-align: center;
}

.reference-header h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.reference-header h4 i {
    color: #01FF75;
}

.reference-content {
    max-width: 600px;
    margin: 0 auto;
}

.reference-table {
    border: 1px solid #272727;
    border-radius: 4px;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 80px 100px 1fr;
    background: #1a1a1a;
    padding: 15px;
    border-bottom: 1px solid #272727;
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.table-body {
    background: #0f0f0f;
}

.table-row {
    display: grid;
    grid-template-columns: 80px 100px 1fr;
    padding: 10px 15px;
    border-bottom: 1px solid #272727;
    font-size: 13px;
    transition: background-color 0.2s ease;
}

.table-row:hover {
    background: #1a1a1a;
}

.table-row:last-child {
    border-bottom: none;
}

.col-char {
    color: #01FF75;
    font-weight: 600;
    line-height: 2;
}

.col-encoded {
    color: white;
    background: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    width: fit-content;
}

.col-desc {
    color: #666;
    line-height: 2;
}

/* 토스트 메시지 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #01FF75;
    color: #000;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 1000;
    transform: translateX(300px);
    transition: transform 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
    font-size: 14px;
}

.toast.show {
    transform: translateX(0);
}

/* 반응형 */
@media (max-width: 1024px) {
    .url-encoder-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .url-encoder-description {
        padding: 20px;
    }
    
    .encoder-section,
    .url-reference {
        padding: 20px;
    }
    
    .url-textarea {
        padding: 12px;
        font-size: 13px;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 60px 80px 1fr;
        padding: 10px 12px;
    }
    
    .input-actions,
    .output-actions {
        position: static;
        margin-top: 10px;
        justify-content: flex-end;
    }
    
    .option-group {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .table-header {
        display: none;
    }
    
    .table-row {
        padding: 15px;
        border-bottom: 2px solid #272727;
    }
    
    .col-char::before {
        content: "문자: ";
        color: #666;
        font-weight: normal;
    }
    
    .col-encoded::before {
        content: "인코딩: ";
        color: #666;
        font-weight: normal;
        display: block;
        margin-bottom: 3px;
    }
    
    .col-desc::before {
        content: "설명: ";
        color: #666;
        font-weight: normal;
        display: block;
        margin-bottom: 3px;
    }
}

/* base64 인코더 페이지*/
/* Base64 인코더/디코더 스타일 */
.base64-encoder-container {
    max-width: 1200px;
    margin: 0 auto;
}

.base64-encoder-container .section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.base64-encoder-container .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background-color: #01FF75;
}


.base64-encoder-description {
    text-align: center;
    margin-bottom: 40px;
}

.base64-encoder-description h3 {
    color: #01FF75;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.base64-encoder-description p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* 섹션 스타일 */
.base64-text-section,
.base64-file-section {
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h4 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-title h4 i {
    color: #01FF75;
}

.base64-text-content,
.base64-file-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.base64-section {
    background: #141414;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 25px;
}

.base64-header {
    text-align: center;
    margin-bottom: 25px;
}

.base64-header h5 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.base64-header h5 i {
    color: #01FF75;
}

/* 입력/출력 스타일 */
.base64-input-section,
.base64-output-section {
    margin-bottom: 20px;
}

.input-header,
.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.input-header label,
.output-header label {
    color: white;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.input-actions {
    display: flex;
    gap: 5px;
}

.clear-btn,
.sample-btn,
.detect-btn,
.copy-btn {
    background: rgba(39, 39, 39, 0.9);
    border: 1px solid #272727;
    border-radius: 4px;
    color: white;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0;
}

.clear-btn:hover {
    background: rgba(255, 68, 68, 0.9);
    border-color: #ff4444;
}

.sample-btn:hover,
.detect-btn:hover,
.copy-btn:hover {
    background: rgba(1, 255, 117, 0.9);
    color: #000;
    border-color: #01FF75;
}

.base64-textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 15px;
    color: white;
    font-size: 13px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.base64-textarea:focus {
    outline: none;
    border-color: #01FF75;
    box-shadow: 0 0 0 2px rgba(1, 255, 117, 0.2);
}

.base64-textarea::placeholder {
    color: #666;
}

.output-textarea {
    background: #0f0f0f;
    cursor: text;
}

/* 파일 업로드 스타일 */
.file-upload-section {
    margin-bottom: 20px;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: 2px dashed #272727;
    border-radius: 4px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: #01FF75;
    background: #1f1f1f;
}

.file-upload-label i {
    font-size: 32px;
    color: #01FF75;
    margin-bottom: 15px;
}

.file-upload-label span {
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
}

.file-upload-label small {
    color: #666;
    font-size: 12px;
}

/* 선택된 파일 정보 */
.selected-file-info {
    margin-bottom: 20px;
    border: 1px solid #272727;
    border-radius: 4px;
    overflow: hidden;
}

.file-info-header {
    background: #1a1a1a;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-info-header h6 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.remove-file-btn {
    background: #272727;
    border: 1px solid #666;
    border-radius: 3px;
    color: white;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.3s ease;
}

.remove-file-btn:hover {
    background: #ff4444;
    border-color: #ff4444;
}

.file-info-container {
    padding: 15px;
}

.file-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-info-item i {
    font-size: 24px;
    color: #01FF75;
}

.file-info-details {
    flex: 1;
}

.file-name {
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    word-break: break-all;
}

.file-size {
    color: #666;
    font-size: 12px;
}

/* 파일 디코딩 옵션 */
.file-decode-options {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.decode-option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.decode-option-group label {
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.filename-input,
.file-type-select {
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 8px 10px;
    color: white;
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.filename-input:focus,
.file-type-select:focus {
    outline: none;
    border-color: #01FF75;
}

.file-type-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 12px 8px;
    padding-right: 30px;
    appearance: none;
    -webkit-appearance: none;
}

/* 파일 디코딩 결과 */
.file-decode-result {
    margin-bottom: 20px;
    background: #0f0f0f;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 20px;
}

.decode-result-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.result-icon i {
    font-size: 24px;
    color: #01FF75;
}

.result-details {
    flex: 1;
}

.result-filename {
    color: white;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 5px;
}

.result-size,
.result-type {
    color: #666;
    font-size: 12px;
    margin-bottom: 3px;
}

.download-area {
    text-align: center;
}

.download-btn {
    background: linear-gradient(135deg, #01FF75, #00CC5E);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 255, 117, 0.3);
}

/* 이미지 미리보기 */
.image-preview {
    margin-top: 20px;
    background: #0f0f0f;
    border: 1px solid #272727;
    border-radius: 4px;
    overflow: hidden;
}


.preview-header h6 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* 토스트 메시지 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #01FF75;
    color: #000;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 1000;
    transform: translateX(300px);
    transition: transform 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
    font-size: 14px;
}

.toast.show {
    transform: translateX(0);
}

/* 이미지 컬러 추출기 페이지 */
/* 이미지 컬러 추출기 스타일 */
.color-extractor-container {
    max-width: 1200px;
    margin: 0 auto;
}

.color-extractor-description {
    text-align: center;
    margin-bottom: 40px;
}

.color-extractor-description h3 {
    color: #01FF75;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.color-extractor-description p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.supported-formats {
    margin-top: 10px;
}


.color-extractor-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.extractor-upload-section {
    background: #141414;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 30px;
}

.extractor-settings-group {
    margin-bottom: 30px;
    padding-bottom: 25px;
}

.extractor-settings-group:last-of-type {
    border-bottom: none;
    margin-bottom: 25px;
}

.extractor-settings-group h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: none;
}

.extractor-input-group {
    margin-bottom: 20px;
}

.extractor-input-group:last-child {
    margin-bottom: 0;
}

.extractor-input-group label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}


/* 이미지 업로드 스타일 */
.image-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: 2px dashed #272727;
    border-radius: 4px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.image-upload-label:hover {
    border-color: #01FF75;
    background: #1f1f1f;
}

.image-upload-label i {
    font-size: 32px;
    color: #01FF75;
    margin-bottom: 15px;
}


/* 업로드된 이미지 미리보기 */
.uploaded-image-preview {
    margin-top: 20px;
    border: 1px solid #272727;
    border-radius: 4px;
    overflow: hidden;
}


.preview-header h5 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.preview-container {
    padding: 15px;
}

.image-info {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex-direction: column;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


/* 폼 요소 스타일 */
.extractor-form-select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 12px;
    color: white;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
}

.extractor-form-select:focus {
    outline: none;
    border-color: #01FF75;
}

/* 추출 옵션 체크박스 */
.extraction-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 15px;
}


 .checkbox-label{
    font-size: 15px !important;
    font-weight: 500 !important;
    margin-bottom: 5px !important; 
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #353535;
    border: 1px solid #272727;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease;
    margin-right: 4px;
    flex-shrink: 0;  /* 크기 고정 */
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #01FF75;
    border-color: #01FF75;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 2px;
    width: 5px;
    height: 5px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 버튼 스타일 */
.extractor-button-area {
    text-align: center;
}

.extractor-btn {
    background: linear-gradient(135deg, #01FF75, #00CC5E);
    color: #000;
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 255, 117, 0.3);
    width: 100%;
}

.extractor-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 255, 117, 0.4);
}

.extractor-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 결과 영역 */
.extractor-result-section {
    background: #141414;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 30px;
}

.extractor-result-header h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 25px 0;
    text-align: center;
}

.extractor-result-container {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.extractor-placeholder {
    color: #666;
    text-align: center;
}

.extractor-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.extractor-placeholder p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* 진행바 스타일 */
.extraction-progress {
    width: 100%;
    text-align: center;
}

.progress-header {
    margin-bottom: 20px;
}

.progress-header h5 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.progress-status {
    color: #01FF75;
    font-size: 14px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #272727;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #01FF75, #00CC5E);
    width: 0%;
    transition: width 0.3s ease;
}

/* 결과 표시 */
.extraction-results {
    width: 100%;
}

.results-header {
    text-align: center;
    margin-bottom: 25px;
}

.results-header h5 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.results-info {
    color: #666;
    font-size: 15px;
}

/* 컬러 팔레트 */
.color-palette {
    display: flex;
    height: 80px;
    border-radius: 4px;
    border: 1px solid #303030;
    overflow: hidden;
    margin-bottom: 25px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); */
}

.color-block {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.color-block:hover {
    z-index: 10;
}

.color-overlay {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 12px;
    font-weight: 600;
}

.color-block:hover .color-overlay {
    opacity: 1;
}

.color-percentage {
    font-size: 14px;
    margin-bottom: 2px;
}

.color-hex {
    font-size: 12px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* 컬러 상세 정보 */
.color-details {
    margin-bottom: 25px;
}

.color-detail-item {
    display: flex;
    align-items: center;
    background: #0f0f0f;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    gap: 15px;
}

.color-sample {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    border: 1px solid #272727;
    flex-shrink: 0;
}

.color-info {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: center;
}

.color-codes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.code-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-label {
    color: #666;
    font-size: 12px;
    min-width: 35px;
}

.code-value {
    color: white;
    font-size: 14px;    
    background: #1a1a1a;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 2px;
}

.copy-code-btn {
    background: #272727;
    border: 1px solid #303030;
    border-radius: 2px;
    color: white;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.copy-code-btn:hover {
    background: #01FF75;
    color: #000;
    border-color: #01FF75;
}

.color-stats {
    text-align: right;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-label {
    color: #666;
    font-size: 12px;
}

.stat-value {
    color: #01FF75;
    font-weight: 600;
    font-size: 16px;
}

/* 팔레트 액션 */
.palette-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}

.action-btn {
    background: #272727;
    border: 1px solid #303030;
    border-radius: 4px;
    color: white;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    background: #01FF75;
    color: #000;
    border-color: #01FF75;
}

/* 토스트 메시지 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #01FF75;
    color: #000;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 1000;
    transform: translateX(300px);
    transition: transform 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
    font-size: 14px;
}

.toast.show {
    transform: translateX(0);
}

/* 스피너 애니메이션 */
.extractor-btn i.fa-spinner {
    animation: spin 1s linear infinite;
}


/* 2색 그라데이션 팔레트 페이지 */
/* 2색 그라데이션 팔레트 스타일 */
.gradient2-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gradient2-description {
    text-align: center;
    margin-bottom: 40px;
}

.gradient2-description h3 {
    color: #01FF75;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.gradient2-description p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.gradient2-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    align-items: start;
}

/* 컨트롤 섹션 */
.gradient2-controls-section {
    background: #141414;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 30px;
}

.controls-group {
    padding-bottom: 25px;
}

.controls-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.controls-group h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

/* 컬러 입력 */
.color-input-group {
    margin-bottom: 20px;
}

.color-input-group:last-child {
    margin-bottom: 0;
}

.color-input-group label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 18px;
}

.color-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-picker {
    width: 50px;
    height: 45px;
    /* border: 1px solid #272727; */
    /* border-radius: 4px; */
    background: transparent;
    cursor: pointer;
    padding: 0;
    border: none;
}

.hex-input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 10px 12px;
    color: white;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    transition: all 0.3s ease;
}

.hex-input:focus {
    outline: none;
    border-color: #01FF75;
}

.random-color-btn {
    background: #272727;
    border: 1px solid #303030;
    border-radius: 4px;
    color: white;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.random-color-btn:hover {
    background: #01FF75;
    color: #000;
    border-color: #01FF75;
}

/* 그라데이션 설정 */
.gradient-input-group {
    margin-bottom: 20px;
}

.gradient-input-group:last-child {
    margin-bottom: 0;
}

.gradient-input-group label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 18px;
}

.gradient-select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 12px;
    color: white;
    font-size: 15px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-right: 40px;
    appearance: none;
    transition: all 0.3s ease;
}

.gradient-select:focus {
    outline: none;
    border-color: #01FF75;
}

.intensity-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.intensity-slider {
    flex: 1;
    height: 6px;
    background: #272727;
    border-radius: 3px;
    outline: none;
    appearance: none;
}

.intensity-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #01FF75;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.intensity-value {
    color: #01FF75;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
    font-size: 14px;
}

/* 프리셋 조합 */
.preset-combinations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.preset-btn {
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.preset-btn:hover {
    border-color: #01FF75;
    transform: translateY(-1px);
}

.preset-preview {
    width: 40px;
    height: 40px;
    border-radius: 2px;
}

.preset-btn span {
    color: white;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

/* 액션 버튼 */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    background: #272727;
    border: 1px solid #303030;
    border-radius: 4px;
    color: white;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn:hover {
    background: #01FF75;
    color: #000;
    border-color: #01FF75;
}

/* 미리보기 섹션 */
.gradient2-preview-section {
    background: #141414;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 30px;
}

.preview-header h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    /* margin: 0 0 25px 0; */
    text-align: center;
}

/* 메인 미리보기 */
.main-preview {
    margin-bottom: 25px;
}

.gradient-preview {
    width: 100%;
    height: 200px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.preview-info {
    text-align: center;
}

.color-info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.color-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.color-info-item span {
    color: white;
    font-size: 15px;
    font-weight: 600;
}

.gradient-arrow {
    color: #01FF75;
    font-size: 18px;
}

/* CSS 코드 섹션 */
.css-code-section {
    margin-bottom: 25px;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.code-header label {
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.copy-css-btn {
    background: #272727;
    border: 1px solid #303030;
    border-radius: 4px;
    color: white;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-css-btn:hover {
    background: #01FF75;
    color: #000;
    border-color: #01FF75;
}

.code-container {
    background: #0f0f0f;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
}

.css-code {
    color: #01FF75;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 컬러 하모니 섹션 */
.color-harmony-section {
    background: #0f0f0f;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 20px;
}

.harmony-header h5 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
}

.harmony-info {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.harmony-item {
    text-align: center;
    flex: 1;
}

.harmony-label {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.harmony-value {
    display: block;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

/* 토스트 메시지 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #01FF75;
    color: #000;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 1000;
    transform: translateX(300px);
    transition: transform 0.3s ease;
    font-size: 14px;
}

.toast.show {
    transform: translateX(0);
}

/* 반응형 */
@media (max-width: 1024px) {
    .gradient2-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gradient2-preview-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .gradient2-description {
        padding: 20px;
    }
    
    .gradient2-controls-section,
    .gradient2-preview-section {
        padding: 20px;
    }
    
    .color-input-container {
        flex-wrap: wrap;
    }
    
    .preset-combinations {
        grid-template-columns: 1fr;
    }
    
    .shape-previews {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .harmony-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .color-info-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .gradient-arrow i {
        transform: rotate(90deg);
    }
}


@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 3색 그라데이션 페이지 */
/* 3색 그라데이션 페이지 전용 스타일 */
.gradient3-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gradient3-description {
    text-align: center;
    margin-bottom: 40px;
}

.gradient3-description h3 {
    color: var(--accent-color);
    font-size: 24px;
}

.gradient3-description p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.gradient3-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.gradient3-controls-section,
.gradient3-preview-section {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 20px;
}


.color-stop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.color-stop-header label {
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.position-display {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
}

.color-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}



.random-color-btn {
    padding: 8px 12px;
    background: var(--accent-color);
    border: none;
    border-radius: 4px;
    color: #000;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.random-color-btn:hover {
    opacity: 0.8;
}

.position-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.position-slider {
    flex: 1;
    height: 6px;
    background: #202020;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.position-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.position-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.position-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.position-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.position-label {
    color: #666;
    font-size: 12px;
    min-width: 30px;
}

.gradient-input-group {
    margin-bottom: 15px;
}


.harmony-templates {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.template-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: transparent;
    border: 1px solid #272727;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.template-btn:hover {
    border-color: var(--accent-color);
}

.template-preview {
    width: 40px;
    height: 40px;
    border-radius: 2px;
}

.triadic-preview {
    background: linear-gradient(to right, #FF6B6B, #6BFF6B, #6B6BFF);
}

.analogous-preview {
    background: linear-gradient(to right, #FF6B6B, #FF8E6B, #FFB16B);
}

.split-preview {
    background: linear-gradient(to right, #FF6B6B, #6BFFB1, #6BB1FF);
}

.warm-preview {
    background: linear-gradient(to right, #FF4444, #FF8800, #FFBB00);
}

.cool-preview {
    background: linear-gradient(to right, #4444FF, #0088FF, #00BBFF);
}

.sunset-preview {
    background: linear-gradient(to right, #FF6B35, #F7931E, #FFD23F);
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 15px;
    background: var(--accent-color);
    border: none;
    border-radius: 4px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

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

.preview-header {
    margin-bottom: 15px;
}

.main-preview {
    margin-bottom: 25px;
}

.gradient-preview {
    width: 100%;
    height: 200px;
    border-radius: 4px;
    margin-bottom: 15px;
    background: linear-gradient(to bottom, #FF6B6B 0%, #FFEB3B 50%, #4ECDC4 100%);
}

.color-stops-info {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.color-stop-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: column;
}

.color-position span{
    text-align: center;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
}

.color-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}


.position-visualizer {
    margin-bottom: 25px;
}

.visualizer-header h5 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 15px;
    font-weight: 600;
}

.position-track {
    position: relative;
    height: 10px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 10px;
}

.position-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
}

.marker-label {
    color: white;
    font-size: 10px;
    font-weight: 600;
}

.track-labels {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
}


.css-code-section {
    margin-bottom: 25px;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}



.code-actions {
    display: flex;
    gap: 10px;
}

.copy-css-btn,
.export-variations-btn {
    padding: 6px 12px;
    background: var(--accent-color);
    border: none;
    border-radius: 4px;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.copy-css-btn:hover,
.export-variations-btn:hover {
    opacity: 0.8;
}


.color-analysis-section {
    margin-bottom: 25px;
}

.analysis-header h5 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 15px;
    font-weight: 600;
}

.analysis-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.analysis-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
}

.analysis-label {
    color: #666;
    font-size: 14px;
}

.analysis-value {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.gradient-gallery {
    margin-bottom: 0;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.gallery-header h5 {
    color: white;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.clear-gallery-btn {
    padding: 6px 12px;
    background: #ff4444;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.clear-gallery-btn:hover {
    opacity: 0.8;
}

.gallery-grid {
    min-height: 120px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
}

.gallery-placeholder p {
    color: #666;
    text-align: center;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.gallery-item {
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.gallery-item:hover {
    border-color: var(--accent-color);
}

.gallery-item-preview {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.gallery-item-info {
    color: #666;
    font-size: 11px;
    text-align: center;
}

.gallery-actions {
    display: flex;
    justify-content: center;
}

.gallery-action-btn {
    padding: 8px 16px;
    background: var(--accent-color);
    border: none;
    border-radius: 4px;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.gallery-action-btn:hover {
    opacity: 0.8;
}

/* 다중 워터마크 (워터마크 멀티) 페이지 */
.watermark-batch-grid {
    display: grid;
    grid-template-columns: 600px 1fr;
    gap: 20px;
}

.watermark-batch-controls {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 20px;
}

.watermark-batch-preview {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 20px;
}

.watermark-batch-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--sub-border-color);
}

.watermark-batch-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.watermark-batch-section-title {
    color: var(--accent-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.watermark-batch-label {
    display: block;
    color: white;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 500;
}

.watermark-batch-label span{
    color: #505050;
}

.watermark-batch-input,
.watermark-batch-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    background: #1a1a1a;
    color: white;
    font-size: 15px;
    margin-bottom: 8px;
}

.watermark-batch-input:focus,
.watermark-batch-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.watermark-batch-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.watermark-batch-hint {
    color: #666;
    font-size: 15px;
    margin-bottom: 15px;
    margin-top: -12px;
}

.watermark-batch-positions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.watermark-batch-position {
    position: relative;
}

.watermark-batch-position input {
    display: none;
}

.watermark-batch-position label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    background: #1a1a1a;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.watermark-batch-position input:checked + label {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(1, 255, 117, 0.1);
}

.watermark-batch-canvas {
    width: 100%;
    height: auto;
    max-height: 500px;
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    background: #0a0a0a;
    cursor: crosshair;
}

.watermark-batch-download {
    background: var(--accent-color);
    color: black;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 13px;
    transition: all 0.2s;
}

.watermark-batch-download:hover {
    background: #00e565;
}

.watermark-batch-download:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #333;
    color: #666;
}

.watermark-batch-preview-info {
    color: #666;
    font-size: 15px;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 4px;
    border: 1px solid var(--sub-border-color);
}

.watermark-batch-input,
.watermark-batch-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    background: #1a1a1a;
    color: white;
    margin-bottom: 8px;
    font-size: 15px;

    box-sizing: border-box;
    transition: all 0.3s ease;
    background-image: none;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    appearance: none;
}

.watermark-batch-input[type="file"] {
    padding: 15px;
    border: 2px dashed var(--sub-border-color);
    background: #1a1a1a;
    color: #666;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.watermark-batch-input[type="file"]:hover {
    border-color: var(--accent-color);
    background: rgba(1, 255, 117, 0.05);
}

.watermark-batch-input[type="file"]::file-selector-button {
    display: none;
}


.watermark-batch-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 12px;
}

#watermark-textOpts {
    display: block;
}

#watermark-imageOpts {
    display: none;
}

/* PDF 압축기 페이지 스타일 */
/* PDF 압축기 전용 스타일 */
.pdf-compressor-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
}

/* 조작창 패널 */
.pdf-compressor-control-panel {
    background: var(--sub-bg-color, #141414);
    border: 1px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    padding: 24px;
    height: fit-content;
}

.pdf-compressor-upload-section,
.pdf-compressor-settings-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--sub-border-color, #272727);
}

.pdf-compressor-upload-section:last-of-type,
.pdf-compressor-settings-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pdf-compressor-upload-section h4,
.pdf-compressor-settings-section h4 {
    color: var(--accent-color, #01FF75);
    margin-bottom: 16px;
    font-size: 18px;
}

/* 파일 업로드 */
.pdf-compressor-file-input {
    position: relative;
}

.pdf-compressor-file-input input[type="file"] {

    display: none;
}

.pdf-compressor-file-label {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 2px dashed var(--sub-border-color, #272727);
    border-radius: 4px;
    background: #0f0f0f;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-compressor-file-label:hover {
    border-color: var(--accent-color, #01FF75);
    background: #111111;
}

.pdf-compressor-file-label.file-selected {
    border-color: var(--accent-color, #01FF75);
    background: #111111;
}

.pdf-compressor-file-icon {
    font-size: 32px;
    opacity: 0.7;
}

.pdf-compressor-file-text strong {
    color: white;
    display: block;
    font-size: 16px;
}

.pdf-compressor-file-text small {
    color: #666;
    font-size: 14px;
}

/* 설정 컨트롤 */
.pdf-compressor-settings-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pdf-compressor-setting-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdf-compressor-setting-item > label {
    color: white;
    font-weight: 500;
    font-size: 16px;
}

.pdf-compressor-range-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-compressor-range-wrapper input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #333;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.pdf-compressor-range-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-color, #01FF75);
    cursor: pointer;
}

.pdf-compressor-range-wrapper input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-color, #01FF75);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.pdf-compressor-range-wrapper span {
    color: var(--accent-color, #01FF75);
    font-weight: 600;
    font-size: 14px;
    min-width: 50px;
    text-align: right;
}

.pdf-compressor-setting-item small {
    color: #666;
    font-size: 14px;
}

.pdf-compressor-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.pdf-compressor-checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color, #01FF75);
}

.pdf-compressor-checkbox-text {
    color: white;
    font-weight: 500;
    font-size: 16px;
}

/* 압축 버튼 */
.pdf-compressor-action-section {
    text-align: center;
}

.pdf-compressor-compress-btn {
    background: var(--accent-color, #01FF75);
    color: black;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin: 0 auto;
}

.pdf-compressor-compress-btn:hover:not(:disabled) {
    background: #00e665;
    transform: translateY(-1px);
}

.pdf-compressor-compress-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.pdf-compressor-spinner {
    animation: spin 1s linear infinite;
}
/* 드래그앤드롭 시각적 피드백을 위한 CSS */
.pdf-compressor-file-label.drag-over {
    border: 2px dashed var(--accent-color) ;
    background-color: rgba(155, 255, 255, 0.1);
}

.pdf-compressor-file-label.drag-over .pdf-compressor-file-text strong {
    color:var(--accent-color);
}

.pdf-compressor-file-label.drag-over .pdf-compressor-file-text small {
    color: var(--accent-color);
}

.pdf-compressor-file-label {
    transition: all 0.3s ease;
}

.pdf-compressor-file-label.file-selected.drag-over {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.pdf-compressor-file-label.file-selected.drag-over .pdf-compressor-file-text strong,
.pdf-compressor-file-label.file-selected.drag-over .pdf-compressor-file-text small {
    color: #28a745;
}

/* 파일 업로드 헤더 스타일 */
.pdf-compressor-upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pdf-compressor-upload-header h4 {
    margin: 0;
}

/* 파일 제거 버튼 스타일 */
.pdf-compressor-remove-btn {
    border: none;
    color: #fff;
    background: #111111;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    opacity: 0.7;
}

.pdf-compressor-remove-btn:hover {
    background-color: rgba(220, 255, 255, 0.1);
    opacity: 1;
}

.pdf-compressor-remove-btn:active {
    transform: scale(0.95);
}
/* 결과창 패널 */
.pdf-compressor-result-panel {
    background: var(--sub-bg-color, #141414);
    border: 1px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    padding: 24px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

/* 대기 상태 */
.pdf-compressor-result-waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    opacity: 0.7;
}

.pdf-compressor-waiting-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.pdf-compressor-result-waiting h4 {
    color: white;
    font-size: 18px;
}

.pdf-compressor-result-waiting p {
    color: #666;
    font-size: 16px;
}

/* 진행 상태 */
.pdf-compressor-result-progress {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.pdf-compressor-progress-header {
    text-align: center;
    margin-bottom: 24px;
}

.pdf-compressor-progress-header h4 {
    color: white;
    font-size: 18px;
    margin: 0;
}

.pdf-compressor-progress-bar {
    width: 100%;
    height: 8px;
    background: #272727;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.pdf-compressor-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #01FF75, #00CC5E);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.pdf-compressor-progress-text {
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

/* 완료 상태 */
.pdf-compressor-result-complete {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pdf-compressor-result-header {
    text-align: center;
    margin-bottom: 24px;
}

.pdf-compressor-result-header h4 {
    color: var(--accent-color, #01FF75);
    font-size: 20px;
    margin: 0;
}

.pdf-compressor-comparison {
    margin-bottom: 32px;
}

.pdf-compressor-before-after {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    border-radius: 4px;
    border: 1px solid #272727;
    padding: 20px;
}

.pdf-compressor-comparison-item {
    text-align: center;
    flex: 1;
}

.pdf-compressor-comparison-item h6 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.pdf-compressor-file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdf-compressor-file-info div {
    color: #666;
    font-size: 15px;
}

.pdf-compressor-comparison-arrow {
    color: var(--accent-color, #01FF75);
    font-size: 20px;
    margin: 0 20px;
    font-weight: bold;
}

.pdf-compressor-download-section {
    text-align: center;
}

.pdf-compressor-download-btn {
    background: linear-gradient(135deg, #01FF75, #00CC5E);
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-compressor-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 255, 117, 0.3);
}

/* 애니메이션 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 반응형 */
@media (max-width: 1024px) {
    .pdf-compressor-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .pdf-compressor-control-panel,
    .pdf-compressor-result-panel {
        padding: 20px;
    }
    
    .pdf-compressor-file-label {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .pdf-compressor-range-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .pdf-compressor-range-wrapper span {
        text-align: center;
        min-width: auto;
    }
    
    .pdf-compressor-before-after {
        flex-direction: column;
        gap: 16px;
    }
    
    .pdf-compressor-comparison-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

/* ==================== 스튜디오 홈 버튼 ==================== */
.studio-home-section {
    display: flex;
    justify-content: center;
    margin: 25px auto 0 auto;
    max-width: 1200px;
}

.studio-home-section .studio-home-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid rgba(1, 255, 117, 0.3);
    border-radius: 50px;
    padding: 12px 25px 12px 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    max-width: 400px;
    margin-top: 0px;
    margin-bottom: 40px;
}

.studio-home-section .studio-home-btn:hover {
    transform: translateY(-5px) scale(1.02);
    background: transparent;
    border-color: rgba(1, 255, 117, 0.7);
}

.studio-home-section .home-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(1, 255, 117, 0.2) 0%, rgba(1, 255, 117, 0.1) 100%);
    border: 2px solid rgba(1, 255, 117, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.studio-home-section .home-icon i {
    font-size: 20px;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.studio-home-section .home-pulse {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid rgba(1, 255, 117, 0.4);
    border-radius: 50%;
    animation: home-pulse 2s infinite;
}

/* 펄스 애니메이션 */
@keyframes home-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.studio-home-section .home-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    text-align: center;
}

.studio-home-section .home-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.studio-home-section .home-title span{
    color: var(--accent-color);
}

.studio-home-section .home-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.studio-home-section .home-arrow {
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.studio-home-section .home-arrow i {
    font-size: 14px;
    color: var(--background-color);
    transition: all 0.3s ease;
}

/* 호버 효과 */
.studio-home-section .studio-home-btn:hover .home-icon {
    background: linear-gradient(135deg, rgba(1, 255, 117, 0.3) 0%, rgba(1, 255, 117, 0.2) 100%);
    border-color: rgba(1, 255, 117, 0.8);
    transform: rotate(10deg);
    box-shadow: 0 0 15px rgba(1, 255, 117, 0.4);
}

.studio-home-section .studio-home-btn:hover .home-icon i {
    color: #00FF88;
}

.studio-home-section .studio-home-btn:hover .home-title {
    color: var(--accent-color);
}

.studio-home-section .studio-home-btn:hover .home-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.studio-home-section .studio-home-btn:hover .home-arrow {
    background: #00FF88;
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 15px rgba(1, 255, 117, 0.5);
}



/* 스튜디오 페이지 기본 스타일 */
.studio-container {
    max-width: 1200px;
    margin: 0 auto;
}

.studio-page-content {
min-height: 600px;
background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(1, 1, 1, 0.95) 100%);
border: 2px solid rgba(1, 255, 117, 0.2);
border-radius: 4px;
padding: 40px;
backdrop-filter: blur(10px);
position: relative;
overflow: hidden;
}

.studio-page-content::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(
45deg,
transparent 30%,
rgba(1, 255, 117, 0.02) 50%,
transparent 70%
);
animation: studio-content-scan 8s infinite linear;
pointer-events: none;
}

@keyframes studio-content-scan {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(200%) skewX(-15deg); }
}


.studio-description {
    text-align: center;
    margin-bottom: 40px;
}

.studio-description h3 {
    color: #01FF75;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.studio-description p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.supported-formats {
    margin-top: 10px;
}
/* 스튜디오 페이지 기본 스타일 종료 */
/* 그라데이션/단색 프리뷰 레이어는 클릭 막지 않게 */
#gradient-color-display,
#color-display,
#gradient-color-display::before,
#gradient-color-display::after {
  pointer-events: none;
}

/* 컨트롤이 항상 위에 오도록 */
.single-card-container .card-controls {
  position: relative;
  z-index: 10;
}

/* 프리뷰 카드 자체는 클리핑 유지 (광고/그림자만 잘리면 감수 or 아래 대안 참고) */
.color-card {
  position: relative;
  overflow: hidden; /* 유지 */
}

/* 만약 프리뷰를 절대배치로 깔았다면 확실히 아래로 */
.color-card .color-display-area {
  position: relative; /* 또는 absolute라도 z-index를 낮게 */
  z-index: 1;
}

/* 오늘의 운세컬러 뽑기 */
/* 운세 컬러 카드 페이지 전용 스타일 */
.fortune-app {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.date-display {
    text-align: center;
    /* color: var(--accent-color, #01FF75); */
    color: white;
    font-size: 22px;
    font-weight: 600;
    padding: 12px 24px;
    /* background: rgba(1, 255, 117, 0.1); */
    /* background: #000; */
    /* border: 1px solid rgba(1, 255, 117, 0.2); */
    /* border-radius: 4px; */
    width: 300px;
    margin: 0 auto;
    margin-top: -40px;
    margin-bottom: 24px;

    font-family: 'GH', serif;
}

.main-area {
    background: var(--sub-bg-color, #141414);
    border: 1px solid var(--sub-border-color, #272727);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-height: 400px;
    position: relative;
}

/* 질문 화면 */
.question-screen {
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(1, 255, 117, 0.05) 0%, rgba(1, 255, 117, 0.02) 100%);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.crystal-ball {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-color, #01FF75), rgba(1, 255, 117, 0.7));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    position: relative;
    cursor: pointer;
    animation: floatIdle 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* 기본 떠다니는 애니메이션 */
@keyframes floatIdle {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.05); }
    50% { transform: scale(0.98); }
    75% { transform: scale(1.08); }
}

/* 호버 시 애니메이션 */
.crystal-ball:hover {
    animation: hoverPulse 0.8s ease-in-out infinite;
    filter: brightness(1.2);
}

@keyframes hoverPulse {
    0%, 100% { transform: scale(1.1) ; }
    50% { transform: scale(1.15) ; box-shadow: 0 15px 30px rgba(1, 255, 117, 0.4); }
}


.crystal-shine {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.particle-container {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color, #01FF75);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.question-screen h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.question-screen p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* 결과 화면 */
.result-screen {
    padding: 40px;
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.result-screen.show {
    opacity: 1;
    transform: translateY(0);
    background: #000;
}

.color-section {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    align-items: center;
    flex-direction: column;
}

.color-box {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    background: var(--accent-color, #01FF75);
    background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 70%);
}

.ft-color-info {
display: flex;
flex: 1;
gap: 0px;
justify-items: center;
flex-direction: column;
align-items: center;
}

.brand {
    color: white;
    font-size: 26px;
    font-weight: 700;
}

.brand span{
    color: var(--accent-color);
    font-weight: 900;
}

.hex-code {
    color: #666;
    font-size: 20px;
    font-weight: 600;
    /* font-family: 'Courier New', monospace; */
}

.color-name {
    color: #fff;
    font-size: 20px;
    font-weight: 500;
}


/* 운수 */
.fortune-badge {
    /* background: linear-gradient(135deg, var(--accent-color, #01FF75), rgba(1, 255, 117, 0.8)); */
    color: white;
    display: block;
    /* padding: 8px 16px; */
    /* border-radius: 4px; */
    font-size: 48px;
    font-weight: 100;
    text-align: center;
    /* margin-bottom: 20px; */
    font-family: 'KDG', sans-serif; /* KDG 폰트 적용 */

    /* 버튼 텍스트 크기만큼 */
    /* width: fit-content;   */
    /* background: white;
    color: #000;
    width: 80px;
    height: 80px;
    border-radius: 999%;
    margin: 0 auto;
    line-height: 80px;
    text-align: center; */
}

/* 두루마리 */
.scroll-paper {
    background: #f8f5f0;
    color: #2c1810;
    padding: 24px 24px;
    border: 8px solid #8B4513;
    border-left: 8px solid #654321;
    border-right: 8px solid #654321;
    border-radius: 4px;
    position: relative;
    margin: 20px 0;
    font-family: 'EunSikDimiBang', serif;
    font-size: 24px;
    line-height: 1.6;
    letter-spacing: 0.05em;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-paper.expand {
    transform: scaleX(1);
}

/* 양 옆 롤러 */
.scroll-paper::before,
.scroll-paper::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 115%;
    background: linear-gradient(45deg, #654321, #8B4513);
    border-radius: 2px;
    z-index: 2;
}

.scroll-paper::before {
    left: -10px;
}

.scroll-paper::after {
    right: -10px;
}

.scroll-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    transition-delay: 0.8s;
    font-family: 'EunSikDimiBang', serif;
}

.scroll-paper.expand .scroll-content {
    opacity: 1;
    transform: translateY(0);
}

/* 세부 정보 */
.details-grid {
    margin-top: 32px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.label {
    color: var(--accent-color, #01FF75);
    font-size: 18px;
    font-weight: 600;
    min-width: 80px;
}

.luck-meter {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    max-width: 200px;
}

.luck-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color, #01FF75), rgba(1, 255, 117, 0.7));
    border-radius: 4px;
    width: 0%;
    transition: width 1s ease;
}

.score {
    color: #fff;
    font-weight: 600;
    min-width: 40px;
}

.value {
    color: #fff;
    font-weight: 500;
}

/* 버튼 영역 */
.button-area {
    display: none;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color, #01FF75), rgba(1, 255, 117, 0.8));
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 255, 117, 0.3);
}

.btn-secondary {
    background: var(--sub-bg-color, #141414);
    border: 1px solid var(--sub-border-color, #272727);
    color: #666;
}

.btn-secondary:hover {
    border-color: var(--accent-color, #01FF75);
    color: var(--accent-color, #01FF75);
    transform: translateY(-1px);
}

/* 오버레이 (파란 구슬) */
.overlay {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.overlay.active {
    display: flex;
}

.blue-crystal {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #4169E1, #0066FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: bluePulse 1.8s ease-in-out;
}

@keyframes bluePulse {
    0% { 
        transform: scale(0.8);
        box-shadow: 0 0 20px #4169E1;
    }
    50% { 
        transform: scale(1.3);
        box-shadow: 0 0 80px #4169E1, 0 0 120px #0066FF;
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 40px #4169E1, 0 0 80px #0066FF;
    }
}

/* 파티클 애니메이션 */
@keyframes particleBurst {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.5);
    }
}

/* 날짜 계산기 페이지 */
/* 날짜 계산기 전용 스타일 */
.date-calc-container {
    max-width: 1200px;
    margin: 0 auto;
}

.date-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.date-calc-card {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 20px 30px;
    transition: all 0.3s ease;
}

.date-calc-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(1, 255, 117, 0.1);
}

.date-calc-card-title {
    color: var(--accent-color);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.date-calc-input-group {
    margin-bottom: 20px;
}

.date-calc-label {
    display: block;
    color: white;
    font-weight: bold;
    margin-bottom: 8px;
}

.date-calc-input {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.date-calc-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.date-calc-input:hover {
    border-color: #444;
}

/* 달력 아이콘 스타일링 */
.date-calc-input[type="date"]::-webkit-calendar-picker-indicator {
    background-color: var(--accent-color);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 2px;
}

.date-calc-input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background-color: var(--accent-color-hover);
}

/* Firefox용 달력 아이콘 */
.date-calc-input[type="date"]::-moz-calendar-picker-indicator {
    filter: invert(1);
}

.date-calc-button {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.date-calc-button:hover {
    background: #00e066;
    transform: translateY(-2px);
}

.date-calc-result {
    background: #1a1a1a;
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.date-calc-result.updated {
    animation: resultUpdate 0.5s ease;
}

@keyframes resultUpdate {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

.date-calc-result-text {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
}

.date-calc-result-highlight {
    color: var(--accent-color);
    font-size: 20px;
}

.date-calc-error {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.date-calc-row {
    display: flex;
    gap: 15px;
    align-items: end;
}

.date-calc-col {
    flex: 1;
}

.date-calc-add-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

.date-calc-number-input {
    width: 80px;
    padding: 8px;
    background: #1a1a1a;
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
}

.date-calc-number-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.date-calc-select {
    padding: 8px;
    background: #1a1a1a;
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    color: white;
    transition: all 0.3s ease;
}

.date-calc-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.date-calc-small-button {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 10px 26px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.date-calc-small-button:hover {
    background: #00e066;
}

/* 로또 번호 생성기 페이지 */
/* 로또 번호 생성기 전용 스타일 */
.lotto-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.lotto-generator-card {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.lotto-generator-card:hover {
    border-color: var(--accent-color);
}

.lotto-card-title {
    color: var(--accent-color);
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
}

.lotto-options {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.lotto-option-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lotto-label {
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.lotto-select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    padding: 12px;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    appearance: none;
    transition: all 0.3s ease;
    min-width: 120px;
}

.lotto-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.lotto-select:hover {
    border-color: #444;
}

.lotto-generate-btn {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 15px 40px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto 30px;
    position: relative;
    overflow: hidden;
}

.lotto-generate-btn:hover {
    background: #00e066;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 255, 117, 0.3);
}

.lotto-results-section {
    margin-top: 20px;
}

.lotto-result-group {
    background: #1a1a1a;
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.lotto-result-group.new-result {
    animation: resultAppear 0.6s ease-out;
}

@keyframes resultAppear {
    0% { 
        opacity: 0; 
    }
    100% { 
        opacity: 1; 
    }
}

.lotto-result-title {
    color: white;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.lotto-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.2;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.lotto-number:nth-child(1) { background: #8b5cf6; }
.lotto-number:nth-child(2) { background: #06b6d4; }
.lotto-number:nth-child(3) { background: #10b981; }
.lotto-number:nth-child(4) { background: #f59e0b; }
.lotto-number:nth-child(5) { background: #ef4444; }
.lotto-number:nth-child(6) { background: #ec4899; }

.lotto-number.bonus {
    background: var(--accent-color) !important;
    color: #000 !important;
    border-color: #00e066;
    position: relative;
}

.lotto-number.bonus::before {
    content: '+';
    position: absolute;
    top: -8px;
    left: -8px;
    font-size: 12px;
    color: var(--accent-color);
}

.lotto-info {
    text-align: center;
    color: #666;
    font-size: 15px;
    margin-top: 10px;
}

.lotto-statistics {
    background: #1a1a1a;
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

.lotto-stats-title {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.lotto-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.lotto-stat-item {
    text-align: center;
}

.lotto-stat-value {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.lotto-stat-label {
    color: #666;
    font-size: 15px;
    margin-top: 5px;
}

.lotto-clear-btn {
    background: var(--accent-color);
    color: var(--title-color);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 15px auto 0;
}

.lotto-clear-btn:hover {
    background: var(--accent-color-hover);
}

/* 강화 시뮬레이션 페이지 */
/* 강화 시뮬레이터 전용 스타일 */
.enhance-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.enhance-main-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.ehc-wapper{
    display: flex; 
    flex-direction: row; 
    gap: 20px;
}

.enhance-item-section {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.enhance-item-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(1, 255, 117, 0.1) 0%, 
        rgba(1, 255, 117, 0.05) 40%, 
        transparent 70%);
    pointer-events: none;
}

.enhance-item-section.enhancing {
    animation: enhanceGlow 2s ease-in-out;
}

@keyframes enhanceGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(1, 255, 117, 0.4); }
    50% { box-shadow: 0 0 40px rgba(1, 255, 117, 0.8), inset 0 0 20px rgba(1, 255, 117, 0.2); }
}

.enhance-item-title {
    color: var(--accent-color);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.enhance-item-display {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, 
        #3a3a3a 0%, 
        #2a2a2a 25%, 
        #1a1a1a 50%, 
        #2a2a2a 75%, 
        #3a3a3a 100%);
    border: 3px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

.enhance-item-display.success {
    animation: successPulse 1s ease-out;
    border-color: var(--accent-color);
    box-shadow: 
        0 0 30px rgba(1, 255, 117, 0.6),
        inset 0 0 20px rgba(1, 255, 117, 0.2);
}

.enhance-item-display.fail {
    animation: failFlash 0.8s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes failFlash {
    0%, 100% { 
        background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 25%, #1a1a1a 50%, #2a2a2a 75%, #3a3a3a 100%);
        border-color: #555;
    }
    25%, 75% { 
        background: linear-gradient(135deg, #ff4444 0%, #cc3333 50%, #ff4444 100%);
        border-color: #ff6666;
    }
    50% { 
        background: linear-gradient(135deg, #ff6666 0%, #ff4444 50%, #ff6666 100%);
        border-color: #ff8888;
    }
}

.enhance-level {
    font-size: 48px;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(1, 255, 117, 0.8);
    z-index: 2;
    position: relative;
}

.enhance-level.fail-effect {
    animation: levelFail 0.8s ease-out;
}

@keyframes levelFail {
    0% { color: var(--accent-color); text-shadow: 0 0 15px rgba(1, 255, 117, 0.8); }
    50% { color: #ff4444; text-shadow: 0 0 15px rgba(255, 68, 68, 0.8); transform: scale(1.2); }
    100% { color: var(--accent-color); text-shadow: 0 0 15px rgba(1, 255, 117, 0.8); transform: scale(1); }
}

.enhance-controls {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 30px;
}

.enhance-controls-title {
    color: var(--accent-color);
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.enhance-setting-group {
    margin-bottom: 20px;
}

.enhance-label {
    display: block;
    color: white;
    font-weight: bold;
    margin-bottom: 8px;
}

.enhance-input {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #272727;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.enhance-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.enhance-radio-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.enhance-radio {
    width: 14px;
    height: 14px;
    accent-color: var(--accent-color);
}

.enhance-radio-label {
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.enhance-button {
    width: 100%;
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.enhance-button:hover {
    background: #00e066;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 255, 117, 0.3);
}

.enhance-button:disabled {
    background: #444;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.enhance-stats {
    background: #1a1a1a;
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

.enhance-stats-title {
    color: var(--accent-color);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.enhance-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.enhance-stat-item {
    text-align: center;
}

.enhance-stat-value {
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.enhance-stat-label {
    color: #666;
    font-size: 15px;
    margin-top: 5px;
}

.enhance-history {
    background: #1a1a1a;
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.enhance-history-title {
    color: var(--accent-color);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.enhance-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 16px;
}

.enhance-history-item:last-child {
    border-bottom: none;
}

.enhance-history-success {
    color: var(--accent-color);
}

.enhance-history-fail {
    color: #ff4444;
}

.enhance-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.enhance-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: particleFloat 2s ease-out forwards;
}

.enhance-particle.success {
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
}

.enhance-particle.fail {
    background: #ff4444;
    box-shadow: 0 0 8px #ff4444;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2);
    }
}

.enhance-reset-btn {
    background: #666;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.enhance-reset-btn:hover {
    background: #888;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .enhance-main-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .enhance-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .lotto-options {
        flex-direction: column;
        align-items: center;
    }
    
    .lotto-numbers {
        gap: 6px;
    }
    
    .lotto-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .lotto-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 모바일 반응형 */
@media (max-width: 1024px) {
    .date-calc-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .date-calc-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .date-calc-add-controls {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .date-calc-card {
        padding: 20px;
    }
}

/* 입력 검증 스타일 */
.date-calc-input.invalid {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.date-calc-input.valid {
    border-color: var(--accent-color);
}

/* 이미지맵 생성기 페이지 */
/* image-map-page.css */
/* 전체 레이아웃 */
.image-map-main-container {
display: grid;
grid-template-columns: 500px 1fr;
gap: 24px;
margin-top: 20px;
}

/* 왼쪽 설정 패널 */
.image-map-settings-panel {
background: var(--sub-bg-color);
border: 1px solid var(--sub-border-color);
border-radius: 4px;
padding: 24px;
height: fit-content;
}

.image-map-settings-panel h4 {
color: white;
font-size: 18px;
margin-bottom: 16px;
font-weight: 600;
}

/* 오른쪽 결과 패널 */
.image-map-result-panel {
background: var(--sub-bg-color);
border: 1px solid var(--sub-border-color);
border-radius: 4px;
padding: 24px;
}

.image-map-result-panel h4 {
color: white;
font-size: 18px;
margin-bottom: 16px;
font-weight: 600;
}

/* 파일 업로드 영역 */
.image-upload-section {
margin-bottom: 24px;
}

.upload-area {
border: 2px dashed var(--sub-border-color);
border-radius: 4px;
padding: 40px 20px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
background: var(--sub-bg-color);
position: relative;
}

.upload-area:hover {
border-color: var(--accent-color);
background: rgba(1, 255, 117, 0.05);
}

.upload-area.drag-over {
border-color: var(--accent-color);
background: rgba(1, 255, 117, 0.1);
}

.upload-text span {
color: white;
font-size: 16px;
display: block;
margin-bottom: 8px;
}

.upload-text small {
color: #666;
font-size: 14px;
}

.url-input-section {
display: flex;
gap: 12px;
margin-top: 16px;
}

.url-input {
flex: 1;
padding: 12px;
border: 1px solid var(--sub-border-color);
border-radius: 4px;
background: var(--sub-bg-color);
color: white;
font-size: 14px;
transition: all 0.3s ease;
}

.url-input::placeholder {
color: #666;
}

.load-url-btn {
padding: 12px 20px;
background: var(--accent-color);
color: black;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 600;
font-size: 14px;
transition: all 0.3s ease;
}

.load-url-btn:hover {
background: rgba(1, 255, 117, 0.8);
}

/* 이미지 정보 */
.image-info {
background: rgba(39, 39, 39, 0.5);
border: 1px solid var(--sub-border-color);
border-radius: 4px;
padding: 12px;
margin-bottom: 16px;
color: #666;
font-size: 14px;
display: none;
}

.image-info.active {
display: block;
}

.image-info strong {
color: white;
}

/* 도형 선택 */
.shape-controls {
margin-bottom: 24px;
}

.shape-selector {
display: flex;
gap: 8px;
margin-bottom: 16px;
}

.shape-btn {
flex: 1;
padding: 10px 12px;
border: 1px solid var(--sub-border-color);
border-radius: 4px;
background: var(--sub-bg-color);
color: #666;
cursor: pointer;
font-size: 15px;
font-weight: 600;
text-align: center;
transition: all 0.3s ease;
}

.shape-btn:hover,
.shape-btn.active {
background: var(--accent-color);
color: black;
border-color: var(--accent-color);
}

.shape-clear-btn {
/* width: auto ; */
flex:1;
padding: 10px 12px;
background: transparent;
color: #ff4757;
border: 1px solid #ff4757;
border-radius: 4px;
cursor: pointer;
font-size: 15px;
text-align: center;
transition: all 0.3s ease;
font-weight: 600;
}

.shape-clear-btn:hover {
background: #ff4757;
color: white;
}

/* 실시간 좌표 표시 */
.coordinates-display {
background: rgba(39, 39, 39, 0.5);
border: 1px solid var(--sub-border-color);
border-radius: 4px;
padding: 12px;
margin-bottom: 16px;
color: #666;
font-size: 16px;
font-family: 'Courier New', monospace;
display: none;
}

.activeAreaCoords{
color: var(--accent-color);
}

.coordinates-display.active {
display: block;
}

.coordinates-display .coord-label {
color: white;
font-weight: 600;
margin-bottom: 4px;
}

/* 영역 설정 */
.area-settings {
margin-bottom: 24px;
display: none;
}

.area-settings.active {
display: block;
}

.settings-form {
display: flex;
/* flex-direction: column; */

flex-direction: row;
align-items: center;
gap: 8px;
transition: all 0.3s ease;
}

.settings-input,
.settings-select {
flex:1;
padding: 12px;
border: 1px solid var(--sub-border-color);
width: 50%;
border-radius: 4px;
background: var(--sub-bg-color);
color: white;
font-size: 14px;
transition: all 0.3s ease;
}

.coord-label, #imageDimensions{
font-size: 16px;
}
#activeAreaCoords, #imageDimensions{
color: var(--accent-color);
}

.settings-select {
flex: 1;
/* min-width: 150px; */
padding: 12px;
border: 1px solid var(--sub-border-color);
border-radius: 4px;
background: var(--sub-bg-color);
color: white;
font-size: 14px;
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
background-position: right 8px center;
background-repeat: no-repeat;
background-size: 20px 20px;
width: 50%;
appearance: none;
transition: all 0.3s ease;
cursor: pointer;
}

.settings-select:focus {
outline: none;
border-color: var(--accent-color);
}

.settings-select option {
background: var(--sub-bg-color);
color: white;
}

.settings-input::placeholder {
color: #666;
}

.settings-select option {
background: var(--sub-bg-color);
color: white;
}

.add-area-btn {
padding: 12px 20px;
background: var(--accent-color);
color: black;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 600;
font-size: 14px;
transition: all 0.3s ease;
white-space: nowrap; /* 버튼 텍스트 줄바꿈 방지 */
flex-shrink: 0; /* 버튼 크기 고정 */
}

.add-area-btn:hover {
background: rgba(1, 255, 117, 0.8);
}

/* URL 입력과 설정 입력 필드 포커스 효과 */
.url-input:focus,
.settings-input:focus {
outline: none;
border-color: var(--accent-color);
}

/* 영역 목록 */
.areas-list {
margin-bottom: 24px;
display: none;
}

.areas-list.active {
display: block;
}

.areas-container {
max-height: 200px;
overflow-y: auto;
}

.area-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px;
background: rgba(39, 39, 39, 0.5);
border: 1px solid var(--sub-border-color);
border-radius: 4px;
margin-bottom: 8px;
}

.area-info {
flex: 1;
color: #666;
font-size: 13px;
}

.area-info strong {
color: white;
}

.delete-area-btn {
padding: 6px 12px;
background: transparent;
color: #ff4757;
border: 1px solid #ff4757;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
transition: all 0.3s ease;
}

.delete-area-btn:hover {
background: #ff4757;
color: white;
}

/* 이미지 편집 영역 */
.image-canvas-container {
border: 1px solid var(--sub-border-color);
border-radius: 4px;
padding: 15px;
/* background: #0a0a0a; */
text-align: center;
/* min-height: 400px; */
display: flex;
align-items: center;
justify-content: center;
overflow: auto;
position: relative;


background: var(--accent-color);
padding: 0px;
}

.canvas-placeholder {
color: #666;
font-size: 16px;

color: var(--background-color);
padding: 20px;
}

#imageCanvas {
max-width: 100%;
cursor: crosshair;
/* border-radius: 4px; */
/* border: 2px solid transparent; */
transition: border-color 0.3s ease;
width: auto !important;
height: auto !important;
}

#imageCanvas.drawing {
border-color: var(--accent-color);
}



/* HTML 코드 출력 */
.code-output {
margin-top: 24px;
display: none;
}

.code-output.active {
display: block;
}

.code-textarea {
width: 100%;
height: 200px;
padding: 16px;
border: 1px solid var(--sub-border-color);
border-radius: 4px;
background: #0a0a0a;
color: var(--accent-color);
font-family: 'Courier New', monospace;
font-size: 13px;
line-height: 1.5;
resize: vertical;
margin-bottom: 12px;
transition: all 0.3s ease;
}

.code-textarea:focus {
outline: none;
border-color: var(--accent-color);
}

.copy-code-btn {
width: 100%;
padding: 12px;
background: var(--accent-color);
color: black;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 600;
font-size: 14px;
transition: all 0.3s ease;
}

.copy-code-btn:hover {
background: rgba(1, 255, 117, 0.8);
}

/* pdf 합치기 페이지 */
/* 추가 드래그앤드롭 영역 */
.pdf-merger-additional-drop {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed var(--sub-border-color);
    border-radius: 4px;
    padding: 24px;
    margin-top: 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pdf-merger-additional-drop:hover,
.pdf-merger-additional-drop.pdf-merger-drag-over {
    border-color: var(--accent-color);
    background: rgba(1, 255, 117, 0.05);
}

.pdf-merger-additional-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pdf-merger-additional-content i {
    font-size: 24px;
    color: var(--accent-color);
    opacity: 0.7;
}

.pdf-merger-additional-content p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* 토스트 메시지 스타일 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    animation: slideIn 0.3s ease forwards;
    max-width: 350px;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-content i {
    font-size: 16px;
    flex-shrink: 0;
}

.toast-content span {
    color: white;
    font-size: 14px;
    line-height: 1.4;
}

.toast-success {
    border-left: 4px solid var(--accent-color);
}

.toast-success .toast-content i {
    color: var(--accent-color);
}

.toast-error {
    border-left: 4px solid #ff4444;
}

.toast-error .toast-content i {
    color: #ff4444;
}

.toast-info {
    border-left: 4px solid #4A9EFF;
}

.toast-info .toast-content i {
    color: #4A9EFF;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}/* 완료 상태 */
.pdf-merger-complete {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 60px 20px;
    text-align: center;
}

.pdf-merger-complete-content {
    max-width: 400px;
    margin: 0 auto;
}/* PDF 합치기 페이지 전용 스타일 */
.pdf-merger-tool {
    max-width: 800px;
    margin: 0 auto;
}

/* 업로드 영역 */
.pdf-merger-upload-area {
    background: var(--sub-bg-color);
    border: 2px dashed var(--sub-border-color);
    border-radius: 4px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pdf-merger-upload-area:hover {
    border-color: var(--accent-color);
    background: rgba(1, 255, 117, 0.05);
}

.pdf-merger-upload-area.pdf-merger-drag-over {
    border-color: var(--accent-color);
    background: rgba(1, 255, 117, 0.1);
}

.pdf-merger-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pdf-merger-upload-icon {
    font-size: 48px;
    opacity: 0.7;
}

.pdf-merger-upload-area h4 {
    color: white;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.pdf-merger-upload-area p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.pdf-merger-select-btn {
    background: var(--accent-color);
    color: black;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-merger-select-btn:hover {
    background: rgba(1, 255, 117, 0.8);
    transform: translateY(-1px);
}

/* 파일 목록 */
.pdf-merger-file-list {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 24px;
}

.pdf-merger-file-header {
    margin-bottom: 20px;
}

.pdf-merger-file-header h4 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.pdf-merger-file-header p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.pdf-merger-files {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.pdf-merger-file-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: grab;
    transition: all 0.3s ease;
}

.pdf-merger-file-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(1, 255, 117, 0.3);
}

.pdf-merger-file-item.pdf-merger-dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.pdf-merger-file-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.pdf-merger-file-info {
    flex: 1;
}

.pdf-merger-file-name {
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.pdf-merger-file-size {
    color: #666;
    font-size: 12px;
}

.pdf-merger-file-actions {
    display: flex;
    gap: 8px;
}

.pdf-merger-file-remove {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.3);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.pdf-merger-file-remove:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff4444;
}

/* 작업 버튼들 */
.pdf-merger-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.pdf-merger-add-more {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-merger-add-more:hover {
    background: rgba(1, 255, 117, 0.1);
    transform: translateY(-1px);
}

.pdf-merger-merge-btn {
    background: var(--accent-color);
    color: black;
    border: none;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-merger-merge-btn:hover {
    background: rgba(1, 255, 117, 0.8);
    transform: translateY(-1px);
}

/* 진행 상황 */
.pdf-merger-progress {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 60px 20px;
    text-align: center;
}

.pdf-merger-progress-content {
    max-width: 400px;
    margin: 0 auto;
}

.pdf-merger-progress-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.pdf-merger-progress h4 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
}

.pdf-merger-progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.pdf-merger-progress-fill {
    background: var(--accent-color);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.pdf-merger-progress p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* 완료 상태 */
.pdf-merger-complete {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 60px 20px;
    text-align: center;
}

.pdf-merger-complete-content {
    max-width: 400px;
    margin: 0 auto;
}

.pdf-merger-complete-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.pdf-merger-complete h4 {
    color: white;
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
}

.pdf-merger-complete p {
    color: #666;
    margin: 0 0 24px 0;
    font-size: 14px;
}

.pdf-merger-complete-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.pdf-merger-download-btn {
    background: var(--accent-color);
    color: black;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-merger-download-btn:hover {
    background: rgba(1, 255, 117, 0.8);
    transform: translateY(-1px);
}

.pdf-merger-new-btn {
    background: transparent;
    color: #666;
    border: 1px solid var(--sub-border-color);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-merger-new-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateY(-1px);
}

/* 반응형 */
@media (max-width: 768px) {
    .pdf-merger-upload-area {
        padding: 40px 16px;
    }
    
    .pdf-merger-file-list {
        padding: 16px;
    }
    
    .pdf-merger-file-item {
        padding: 12px;
        gap: 12px;
    }
    
    .pdf-merger-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .pdf-merger-complete-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* pdf 분할기 페이지 */
/* PDF 분할 페이지 전용 스타일 */
.pdf-splitter-tool {
    max-width: 1200px;
    margin: 0 auto;
}

/* 업로드 영역 */
.pdf-splitter-upload-area {
    background: var(--sub-bg-color);
    border: 2px dashed var(--sub-border-color);
    border-radius: 4px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pdf-splitter-upload-area:hover {
    border-color: var(--accent-color);
    background: rgba(1, 255, 117, 0.05);
}

.pdf-splitter-upload-area.pdf-splitter-drag-over {
    border-color: var(--accent-color);
    background: rgba(1, 255, 117, 0.1);
}

.pdf-splitter-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pdf-splitter-upload-icon {
    font-size: 48px;
    opacity: 0.7;
}

.pdf-splitter-upload-area h4 {
    color: white;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.pdf-splitter-upload-area p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.pdf-splitter-select-btn {
    background: var(--accent-color);
    color: black;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-splitter-select-btn:hover {
    background: rgba(1, 255, 117, 0.8);
    transform: translateY(-1px);
}

/* 미리보기 영역 */
.pdf-splitter-preview-area {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 24px;
}

.pdf-splitter-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
}

.pdf-splitter-file-info h4 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.pdf-splitter-file-info p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.pdf-splitter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pdf-splitter-select-all,
.pdf-splitter-deselect-all,
.pdf-splitter-new-file {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-splitter-select-all:hover,
.pdf-splitter-deselect-all:hover,
.pdf-splitter-new-file:hover {
    background: rgba(1, 255, 117, 0.1);
    transform: translateY(-1px);
}

/* 페이지 그리드 */
.pdf-splitter-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.pdf-splitter-page-item {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--sub-border-color);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pdf-splitter-page-item:hover {
    border-color: rgba(1, 255, 117, 0.5);
    transform: translateY(-2px);
}

.pdf-splitter-page-item.selected {
    border-color: var(--accent-color);
    background: rgba(1, 255, 117, 0.1);
}

.pdf-splitter-page-item.pdf-splitter-dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.pdf-splitter-page-preview {
    position: relative;
    width: 100%;
    height: 280px;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-splitter-page-preview img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: white;
    border-radius: 2px;
    display: block;
}

.pdf-splitter-page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pdf-splitter-page-item:hover .pdf-splitter-page-overlay,
.pdf-splitter-page-item.selected .pdf-splitter-page-overlay {
    opacity: 1;
}

.pdf-splitter-page-checkbox {
    color: var(--accent-color);
    font-size: 20px;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.pdf-splitter-page-actions {
    display: flex;
    gap: 4px;
}

.pdf-splitter-page-remove {
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.pdf-splitter-page-remove:hover {
    background: #ff0000;
    transform: scale(1.1);
}

.pdf-splitter-page-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    text-align: center;
}

.pdf-splitter-page-number {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

/* 분할 액션 */
.pdf-splitter-split-actions {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--sub-border-color);
}

.pdf-splitter-split-btn {
    background: var(--accent-color);
    color: black;
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-splitter-split-btn:hover:not(:disabled) {
    background: rgba(1, 255, 117, 0.8);
    transform: translateY(-1px);
}

.pdf-splitter-split-btn:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

/* 진행 상황 */
.pdf-splitter-progress {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 60px 20px;
    text-align: center;
}

.pdf-splitter-progress-content {
    max-width: 400px;
    margin: 0 auto;
}

.pdf-splitter-progress-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.pdf-splitter-progress h4 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
}

.pdf-splitter-progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.pdf-splitter-progress-fill {
    background: var(--accent-color);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.pdf-splitter-progress p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* 완료 상태 */
.pdf-splitter-complete {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 40px 20px;
    text-align: center;
}

.pdf-splitter-complete-content {
    max-width: 600px;
    margin: 0 auto;
}

.pdf-splitter-complete-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.pdf-splitter-complete h4 {
    color: white;
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
}

.pdf-splitter-complete p {
    color: #666;
    margin: 0 0 24px 0;
    font-size: 14px;
}

/* 결과 파일 목록 */
.pdf-splitter-result-files {
    margin: 24px 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
}

.pdf-splitter-result-file {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--sub-border-color);
    transition: background 0.3s ease;
}

.pdf-splitter-result-file:last-child {
    border-bottom: none;
}

.pdf-splitter-result-file:hover {
    background: rgba(255, 255, 255, 0.05);
}

.pdf-splitter-result-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.pdf-splitter-result-info {
    flex: 1;
    text-align: left;
}

.pdf-splitter-result-name {
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.pdf-splitter-result-details {
    color: #666;
    font-size: 12px;
}

.pdf-splitter-result-download {
    background: var(--accent-color);
    color: black;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pdf-splitter-result-download:hover {
    background: rgba(1, 255, 117, 0.8);
    transform: translateY(-1px);
}

.pdf-splitter-complete-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.pdf-splitter-download-all-btn {
    background: var(--accent-color);
    color: black;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-splitter-download-all-btn:hover {
    background: rgba(1, 255, 117, 0.8);
    transform: translateY(-1px);
}

.pdf-splitter-new-btn {
    background: transparent;
    color: #666;
    border: 1px solid var(--sub-border-color);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-splitter-new-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateY(-1px);
}

/* 이미지 분할 페이지 전용 스타일 */
.image-splitter-tool {
    max-width: 1200px;
    margin: 0 auto;
}

.image-splitter-file-info h4 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.image-splitter-file-info p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.image-splitter-tools {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.image-splitter-tool-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-splitter-tool-group label {
    color: white;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.image-splitter-select,
.image-splitter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 6px 12px;
    color: white;
    font-size: 14px;
    min-width: 60px;
}

.image-splitter-select:focus,
.image-splitter-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(1, 255, 117, 0.1);
}

.image-splitter-preview-btn,
.image-splitter-new-file,
.image-splitter-refresh-btn {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-splitter-preview-btn:hover,
.image-splitter-new-file:hover,
.image-splitter-refresh-btn:hover {
    background: rgba(1, 255, 117, 0.1);
    transform: translateY(-1px);
}

/* 이미지 편집기 */
.image-splitter-editor {
    margin-bottom: 24px;
    text-align: center;
}

.image-splitter-canvas-container {
    position: relative;
    display: inline-block;
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

#imageCanvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.image-splitter-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.image-splitter-grid-line {
    position: absolute;
    background: var(--accent-color);
    opacity: 0.7;
}

.image-splitter-grid-vertical {
    width: 2px;
    height: 100%;
    top: 0;
}

.image-splitter-grid-horizontal {
    height: 2px;
    width: 100%;
    left: 0;
}

/* 미리보기 그리드 */
.image-splitter-preview-grid {
    border-top: 1px solid var(--sub-border-color);
    padding-top: 24px;
    margin-top: 24px;
}

.image-splitter-preview-grid h4 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.image-splitter-preview-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.image-splitter-preview-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.image-splitter-preview-item:hover {
    border-color: rgba(1, 255, 117, 0.5);
    transform: translateY(-2px);
}

.image-splitter-preview-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 8px;
}

.image-splitter-preview-label {
    color: white;
    font-size: 12px;
    font-weight: 500;
}

/* 분할 액션 */
.image-splitter-split-actions {
    text-align: center;
}

.image-splitter-split-btn {
    background: var(--accent-color);
    color: black;
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-splitter-split-btn:hover {
    background: rgba(1, 255, 117, 0.8);
    transform: translateY(-1px);
}

/* 진행 상황 */
.image-splitter-progress {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 60px 20px;
    text-align: center;
}

.image-splitter-progress-content {
    max-width: 400px;
    margin: 0 auto;
}

.image-splitter-progress-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.image-splitter-progress h4 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
}

.image-splitter-progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.image-splitter-progress-fill {
    background: var(--accent-color);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.image-splitter-progress p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* 완료 상태 */
.image-splitter-complete {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 40px 20px;
    text-align: center;
}

.image-splitter-complete-content {
    max-width: 800px;
    margin: 0 auto;
}

.image-splitter-complete-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.image-splitter-complete h4 {
    color: white;
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
}

.image-splitter-complete p {
    color: #666;
    margin: 0 0 24px 0;
    font-size: 14px;
}

/* 결과 이미지 목록 */
.image-splitter-result-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
}

.image-splitter-result-image {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.image-splitter-result-image:hover {
    border-color: rgba(1, 255, 117, 0.5);
    transform: translateY(-2px);
}

.image-splitter-result-preview {
    width: 100%;
    height: 120px;
    margin-bottom: 12px;
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

.image-splitter-result-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-splitter-result-info {
    margin-bottom: 12px;
}

.image-splitter-result-name {
    color: white;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
    word-break: break-word;
}

.image-splitter-result-details {
    color: #666;
    font-size: 11px;
}

.image-splitter-result-download {
    background: var(--accent-color);
    color: black;
    border: none;
    width: 100%;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
    transition: all 0.3s ease;
}

.image-splitter-result-download:hover {
    background: rgba(1, 255, 117, 0.8);
    transform: translateY(-1px);
}

.image-splitter-complete-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.image-splitter-download-all-btn {
    background: var(--accent-color);
    color: black;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-splitter-download-all-btn:hover {
    background: rgba(1, 255, 117, 0.8);
    transform: translateY(-1px);
}

.image-splitter-new-btn {
    background: transparent;
    color: #666;
    border: 1px solid var(--sub-border-color);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-splitter-new-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateY(-1px);
}

/* 반응형 */
@media (max-width: 768px) {
    .image-splitter-upload-area {
        padding: 40px 16px;
    }
    
    .image-splitter-editor-area {
        padding: 16px;
    }
    
    .image-splitter-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .image-splitter-tools {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .image-splitter-preview-items {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .image-splitter-result-images {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .image-splitter-complete-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* 업로드 영역 */
.image-splitter-upload-area {
    background: var(--sub-bg-color);
    border: 2px dashed var(--sub-border-color);
    border-radius: 4px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-splitter-upload-area:hover {
    border-color: var(--accent-color);
    background: rgba(1, 255, 117, 0.05);
}

.image-splitter-upload-area.image-splitter-drag-over {
    border-color: var(--accent-color);
    background: rgba(1, 255, 117, 0.1);
}

.image-splitter-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.image-splitter-upload-icon {
    font-size: 48px;
    opacity: 0.7;
}

.image-splitter-upload-area h4 {
    color: white;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.image-splitter-upload-area p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.image-splitter-select-btn {
    background: var(--accent-color);
    color: black;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-splitter-select-btn:hover {
    background: rgba(1, 255, 117, 0.8);
    transform: translateY(-1px);
}

/* 편집기 영역 */
.image-splitter-editor-area {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 24px;
}

/* 도구 모음 */
.image-splitter-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.image-splitter-file-info h4 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.image-splitter-file-info p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.image-splitter-tools {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.image-splitter-tool-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-splitter-tool-group label {
    color: white;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.image-splitter-select,
.image-splitter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 6px 12px;
    color: white;
    font-size: 14px;
    min-width: 60px;
}

.image-splitter-select:focus,
.image-splitter-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(1, 255, 117, 0.1);
}

.image-splitter-preview-btn,
.image-splitter-new-file {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-splitter-preview-btn:hover,
.image-splitter-new-file:hover {
    background: rgba(1, 255, 117, 0.1);
    transform: translateY(-1px);
}

/* 이미지 편집기 */
.image-splitter-editor {
    margin-bottom: 24px;
    text-align: center;
}

.image-splitter-canvas-container {
    position: relative;
    display: inline-block;
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

#imageCanvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.image-splitter-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.image-splitter-grid-line {
    position: absolute;
    background: var(--accent-color);
    opacity: 0.7;
}

.image-splitter-grid-vertical {
    width: 2px;
    height: 100%;
    top: 0;
}

.image-splitter-grid-horizontal {
    height: 2px;
    width: 100%;
    left: 0;
}

/* 미리보기 그리드 */
.image-splitter-preview-grid {
    border-top: 1px solid var(--sub-border-color);
    padding-top: 24px;
    margin-top: 24px;
}

.image-splitter-preview-grid h4 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.image-splitter-preview-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.image-splitter-preview-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.image-splitter-preview-item:hover {
    border-color: rgba(1, 255, 117, 0.5);
    transform: translateY(-2px);
}

.image-splitter-preview-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 8px;
}

.image-splitter-preview-label {
    color: white;
    font-size: 12px;
    font-weight: 500;
}

/* 분할 액션 */
.image-splitter-split-actions {
    text-align: center;
}

.image-splitter-split-btn {
    background: var(--accent-color);
    color: black;
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-splitter-split-btn:hover {
    background: rgba(1, 255, 117, 0.8);
    transform: translateY(-1px);
}

/* 진행 상황 */
.image-splitter-progress {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 60px 20px;
    text-align: center;
}

.image-splitter-progress-content {
    max-width: 400px;
    margin: 0 auto;
}

.image-splitter-progress-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.image-splitter-progress h4 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
}

.image-splitter-progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.image-splitter-progress-fill {
    background: var(--accent-color);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.image-splitter-progress p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* 완료 상태 */
.image-splitter-complete {
    background: var(--sub-bg-color);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 40px 20px;
    text-align: center;
}

.image-splitter-complete-content {
    max-width: 800px;
    margin: 0 auto;
}

.image-splitter-complete-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.image-splitter-complete h4 {
    color: white;
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
}

.image-splitter-complete p {
    color: #666;
    margin: 0 0 24px 0;
    font-size: 14px;
}

/* 결과 이미지 목록 */
.image-splitter-result-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
}

.image-splitter-result-image {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sub-border-color);
    border-radius: 4px;
    padding: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.image-splitter-result-image:hover {
    border-color: rgba(1, 255, 117, 0.5);
    transform: translateY(-2px);
}

.image-splitter-result-preview {
    width: 100%;
    height: 120px;
    margin-bottom: 12px;
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

.image-splitter-result-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-splitter-result-info {
    margin-bottom: 12px;
}

.image-splitter-result-name {
    color: white;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
    word-break: break-word;
}

.image-splitter-result-details {
    color: #666;
    font-size: 11px;
}

.image-splitter-result-download {
    background: var(--accent-color);
    color: black;
    border: none;
    width: 100%;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
    transition: all 0.3s ease;
}

.image-splitter-result-download:hover {
    background: rgba(1, 255, 117, 0.8);
    transform: translateY(-1px);
}

.image-splitter-complete-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.image-splitter-download-all-btn {
    background: var(--accent-color);
    color: black;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-splitter-download-all-btn:hover {
    background: rgba(1, 255, 117, 0.8);
    transform: translateY(-1px);
}

.image-splitter-new-btn {
    background: transparent;
    color: #666;
    border: 1px solid var(--sub-border-color);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-splitter-new-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateY(-1px);
}

/* 반응형 */
@media (max-width: 768px) {
    .image-splitter-upload-area {
        padding: 40px 16px;
    }
    
    .image-splitter-editor-area {
        padding: 16px;
    }
    
    .image-splitter-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .image-splitter-tools {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .image-splitter-preview-items {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .image-splitter-result-images {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .image-splitter-complete-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .pdf-splitter-upload-area {
        padding: 40px 16px;
    }
    
    .pdf-splitter-preview-area {
        padding: 16px;
    }
    
    .pdf-splitter-preview-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .pdf-splitter-actions {
        justify-content: center;
    }
    
    .pdf-splitter-pages-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .pdf-splitter-page-preview {
        height: 200px;
    }
    
    .pdf-splitter-complete-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .shape-selector {
        flex-direction: column;
    }
    
    .settings-form {
        flex-direction: column;
    }
}


/* 반응형 */
@media (max-width: 768px) {
    .fortune-app {
        padding: 15px;
    }
    
    .question-screen {
        padding: 40px 20px;
    }
    
    .result-screen {
        padding: 30px 20px;
    }
    
    .color-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .crystal-ball {
        width: 80px;
        height: 80px;
    }
    
    .button-area {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        min-width: 160px;
        justify-content: center;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .luck-meter {
        width: 100%;
        max-width: none;
    }
}


/* 반응형 */
@media (max-width: 768px) {
    .gradient3-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .harmony-templates {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        min-width: auto;
    }
    
    .analysis-content {
        grid-template-columns: 1fr;
    }
    
    .code-actions {
        flex-direction: column;
        gap: 5px;
    }
}

/* 반응형 */
@media (max-width: 1024px) {
    .color-extractor-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .extractor-result-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .color-extractor-description {
        padding: 20px;
    }
    
    .extractor-upload-section,
    .extractor-result-section {
        padding: 20px;
    }
    
    .image-upload-label {
        padding: 30px 15px;
    }
    
    .color-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .color-stats {
        text-align: left;
    }
    
    .palette-actions {
        flex-direction: column;
    }
    
    .action-btn {
        justify-content: center;
    }
}
/* 반응형 */
@media (max-width: 1024px) {
    .base64-text-content,
    .base64-file-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

.sub-page-btn-wrapper {
display: grid;
grid-template-columns: repeat(4, minmax(160px, 1fr)); /* 최소 180px, 남으면 늘어남 */
justify-items: center;
row-gap: 10px;
column-gap: 15px;
margin: 0 auto;
margin-bottom: 40px;
width: 600px;
}

}

@media (max-width: 768px) {
    .base64-encoder-description {
        padding: 20px;
    }
    
    .base64-section {
        padding: 20px;
    }
    
    .file-upload-label {
        padding: 30px 15px;
    }
    
    .file-decode-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .input-header,
    .output-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .section-title h4 {
        font-size: 18px;
    }
}


/* 768 반응형 */
@media (max-width: 768px) {
    /* 기본 레이아웃 */
    .studio-page-header h1 {
        font-size: 36px;
    }

    .studio-page-header {
        text-align: center;
    }

    .tab-header {
        text-align: center;
    }

    .tab-header h2 {
        font-size: 28px;
    }

    /* 개선된 탭 버튼 - 3x2 그리드 */
    .studio-page-tabs {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .studio-page-tab {
        padding: 12px 8px;
        min-height: 70px;
        flex-direction: column;
        gap: 6px;
        font-size: 12px;
        border-radius: 10px;
    }

    .studio-page-tab i {
        font-size: 16px;
    }

    .tab-text {
        font-size: 11px;
        line-height: 1.2;
    }

    .studio-page-content {
        padding: 25px 20px;
    }

    /* 서브 탭 */
    .studio-sub-tabs {
        gap: 5px;
        margin-bottom: 20px;
    }

    .studio-sub-tab {
        padding: 8px 12px;
        font-size: 12px;
        gap: 5px;
        border-radius: 8px;
    }

    .studio-sub-tab i {
        font-size: 12px;
    }

    /* QR 컨테이너 */
    .studio-qr-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* 개선된 컬러 팔레트 */
    .color-input-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .studio-color-picker {
        width: 100%;
        height: 20px;
    }

    .color-code-input {
        flex-direction: column;
        gap: 10px;
    }

    .rgb-controls {
        gap: 12px;
    }

    .rgb-slider {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .rgb-slider label {
        min-width: auto;
        text-align: center;
    }

    .rgb-slider span {
        text-align: center;
        min-width: auto;
    }

    /* 컬러 그리드 - 세로 배치 */
    .studio-color-items-row {
        flex-direction: column;
        gap: 12px;
    }

    .studio-color-item {
        min-width: unset;
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px;
        text-align: left;
        width: 100%;
    }

    .studio-color-preview {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        margin-bottom: 0;
        border-radius: 8px;
    }

    .studio-color-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
        justify-content: center;
        align-items: flex-start;
    }

    .studio-color-code {
        font-size: 14px;
        margin-top: 0;
        line-height: 1.4;
        text-align: left;
    }

    .studio-color-code:first-child {
        font-size: 16px;
    }

    /* 컬러 생성기 */
    .color-result-card {
        width: 250px;
        height: 320px;
    }

    .color-result-card .color-display-area {
        height: 140px;
    }

    .color-result-card .color-info-area {
        padding: 20px;
        margin-bottom: 10px;
    }

    .color-result-card .color-brand-name {
        font-size: 24px;
    }

    .color-result-card .color-korean-name {
        font-size: 18px;
    }

    .palette-5-color,
    .gradient-color {
        width: 60px;
        height: 60px;
    }

    .palette-5-colors,
    .gradient-colors {
        gap: 10px;
    }

    /* 컬러 추출기 */
    .extraction-color-left {
        gap: 15px;
    }

    .extraction-color-square {
        width: 50px;
        height: 50px;
    }

    .extraction-color-right {
        min-width: 120px;
        gap: 10px;
    }

    .extraction-percentage-text {
        font-size: 14px;
        min-width: 40px;
    }

    /* 사이즈 가이드 */
    .studio-size-categories {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* 개선된 계산기 반응형 */
    .studio-input-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .studio-font-converter {
        flex-direction: column;
        gap: 16px;
        padding: 20px 15px;
    }

    .studio-converter-arrow {
        align-self: center;
        transform: rotate(90deg);
    }
    
    .studio-device-sizes {
        flex-direction: column;
        gap: 12px;
    }
    
    .studio-grid-result-info {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    /* 그리드 미리보기 개선 */
    .studio-grid-preview-wrapper {
        padding: 15px 10px;
        overflow: visible;
    }

    .studio-grid-preview {
        justify-content: center;
        min-height: 100px;
        width: 100%;
        overflow: visible;
    }

    .studio-grid-container {
        margin: 0 auto;
        max-width: 100%;
        min-width: 280px;
        overflow: visible;
    /* background: rgba(1, 255, 117, 0.1); */
    /* border: 2px solid #01FF75; */
    }

    /* 액션 버튼 */
    .studio-card-actions {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .studio-action-btn {
        /* width: 100%; */
        justify-content: center;
    }

        .studio-unit-selection {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .studio-unit-radios {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .studio-unit-group label {
        font-size: 16px;
        text-align: center;
        font-weight: 700;
    }
}

/* 소형 모바일 */
@media (max-width: 480px) {

.container{
width: 95%;
}

.sub-page-btn-wrapper {
grid-template-columns: repeat(2, minmax(140px, 1fr)); /* 2열로 변경 */
width: 100%; /* 고정 너비 대신 반응형 */
padding: 0 20px; /* 양쪽 여백 */
column-gap: 10px; /* 컬럼 간격 조정 */
row-gap: 8px; /* 행 간격 조정 */
}

    .studio-page-content {
        padding: 20px 25px;
    }

    .studio-page-tabs {
        gap: 6px;
    }

    .studio-page-tab {
        padding: 8px 4px;
        min-height: 65px;
        font-size: 11px;
        border-radius: 4px;
    }

    .studio-page-tab i {
        font-size: 10px;
    }

    .tab-text {
        font-size: 12px;
    }

    .color-input-section {
        padding: 20px 15px;
    }

    .rgb-controls {
        gap: 0px;
    }

    .studio-color-item {
        padding: 12px;
        gap: 12px;
        border-radius: 6px;
    }

    .studio-color-preview {
        width: 50px;
        height: 50px;
        border-radius: 4px;
    }

    .studio-font-converter {
        padding: 25px 5px;
        margin-bottom: 0px;
    }

    .studio-size-input input {
        font-size: 16px;
        padding: 10px;
    }

    .studio-calc-section {
        padding: 20px 15px;
    }

    .studio-calc-section h3 {
        font-size: 20px;
        /* margin-bottom: 15px; */
    }

    .studio-input-col label {
        font-size: 13px;
    }

    .studio-grid-result-info {
        padding: 12px;
        gap: 8px;
    }

    .studio-result-item span:first-child {
        font-size: 11px;
    }

    .studio-result-item span:last-child {
        font-size: 16px;
    }

    .studio-grid-preview-wrapper {
        padding: 12px 8px;
        
    }

    .studio-grid-container {
        min-height: 80px;
        min-width: 260px;
    }

    .color-result-card {
        width: 220px;
        height: 300px;
    }

    .color-result-card .color-display-area {
        height: 120px;
    }

    .color-result-card .color-info-area {
        padding: 15px;
    }

    .color-result-card .color-brand-name {
        font-size: 18px;
    }

    .color-result-card .color-korean-name {
        font-size: 16px;
    }

    .studio-device-item {
        padding: 12px;
    }

    .studio-size-guide-item {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        flex-wrap: wrap;
        align-content: flex-start;
    }

    .studio-size-guide-item span:last-child {
        font-size: 12px;
        align-self: flex-end;
    }

    .studio-preview-text {
        padding: 20px 15px;
        min-height: 60px;
        font-size: 14px;
    }

    .studio-input-with-unit input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .studio-input-with-unit span {
        padding: 10px 12px;
        font-size: 12px;
    }

    .extraction-color-square {
        width: 45px;
        height: 45px;
    }

    .extraction-color-right {
        min-width: 100px;
    }

    .palette-5-color,
    .gradient-color {
        width: 50px;
        height: 50px;
        border-radius: 4px;
    }

    /* 컬러카드 모바일 */
       .color-card {
        width: 280px;
        height: 420px;
    }
    
    .color-display-area {
        height: 240px;
    }
    
    .color-info-area {
        padding: 20px;
    }
    
    .color-brand-name {
        font-size: 26px;
        letter-spacing: 2px;
    }
    
    .question-icon {
        font-size: 80px;
        margin-bottom: 20px;
    }
    
    .question-text h3 {
        font-size: 20px;
    }
    
    .question-text p {
        font-size: 14px;
    }

    /* 컬러 조합 생성기 탭 */
    .color-palette-layout {
    grid-template-columns: 1fr;  /* 1열로 변경 */
    gap: 20px;
}
    
    /* 컬러 피커 크기 축소 */
    .large-color-picker {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }
    
    .base-color-label{
        font-size: 20px;
        font-weight: 700;
    }

    .color-picker-section {
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    /* 색상 코드 입력 */
    .color-code-input {
        flex-direction: column;  /* 세로 배치 */
        gap: 8px;
    }
    
    .color-code-input input {
        text-align: center;
    }
    
    /* 팔레트 타입 라디오 버튼 */
    .palette-type-radios {
        grid-template-columns: 1fr 1fr;  /* 2열 유지 */
        column-gap: 8px;
        row-gap: 0px;
    }

    .studio-input-group label {
        display: block;
        margin-top: 6px;
        margin-bottom: 6px;
        color: var(--accent-color);
    }
        
  
    .radio-option {
        /* padding: 8px 4px; */
        padding-top: 8px;
        padding-bottom: 8px;
        padding-left: 8px;
        padding-right: 0px;
        text-align: center;
    }

    .radio-option span{
    font-size: 12px;
    margin-left: 2px;
    }
    
    /* RGB 슬라이더 */
    .rgb-slider {
        gap: 10px;
    }
    
    .rgb-slider label {
        min-width: 40px;
        font-size: 14px;
    }
    
    .rgb-slider span {
        min-width: 30px;
        font-size: 14px;
    }
    
    /* 전체 간격 조정 */
    .studio-input-group {
        margin-bottom: 15px;
    }

       .rgb-controls .rgb-slider .color-range {
        height: 4px !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    /* 웹킷 브라우저 썸 (동그라미) 크기 줄이기 */
    .color-range::-webkit-slider-thumb {
        -webkit-appearance: none !important;
        width: 16px !important;  /* 기본보다 작게 */
        height: 16px !important;
        border-radius: 50% !important;
        background: #01FF75 !important;
        cursor: pointer !important;
        border: 1px solid #000 !important;
    }
    
    /* 웹킷 트랙 */
    .color-range::-webkit-slider-track {
        height: 4px !important;
        border-radius: 2px !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    /* 파이어폭스 썸 */
    .color-range::-moz-range-thumb {
        width: 12px !important;
        height: 12px !important;
        border-radius: 50% !important;
        background: #01FF75 !important;
        cursor: pointer !important;
        border: 1px solid #000 !important;
    }
    
    /* 파이어폭스 트랙 */
    .color-range::-moz-range-track {
        height: 4px !important;
        border-radius: 2px !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }

    /* 단색카드 뽑기 */
    .color-card {
        width: 280px;
        height: 420px;
    }
    
    .color-display-area {
        height: 240px;
    }
    
    .color-info-area {
        padding: 15px 5px 10px 5px;
    }
    
    .color-brand-name {
        font-size: 26px;
        letter-spacing: 2px;
    }
    
    .question-icon {
        font-size: 80px;
        margin-bottom: 20px;
    }
    
    .question-text h3 {
        font-size: 20px;
    }
    
    .question-text p {
        font-size: 14px;
    }

    .studio-pick-btn{
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    margin: 20px 0;
    gap: 8px;
    height: 30;
    min-width: 100px; 
    }

.gradient-bar {
max-width: 300px;
height: 40px;
border-radius: 8px;
}

.studio-sub-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2열 */
    gap: 10px;
    margin-bottom: 30px;
    justify-items: stretch; /* center → stretch로 변경 */
    max-width: 100%;
}

.studio-sub-tab i{
    font-size: 10px;
}

.studio-sub-tab {
    padding: 11px 8px;
    font-size: 12px;
    gap: 5px;
    width: 100%; /* 전체 너비 사용 */
    min-width: 80px;
    text-align: center; /* 텍스트 중앙 정렬 */
    border-radius: 4px;
        /* 가로 배치로 변경 */
    display: flex;
    flex-direction: row; /* column → row로 변경 */
    align-items: center;
    justify-content: center;
    gap: 8px; /* 아이콘과 텍스트 간격 */
    text-align: center;
}

    .studio-sub-tabs {
        gap: 10px;
        margin-bottom: 20px;
    }


.palette-5-color-code {
    margin-top: 8px;
    font-size: 12px;
    color: white;
    font-weight: 500;
    text-align: center;
}

/* 모바일에서 카드 캡션 */
.color-hex-code {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    margin-bottom: 4px;
}

.color-korean-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    /* margin-bottom: 10px; */
}

.color-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

 .single-card-container {
        padding: 20px;
        min-height: auto;
        /* min-height: 650px; */
    }
    
 .card-controls {
        display: flex;
        flex-direction: column !important;
        align-items: center;
        gap: 12px;
        height: auto;
        width: 100%;
        margin-top: 20px;
    }
    
    /* 뽑기 후에만 세로 배치 적용 */
    .studio-card-actions[style*="display: flex"] {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        height: auto;
    }
    
    .studio-action-btn {
        width: 180px !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .studio-pick-btn {
        width: 180px !important;
    }


       .dark-special-card .card-result {
        border-width: 10px !important; /* 모바일에서 보더 두께 조정 */
    }
    
    .dark-special-card .color-brand-name {
        font-size: 22px !important; /* 모바일에서 브랜드명 크기 조정 */
    }
    
    .dark-special-card .dark-color-name {
        font-size: 16px !important; /* 모바일에서 컬러명 크기 조정 */
    }
    
    .dark-special-card .dark-description {
        font-size: 13px !important; /* 모바일에서 설명 크기 조정 */
    }
}