/* 로컬 Pretendard 폰트 적용 */
@font-face {
    font-family: "Pretendard";
    font-weight: 600;
    font-display: swap;
    src: local("Pretendard SemiBold"), url("/fonts/Pretendard-SemiBold.woff2") format("woff2"), url("/fonts/Pretendard-SemiBold.woff") format("woff");
}

@font-face {
    font-family: "Pretendard";
    font-weight: 500;
    font-display: swap;
    src: local("Pretendard Medium"), url("/fonts/Pretendard-Medium.woff2") format("woff2"), url("/fonts/Pretendard-Medium.woff") format("woff");
}

@font-face {
    font-family: "Pretendard";
    font-weight: 400;
    font-display: swap;
    src: local("Pretendard Regular"), url("/fonts/Pretendard-Regular.woff2") format("woff2"), url("/fonts/Pretendard-Regular.woff") format("woff");
}

@font-face {
    font-family: "Pretendard";
    font-weight: 300;
    font-display: swap;
    src: local("Pretendard Light"), url("/fonts/Pretendard-Light.woff2") format("woff2"), url("/fonts/Pretendard-Light.woff") format("woff");
}

@font-face {
    font-family: "Pretendard";
    font-weight: 200;
    font-display: swap;
    src: local("Pretendard ExtraLight"), url("/fonts/Pretendard-ExtraLight.woff2") format("woff2"), url("/fonts/Pretendard-ExtraLight.woff") format("woff");
}

@font-face {
    font-family: "Pretendard";
    font-weight: 100;
    font-display: swap;
    src: local("Pretendard Thin"), url("/fonts/Pretendard-Thin.woff2") format("woff2"), url("/fonts/Pretendard-Thin.woff") format("woff");
}

/* 기본 설정 */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
    padding-bottom: 0px; /* 모바일 하단 네비게이션 공간 확보 */
}

/* ===== CSS 변수 (Root Variables) - 통합 버전 ===== */
:root {
    /* ===== Primary Colors (메인 컬러) ===== */
    --primary-color: #2C3E50;          /* index3.css 기준 고급스러운 네이비 */
    --primary-dark: #1A252F;
    --primary-light: #34495E;
    --primary-hover: #007a7d;          /* creators_profile.css용 추가 */
    --primary-black: #1d1d1d;          /* creators_profile.css용 추가 */

    /* ===== Accent Colors (강조 컬러) ===== */
    --accent-color: #C9A961;           /* index3.css 기준 골드 컬러 */
    --accent-light: #D4B876;
    --accent-dark: #B8984C;

    /* ===== Secondary Colors (보조 컬러) ===== */
    --secondary-color: #F8F9FA;

    /* ===== Status Colors (상태 표시 컬러) ===== */
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --error-color: #e74c3c;  /* danger-color 별칭 */
    --info-color: #3498db;

    /* ===== Background Colors (배경 컬러) ===== */
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;       /* auth.css용 추가 */
    --bg-gray-50: #FAFBFC;
    --bg-gray-100: #F5F6F8;
    --bg-gray-200: #E9ECEF;
    --bg-dark: #1A1A1A;
    --background-light: #ffffff;
    --background-dark: #1a1a1a;
    --background-color: #ffffff; /* creators_profile.css용 추가 */

    /* ===== Text Colors (텍스트 컬러) ===== */
    --text-white: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #6C757D;
    --text-light: #95A5A6;
    --text-muted: #BDC3C7;
    --text-dark: #212529;

    /* ===== Border Colors (테두리 컬러) ===== */
    --border-light: #E9ECEF;
    --border-medium: #DEE2E6;
    --border-accent: #C9A961;
    --border-color: #e9ecef;

    /* ===== Shadows (그림자) ===== */
    --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.08);
    --shadow-md: 0 4px 16px rgba(44, 62, 80, 0.12);
    --shadow-lg: 0 8px 32px rgba(44, 62, 80, 0.16);
    --shadow-hover: 0 12px 40px rgba(44, 62, 80, 0.2);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 5px 25px rgba(0,0,0,0.15);
    --shadow-heavy: 0 10px 50px rgba(0,0,0,0.2);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 8px 25px rgba(0, 0, 0, 0.15);

    /* ===== Border Radius (테두리 반경) ===== */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;             /* auth.css용 추가 */
    --radius-full: 50%;            /* auth.css용 추가 */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-large: 20px;

    /* ===== Transitions (전환 효과) ===== */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;

    /* ===== Typography (타이포그래피) ===== */
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;

    /* ===== Layout (레이아웃) ===== */
    --sidebar-width: 280px;
    --container-max-width: 1320px;
    --header-height: 70px;
    --mobile-bottom-nav-height: 60px;

    /* ===== Button Specific Colors (버튼 전용 컬러) ===== */
    --btn-proposal: #5a67d8;       /* 제안하기 버튼 */
    --btn-submit: #667eea;         /* 제출 버튼 그라디언트 시작 */
    --btn-submit-end: #764ba2;     /* 제출 버튼 그라디언트 끝 */
    --btn-bookmark: #ff6b6b;       /* 북마크 버튼 */
    --btn-cancel: #718096;         /* 취소 버튼 */
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 공통 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 163, 199, 0.3); }
    50% { box-shadow: 0 0 40px rgba(59, 163, 199, 0.6); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Header 공통 스타일 */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgb(204 204 204 / 50%);
    position: fixed;
    width: 100%;
    height: 70px;
    padding: 12px 0px;
    top: 0px;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 12px 0px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* 서브 페이지 헤더 스타일 */
.sub-header {
    background: #ffffff;
    /*box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);*/
    padding: 15px 0;
}

.sub-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-header .back-button,
.sub-header .home-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.sub-header .back-button img,
.sub-header .home-button img {
    width: 24px;
    height: 24px;
}

.sub-header .page-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    flex-grow: 1;
}

/* 모바일/데스크톱 헤더 표시 제어 */
.mobile-only-header {
    display: none;
}

.desktop-only-header {
    display: block;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {

}

.logo img{
    height: 22px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3ba3c7;
}

.auth-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* 모바일 메뉴 토글 버튼 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 10001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 햄버거 메뉴 활성화 애니메이션 */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 모바일 홈 아이콘 */
.mobile-home-icon {
    display: none;
}

.mobile-home-icon img {
    width: 24px;
    height: 24px;
}

/* 모바일 사이드바 오버레이 */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 모바일 사이드바 메뉴 */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px 10px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.mobile-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.mobile-sidebar-close i {
    font-size: 18px;
    color: #666;
    transition: color 0.3s ease;
}

.mobile-sidebar-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.mobile-sidebar-close:hover i {
    color: #333;
}

.mobile-sidebar-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar-section {
    border-bottom: 1px solid #f1f3f4;
    padding: 20px 0;
}

.mobile-sidebar-section:last-child {
    border-bottom: none;
}

.mobile-sidebar-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    margin: 0 20px 12px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-sidebar-menu li {
    margin: 0;
}

.mobile-sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-sidebar-menu a:hover {
    background: #f8f9fa;
    color: #3ba3c7;
    border-left-color: #3ba3c7;
}

.mobile-sidebar-menu a.active {
    background: #e3f2fd;
    color: #3ba3c7;
    border-left-color: #3ba3c7;
    font-weight: 600;
}

.mobile-sidebar-auth {
    padding: 20px;
    background: #f8f9fa;
}

.mobile-sidebar-footer {
    padding: 20px;
    background: #f1f3f4;
    margin-top: auto;
    flex-shrink: 0;
}

.company-info {
    text-align: center;
}

.company-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.company-details {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.5;
}

/* 모바일 하단 네비게이션 */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #374151;
    font-size: 10px;
    font-weight: 500;
}

.mobile-nav-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.mobile-nav-item.active {
    color: #3ba3c7;
}

/* 모바일 하단 네비게이션 XEIcon 스타일 */
.mobile-bottom-nav .mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    display: block;
    transition: all 0.3s ease;
}

.mobile-bottom-nav .mobile-nav-item:hover i,
.mobile-bottom-nav .mobile-nav-item.active i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.mobile-bottom-nav .mobile-nav-item span {
    font-size: 11px;
    font-weight: 500;
}

/* 활성 상태 스타일 */
.mobile-bottom-nav .mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-bottom-nav .mobile-nav-item.active i {
    color: var(--primary-color);
}

/* ===== 공통 버튼 스타일 - VIRALS 전용 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    line-height: 1;
}

/* Primary Button - 메인 액션 버튼 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-light);
}

/* Secondary Button - 보조 액션 버튼 */
.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

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

/* Outline Button - 테두리만 있는 버튼 */
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: white;
    color: var(--text-primary);
    border-color: white;
}

.btn-outline:active {
    transform: scale(0.98);
}

/* White Button - 흰색 배경 버튼 */
.btn-white {
    background: white;
    color: var(--text-primary);
    box-shadow: var(--shadow-medium);
}

.btn-white:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

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

/* Ghost Button - 투명 배경 버튼 */
.btn-ghost {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-ghost:hover {
    background: var(--primary-color);
    color: white;
}

.btn-ghost:active {
    transform: scale(0.98);
}

/* Danger Button - 위험한 액션 버튼 */
.btn-danger {
    background: linear-gradient(135deg, var(--accent-color), #ff5252);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e53e3e, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

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

/* ===== 특수 목적 버튼 ===== */
.btn-submit {
    background: linear-gradient(135deg, var(--btn-submit), var(--btn-submit-end));
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-proposal {
    background: var(--btn-proposal);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-proposal:hover {
    background: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-bookmark {
    background: white;
    color: #718096;
    border: 2px solid #e2e8f0;
    display: flex;
    gap: 8px;
}

.btn-bookmark:hover {
    border-color: var(--btn-bookmark);
    color: var(--btn-bookmark);
    background: #fff5f5;
}

.btn-bookmark.active {
    background: var(--btn-bookmark);
    color: white;
    border-color: var(--btn-bookmark);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-cancel {
    background: white;
    color: var(--btn-cancel);
    border: 2px solid #e2e8f0;
}

.btn-cancel:hover {
    background: #f8fafb;
    border-color: #cbd5e0;
    color: #4a5568;
}

/* 버튼 크기 변형 */
.btn-sm,
.btn-small {
    padding: 8px 16px;
    font-size: 12px;
    gap: 6px;
}

.btn-md {
    padding: 12px 24px;
    font-size: 14px;
    gap: 8px;
}

.btn-lg,
.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    gap: 10px;
}

.btn-xl {
    padding: 20px 40px;
    font-size: 20px;
    font-weight: 700;
    gap: 12px;
}

/* 전체 너비 버튼 */
.btn-full {
    width: 100%;
    justify-content: center;
}

/* 로딩 상태 버튼 */
.btn-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 버튼 그룹 */
.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-group .btn {
    flex: 1;
    min-width: 0;
}

/* 버튼 특수 효과 */
.btn-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.btn-float {
    animation: float 3s ease-in-out infinite;
}

/* 버튼 내 아이콘 스타일 */
.btn .icon {
    font-size: 1.2em;
    line-height: 1;
}

.btn .icon-left {
    margin-right: 8px;
    margin-left: -4px;
}

.btn .icon-right {
    margin-left: 8px;
    margin-right: -4px;
}

/* 버튼 비활성화 상태 */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

/* Footer 공통 스타일 - 새로운 디자인 */
footer {
    background: #f8f9fa;
    color: #6c757d;
    padding: 40px 0 20px;
    border-top: 1px solid #e9ecef;
    font-size: 13px;
    line-height: 1.6;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3ba3c7;
}

.footer-app-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-app-links a {
    display: block;
}

.footer-app-links img {
    height: 32px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.footer-app-links img:hover {
    transform: translateY(-2px);
}

.footer-company-info {
    color: #6c757d;
    font-size: 12px;
    line-height: 1.8;
}

.footer-company-info strong {
    color: #495057;
    font-weight: 600;
}

.footer-company-info .company-name {
    font-weight: 700;
    color: #343a40;
    margin-bottom: 8px;
    display: block;
}

.footer-bottom {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 800;
    color: #3ba3c7;
    text-decoration: none;
}

.footer-logo img {
    height: 20px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.footer-social-links {
    display: flex;
    gap: 8px;
}

.footer-social-links a {
    width: 28px;
    height: 28px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-social-links a:hover {
    background: #3ba3c7;
    color: white;
    border-color: #3ba3c7;
}

.footer-copyright {
    color: #adb5bd;
    font-size: 11px;
}

/* 반응형 공통 스타일 */
@media (max-width: 1200px) {
    .container {
        padding: 5px 10px;
    }

    .nav-links {
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .nav-links {
        gap: 5px;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px; /* 모바일 하단 네비게이션 공간 확보 */
    }

    /* 모바일에서 auth-buttons 완전 숨김 */
    .auth-buttons {
        display: none !important;
    }

    /* 서브 페이지 모바일 헤더 관련 스타일 */
    body.sub-page {
        padding-top: 50px; /* 모바일 서브 헤더 높이만큼 패딩 추가 */
    }

    .mobile-only-header {
        display: block;
        height: 57px;
    }

    .desktop-only-header {
        display: none;
    }

    header {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(229, 231, 235, 0.5);
        position: fixed;
        width: 100%;
        height: 57px;
        padding-top: 8px;
        top: 0;
        z-index: 1000;
        transition: all 0.3s ease;
    }

    header.scrolled {
        padding: 0px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .sub-header {
        padding: 8px 0;
    }

    .sub-header .page-title {
        font-size: 16px;
    }

    .logo {
        font-size: 26px;
        font-weight: 800;
    }
    .logo img {
        height: 18px;
    }
    .desktop-footer {
        display: none;
    }

    .nav-links {
        display: none !important;
    }

    .nav-links.active {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .desktop-only {
        display: none;
    }

    .mobile-home-icon {
        display: block;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    /* ===== 모바일 버튼 스타일 조정 ===== */
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .btn-sm,
    .btn-small {
        padding: 8px 14px;
        font-size: 11px;
    }

    .btn-md {
        padding: 10px 20px;
        font-size: 13px;
    }

    .btn-lg,
    .btn-large {
        padding: 14px 28px;
        font-size: 15px;
    }

    .btn-xl {
        padding: 18px 36px;
        font-size: 18px;
    }

    /* 특수 버튼 반응형 */
    .btn-proposal,
    .btn-submit {
        padding: 14px 20px;
        font-size: 15px;
    }

    .btn-bookmark,
    .btn-cancel {
        padding: 12px 20px;
        font-size: 14px;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        flex: none;
    }

    /* 모바일 푸터 스타일 */
    footer {
        padding: 30px 0 15px;
    }

    .footer-top {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links {
        gap: 20px;
        justify-content: center;
        text-align: center;
    }

    .footer-app-links {
        justify-content: center;
    }

    .footer-company-info {
        text-align: center;
        font-size: 11px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-bottom-left {
        flex-direction: column;
        gap: 10px;
    }

    .footer-social-links {
        justify-content: center;
    }
}

/* 작은 모바일 화면 대응 */
@media (max-width: 480px) {
    .container {
        padding: 5px 10px;
    }

    /* 모바일 사이드바 전체 너비 */
    .mobile-sidebar {
        width: 100%;
        right: -100%;
    }

    .mobile-sidebar.active {
        right: 0;
    }

    /* 모바일 소형 화면 버튼 조정 */
    .btn {
        padding: 10px 16px;
        font-size: 13px;
        gap: 6px;
    }

    .btn-large {
        padding: 12px 20px;
        font-size: 14px;
    }

    .btn-xl {
        padding: 14px 24px;
        font-size: 16px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-links a {
        padding: 5px 0;
    }
}

/* 토스트 메시지 스타일 - 다크모드 */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast,
.custom-toast {
    background: rgba(30, 30, 35, 0.95);
    backdrop-filter: blur(20px);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 500px;
    font-size: 14px;
    font-weight: 500;
    pointer-events: auto;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.toast.show,
.custom-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.hide,
.custom-toast.hide {
    transform: translateY(100px);
    opacity: 0;
}

/* 토스트 타입별 스타일 - 다크모드 */
.toast.success,
.custom-toast.success {
    background: rgba(30, 30, 35, 0.95);
    border-left: 4px solid #4ade80;
}

.toast-success {
    border-left: 4px solid #4ade80;
}

.toast-success .toast-icon {
    color: #4ade80;
}

.toast.error,
.custom-toast.error {
    background: rgba(30, 30, 35, 0.95);
    border-left: 4px solid #f87171;
}

.toast-error {
    border-left: 4px solid #f87171;
}

.toast-error .toast-icon {
    color: #f87171;
}

.toast.warning,
.custom-toast.warning {
    background: rgba(30, 30, 35, 0.95);
    border-left: 4px solid #fbbf24;
}

.toast-warning {
    border-left: 4px solid #fbbf24;
}

.toast-warning .toast-icon {
    color: #fbbf24;
}

.toast.info,
.custom-toast.info {
    background: rgba(30, 30, 35, 0.95);
    border-left: 4px solid #60a5fa;
}

.toast-info {
    border-left: 4px solid #60a5fa;
}

.toast-info .toast-icon {
    color: #60a5fa;
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #95a5a6;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

/* 로딩 스피너 공통 스타일 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner-large {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-overlay .loading-spinner {
    width: 50px;
    height: 50px;
    border-width: 4px;
}

/* 모달 공통 스타일 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-large);
    padding: 30px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--secondary-color);
    color: var(--text-primary);
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* 폼 공통 스타일 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-label.required::after {
    content: ' *';
    color: var(--accent-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 163, 199, 0.1);
}

.form-control:disabled {
    background: var(--secondary-color);
    color: var(--text-light);
    cursor: not-allowed;
}

.form-control.error {
    border-color: var(--accent-color);
}

.form-control.success {
    border-color: #27ae60;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.form-error {
    color: var(--accent-color);
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-success {
    color: #27ae60;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 체크박스 및 라디오 스타일 */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-item label,
.radio-item label {
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

/* 파일 업로드 스타일 */
.file-upload-area {
    border: 0px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 0px 0px;
    text-align: center;
    background: var(--secondary-color);
    transition: var(--transition);
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(59, 163, 199, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(59, 163, 199, 0.1);
}

.file-upload-icon {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.file-upload-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.file-upload-hint {
    font-size: 12px;
    color: var(--text-light);
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.file-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.file-preview-remove:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* 테이블 공통 스타일 */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--secondary-color);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.table td {
    font-size: 14px;
    color: var(--text-secondary);
}

.table tr:hover {
    background: rgba(59, 163, 199, 0.02);
}

.table tr:last-child td {
    border-bottom: none;
}

/* 뱃지 및 태그 스타일 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(59, 163, 199, 0.1);
    color: var(--primary-color);
}

.badge-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.badge-warning {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.badge-danger {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.badge-info {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.badge-light {
    background: var(--secondary-color);
    color: var(--text-secondary);
}

/* 카드 공통 스타일 */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.card-header {
    padding: 20px;
    background: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;
    background: var(--secondary-color);
    border-top: 1px solid var(--border-color);
}

/* 그리드 시스템 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.col {
    flex: 1;
    padding: 0 12px;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* 유틸리티 클래스 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: #27ae60; }
.text-warning { color: #f39c12; }
.text-danger { color: var(--accent-color); }
.text-info { color: #3498db; }
.text-light { color: var(--text-light); }
.text-dark { color: var(--text-primary); }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-success { background-color: #27ae60; }
.bg-warning { background-color: #f39c12; }
.bg-danger { background-color: var(--accent-color); }
.bg-info { background-color: #3498db; }
.bg-light { background-color: var(--secondary-color); }
.bg-white { background-color: white; }

.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }

.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.align-items-stretch { align-items: stretch; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }

.m-0 { margin: 0; }
.m-1 { margin: 4px; }
.m-2 { margin: 8px; }
.m-3 { margin: 12px; }
.m-4 { margin: 16px; }
.m-5 { margin: 20px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }
.ml-3 { margin-left: 12px; }
.ml-4 { margin-left: 16px; }
.ml-5 { margin-left: 20px; }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.mr-3 { margin-right: 12px; }
.mr-4 { margin-right: 16px; }
.mr-5 { margin-right: 20px; }

.p-0 { padding: 0; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 4px; }
.pt-2 { padding-top: 8px; }
.pt-3 { padding-top: 12px; }
.pt-4 { padding-top: 16px; }
.pt-5 { padding-top: 20px; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 4px; }
.pb-2 { padding-bottom: 8px; }
.pb-3 { padding-bottom: 12px; }
.pb-4 { padding-bottom: 16px; }
.pb-5 { padding-bottom: 20px; }

.pl-0 { padding-left: 0; }
.pl-1 { padding-left: 4px; }
.pl-2 { padding-left: 8px; }
.pl-3 { padding-left: 12px; }
.pl-4 { padding-left: 16px; }
.pl-5 { padding-left: 20px; }

.pr-0 { padding-right: 0; }
.pr-1 { padding-right: 4px; }
.pr-2 { padding-right: 8px; }
.pr-3 { padding-right: 12px; }
.pr-4 { padding-right: 16px; }
.pr-5 { padding-right: 20px; }

.w-25 { width: 25%; }
.w-50 { width: 50%; }
.w-75 { width: 75%; }
.w-100 { width: 100%; }

.h-25 { height: 25%; }
.h-50 { height: 50%; }
.h-75 { height: 75%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-large); }
.rounded-circle { border-radius: 50%; }

.shadow-sm { box-shadow: var(--shadow-light); }
.shadow { box-shadow: var(--shadow-medium); }
.shadow-lg { box-shadow: var(--shadow-heavy); }

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* 선택 영역 스타일 */
::selection {
    background: rgba(59, 163, 199, 0.2);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(59, 163, 199, 0.2);
    color: var(--text-primary);
}

/* 포커스 아웃라인 제거 및 커스텀 */
*:focus {
    outline: none;
}

/* 접근성을 위한 포커스 표시 */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 프린트 스타일 */
@media print {
    .mobile-menu-toggle,
    .mobile-sidebar,
    .mobile-sidebar-overlay,
    .mobile-bottom-nav,
    .toast-container,
    .loading-overlay,
    .modal-overlay {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .btn {
        border: 1px solid black;
        background: white !important;
        color: black !important;
    }
}

/* 고해상도 디스플레이 대응 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 모션 감소 설정 대응 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-on-scroll {
        animation: none;
    }
}

/* 고대비 모드 대응 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --accent-color: #cc0000;
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #666666;
    }

    .btn {
        border: 2px solid currentColor;
    }

    .form-control {
        border: 2px solid var(--border-color);
    }

    .card {
        border: 1px solid var(--border-color);
    }
}

.jconfirm .jconfirm-row {
    display: table-row;
    width: 100%;
}
.jconfirm .jconfirm-row .row {
    display: block !important;
    flex-wrap: wrap;
    margin: 0 -12px;
}
.jconfirm .jconfirm-box {
    background: white;
    border-radius: 4px;
    position: relative;
    outline: 0;
    padding: 15px 15px 0;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    max-width: 320px !important;
}