/* ==========================================================================
   Common Components Styles
   - 모달, 버튼, 폼, 스켈레톤 등 공통 컴포넌트
   ========================================================================== */

/* ==========================================================================
   공통 Hero Section 스타일 (모든 섹션에서 사용)
   ========================================================================== */
.hub-header {
    text-align: center;
    margin-top: 12px;
    margin-bottom: 2px;
    animation: fadeInDown 0.8s ease-out;
}

.hub-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.hub-subtitle {
    font-size: 1rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* 모바일 Hero 반응형 */
@media (max-width: 576px) {
    .hub-header {
        padding: 0 8px;
        margin-top: 8px;
        margin-bottom: 8px;
    }
    
    .hub-title {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    
    .hub-subtitle {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

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

/* Custom Modal Styles */
/* z-index는 z-index-system.css에서 관리 */
.modal-backdrop { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background-color: rgba(0,0,0,0.5); 
}

/* 커스텀 모달 컨테이너 - 알림 모달이 항상 최상위에 표시되도록 */
#custom-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9400 !important; /* 로그인 모달(8000)보다 위에 표시 */
}

#custom-modal-container > * {
    pointer-events: auto;
}

#custom-modal-container .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9400 !important;
}

.custom-modal { 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    background: white; 
    border-radius: .5rem; 
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); 
    width: 90vw; 
    max-width: 1600px; 
    min-width: 280px; /* 모바일에서도 사용 가능하도록 최소 너비 축소 */
    z-index: 9500 !important; /* 로그인 모달(8000)보다 위에 표시 */
}

.custom-modal.small-modal { 
    width: 450px; 
    max-width: 90vw; /* 모바일에서 화면 밖으로 나가지 않도록 */
    min-width: 280px; /* 최소 너비 축소 */
    border-radius: 16px; 
    /* 강화된 그림자 - 로그인 모달과 구분되도록 */
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.9),  /* 내부 흰색 테두리 */
        0 0 0 4px rgba(13, 110, 253, 0.4),   /* 외곽 파란색 테두리 */
        0 25px 50px rgba(0, 0, 0, 0.35),     /* 깊은 그림자 */
        0 10px 20px rgba(0, 0, 0, 0.25);     /* 중간 그림자 */
    border: none;
    z-index: 9500 !important; /* 로그인 모달(8000)보다 위에 표시 */
    background: #ffffff;
}

.custom-modal.small-modal .custom-modal-header { 
    padding: 1.5rem 1.5rem 1rem 1.5rem; 
    border-bottom: none; 
    text-align: center; 
}

.custom-modal.small-modal .custom-modal-body { 
    padding: 0 1.5rem 1rem 1.5rem; 
    text-align: center; 
}

.custom-modal.small-modal .custom-modal-footer { 
    padding: 1rem 1.5rem 1.5rem 1.5rem; 
    border-top: none; 
    justify-content: center; 
}

.custom-modal.small-modal .custom-modal-title { 
    font-size: 1.5rem; 
    font-weight: 600; 
    color: #2c3e50; 
    margin-bottom: 0; 
}

.custom-modal.small-modal .custom-modal-body { 
    font-size: 1rem; 
    color: #34495e; 
    line-height: 1.6; 
}

.custom-modal.small-modal .btn-primary { 
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%); 
    border: none; 
    padding: 12px 32px; 
    border-radius: 25px; 
    font-weight: 500; 
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.custom-modal.small-modal .btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.6);
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
}

.custom-modal.small-modal .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* Bootstrap 기본 아이콘 제거 */
    background-image: none !important;
    background-size: 0 !important;
    opacity: 1 !important;
}

/* Bootstrap의 ::before, ::after pseudo-element 제거 */
.custom-modal.small-modal .btn-close::before,
.custom-modal.small-modal .btn-close::after {
    display: none !important;
    content: none !important;
}

.custom-modal.small-modal .btn-close:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.custom-modal.small-modal .btn-close:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 모바일에서 알림 모달(small-modal) 최적화 */
@media (max-width: 575.98px) {
    .custom-modal.small-modal {
        width: calc(100vw - 3rem) !important; /* 좌우 1.5rem씩 여백 */
        max-width: calc(100vw - 3rem) !important;
        min-width: auto !important;
        /* 중앙 정렬 유지 */
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
    }
    
    .custom-modal.small-modal .custom-modal-header {
        padding: 1rem 1rem 0.5rem 1rem !important;
    }
    
    .custom-modal.small-modal .custom-modal-body {
        padding: 0 1rem 0.75rem 1rem !important;
    }
    
    .custom-modal.small-modal .custom-modal-footer {
        padding: 0.75rem 1rem 1rem 1rem !important;
    }
    
    .custom-modal.small-modal .custom-modal-title {
        font-size: 1.1rem !important;
    }
    
    /* 모바일에서 X 버튼 숨기고 확인 버튼으로 닫기 유도 */
    .custom-modal.small-modal .btn-close {
        display: none !important;
    }
    
    /* 확인 버튼을 더 크고 눈에 띄게 */
    .custom-modal.small-modal .btn-primary {
        padding: 14px 32px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        width: 100% !important;
        border-radius: 8px !important;
    }
    
    /* 취소 버튼도 같이 있으면 크기 조절 */
    .custom-modal.small-modal .btn-secondary {
        padding: 14px 24px !important;
        font-size: 1rem !important;
        width: 100% !important;
        margin-bottom: 8px !important;
        border-radius: 8px !important;
    }
    
    /* 버튼 영역 세로 배치 */
    .custom-modal.small-modal .custom-modal-footer {
        flex-direction: column-reverse !important;
        gap: 0 !important;
    }
}

/* 더 작은 모바일에서 알림 모달 최적화 */
@media (max-width: 375px) {
    .custom-modal.small-modal {
        width: calc(100vw - 2rem) !important; /* 좌우 1rem씩 여백 */
        max-width: calc(100vw - 2rem) !important;
        /* 중앙 정렬 유지 */
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .custom-modal.small-modal .btn-primary {
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
    }
}

.custom-modal-header { 
    padding: 1rem 1rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid #dee2e6;
    position: relative;
}

/* 일반 custom-modal의 btn-close 스타일 */
.custom-modal-header .btn-close {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* Bootstrap 기본 아이콘 제거 */
    background-image: none !important;
    background-size: 0 !important;
    opacity: 1 !important;
    margin: 0;
    padding: 0;
}

/* Bootstrap의 ::before, ::after pseudo-element 제거 */
.custom-modal-header .btn-close::before,
.custom-modal-header .btn-close::after {
    display: none !important;
    content: none !important;
}

.custom-modal-header .btn-close:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.custom-modal-header .btn-close:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.custom-modal-title { 
    margin-bottom: 0; 
    line-height: 1.5; 
    font-size: 1.25rem;
}

.custom-modal-body { 
    position: relative; 
    flex: 1 1 auto; 
    padding: 1rem; 
    max-height: 70vh; 
    overflow-y: auto; 
    /* 스크롤바 숨기기 (모든 브라우저) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Webkit 브라우저 (Chrome, Safari) 스크롤바 숨기기 */
.custom-modal-body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* 모바일에서 추가 스타일 */
@media (max-width: 991.98px) {
    .custom-modal-body {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .custom-modal-body::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* 큰 모달용 스타일 */
.custom-modal.large-modal {
    height: 90vh !important;
    max-height: 90vh !important;
    min-height: 600px !important;
    width: min(1200px, 95vw) !important;
    max-width: 95vw !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.custom-modal.large-modal .custom-modal-body {
    max-height: none !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0 !important;
}

.custom-modal.large-modal .custom-modal-header,
.custom-modal.large-modal .custom-modal-footer {
    flex-shrink: 0 !important;
}

.custom-modal-body form { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 24px 16px; 
}

.custom-modal-body form > * { 
    flex: 1 1 220px; 
    min-width: 220px; 
    max-width: 100%; 
}

.custom-modal-footer { 
    display: flex; 
    flex-wrap: wrap; 
    flex-shrink: 0; 
    align-items: center; 
    justify-content: flex-end; 
    padding: .75rem; 
    border-top: 1px solid #dee2e6; 
    gap: 0.5rem;
}

/* 모바일에서 일반 모달의 custom-modal-footer 숨기기 (알림 모달 제외) */
@media (max-width: 991.98px) {
    .custom-modal:not(.small-modal) .custom-modal-footer {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        overflow: hidden !important;
    }
    
    /* 알림 모달(small-modal)의 footer는 보이도록 */
    .custom-modal.small-modal .custom-modal-footer {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        padding: 0.75rem 1rem 1rem 1rem !important;
        overflow: visible !important;
    }
}

@media (max-width: 900px) {
    .custom-modal { 
        width: 98vw; 
        min-width: 0; 
        max-width: 100vw; 
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .custom-modal-body { 
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .custom-modal-body::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    .custom-modal-body form { 
        flex-direction: column; 
        gap: 12px; 
    }
}

/* 로그인 모달 관련 스타일 */
/* 로그인 모달 z-index는 z-index-system.css에서 관리 */
/* 기본 상태: 숨김 (Bootstrap 모달 기본 동작) */
#loginModal {
    pointer-events: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: none !important; /* 기본적으로 숨김 */
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: 8000 !important; /* z-index-system.css와 일치 */
}

/* 모달이 표시될 때만 보이도록 (.show 클래스가 있을 때) */
#loginModal.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#loginModal .modal-dialog {
    pointer-events: auto !important;
    position: relative !important;
    margin: auto !important;
    width: 500px !important; /* 고정 너비로 더 넓게 설정 */
    max-width: 95% !important; /* 90% → 95%로 넓게 조절 */
    min-width: 400px !important; /* 최소 너비 보장 */
}

#loginModal .modal-content {
    pointer-events: auto !important;
    position: relative !important;
    background: #ffffff !important;
    opacity: 1 !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

#loginModal .modal-body {
    pointer-events: auto !important;
}

/* 모바일 화면에서 로그인 모달 최적화 (991.98px 이하) - 일반적인 로그인 화면 스타일 */
@media (max-width: 991.98px) {
    /* 모달이 표시될 때 중앙 정렬 유지 */
    #loginModal.show {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* 모달 백드롭이 전체 화면을 덮도록 */
    #loginModal + .modal-backdrop {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
    }
    
    /* 모달 다이얼로그 - 화면 중앙에 위치, 하단 네비게이션 바 고려 */
    #loginModal .modal-dialog {
        margin: 0 auto !important; /* 좌우 중앙 정렬 */
        margin-top: auto !important; /* 상단 자동 (flex로 인해 중앙 정렬) */
        margin-bottom: 70px !important; /* 하단 네비게이션 바(55px) + 여백(15px) */
        max-width: calc(100vw - 0.5rem) !important; /* 여백을 0.5rem으로 더 줄여서 최대한 넓게 */
        width: 90% !important; /* 고정 너비로 더 넓게 설정 */
        min-width: 320px !important; /* 최소 너비 보장 */
        max-height: calc(100vh - 2rem - 70px) !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
    }
    
    /* 모달 콘텐츠 - 스크롤 가능하도록 */
    #loginModal .modal-content {
        max-height: calc(100vh - 2rem - 70px) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* 모달 헤더 */
    #loginModal .modal-header {
        flex-shrink: 0 !important;
        padding: 1.25rem 1.5rem !important;
        border-bottom: 1px solid #dee2e6 !important;
    }
    
    /* 모달 바디 - 스크롤 가능 */
    #loginModal .modal-body {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 1.5rem !important;
        min-height: 0 !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        scrollbar-color: rgba(0, 0, 0, 0.2) transparent !important;
    }
    
    #loginModal .modal-body::-webkit-scrollbar {
        width: 6px !important;
    }
    
    #loginModal .modal-body::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2) !important;
        border-radius: 3px !important;
    }
    
    /* 모달 푸터 */
    #loginModal .modal-footer {
        flex-shrink: 0 !important;
        padding: 1rem 1.5rem !important;
        border-top: 1px solid #dee2e6 !important;
    }
}

/* 작은 모바일 화면에서 로그인 모달 최적화 (575.98px 이하) */
@media (max-width: 575.98px) {
    /* 작은 화면에서는 여백을 줄임 */
    #loginModal .modal-dialog {
        margin: 0 auto !important; /* 좌우 중앙 정렬 */
        margin-top: auto !important; /* 상단 자동 (flex로 인해 중앙 정렬) */
        margin-bottom: 70px !important; /* 하단 네비게이션 바(55px) + 여백(15px) */
        max-width: calc(100vw - 0.5rem) !important; /* 여백을 0.5rem으로 더 줄여서 최대한 넓게 */
        width: 95% !important; /* 고정 너비로 더 넓게 설정 */
        min-width: 300px !important; /* 최소 너비 보장 */
        max-height: calc(100vh - 1.5rem - 70px) !important;
    }
    
    #loginModal .modal-content {
        max-height: calc(100vh - 1.5rem - 70px) !important;
        border-radius: 10px !important;
    }
    
    #loginModal .modal-header {
        padding: 1rem 1.25rem !important;
    }
    
    #loginModal .modal-body {
        padding: 1.25rem !important;
    }
    
    #loginModal .modal-footer {
        padding: 0.75rem 1.25rem !important;
    }
    
    /* 모바일에서 모든 입력 필드 동일한 높이 보장 */
    #loginModal input[type="text"],
    #loginModal input[type="password"],
    #loginModal input[type="email"],
    #loginModal .form-control {
        height: 44px !important; /* iOS 권장 터치 타겟 크기 */
        min-height: 44px !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 16px !important; /* iOS 줌 방지 */
        line-height: 1.5 !important;
        border: 1px solid #ced4da !important;
        border-radius: 0.375rem !important;
        box-sizing: border-box !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }
    
    /* 비밀번호 필드 특별 처리 - 높이 보장 */
    #loginModal input[type="password"] {
        height: 44px !important;
        min-height: 44px !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
}

#loginModal input,
#loginModal button,
#loginModal .form-control {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    cursor: text !important;
    opacity: 1 !important;
    background-color: white !important;
}

/* 자동완성 드롭다운 및 Tab 아이콘 숨기기 */
#loginModal input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
}

#loginModal input::-webkit-strong-password-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
}

#loginModal input::-webkit-textfield-decoration-container {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
}

#loginModal input:focus {
    outline: 2px solid #0d6efd !important;
    outline-offset: 2px !important;
    background-color: white !important;
}

#loginModal input:hover {
    background-color: #f8f9fa !important;
}

#loginModal button {
    cursor: pointer !important;
    color: white !important;
}

#loginModal .btn-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: white !important;
}

#loginModal .btn-primary:hover {
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
    color: white !important;
}

#loginModal .btn-success {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}

#loginModal .btn-success:hover {
    background-color: #157347 !important;
    border-color: #146c43 !important;
    color: white !important;
}

#loginModal .btn-info {
    background-color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
    color: white !important;
}

#loginModal .btn-info:hover {
    background-color: #31d2f2 !important;
    border-color: #25cff2 !important;
    color: white !important;
}

/* 모든 모달 버튼에 기본 텍스트 색상 적용 */
#loginModal button[type="submit"] {
    font-weight: 500 !important;
    font-size: 1rem !important;
    text-align: center !important;
}

/* 소셜 로그인 버튼 스타일 */
#loginModal .btn-outline-danger {
    color: #212529 !important;
    border-color: #212529 !important;
}

#loginModal .btn-outline-danger:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #212529 !important;
    border-color: #212529 !important;
}

#loginModal .btn-outline-dark {
    color: #212529 !important;
    border-color: #212529 !important;
}

#loginModal .btn-outline-dark:hover {
    background-color: rgba(33, 37, 41, 0.3) !important;
    color: #212529 !important;
    border-color: #212529 !important;
}

#loginModal .btn-outline-warning {
    color: #000000 !important;
    border-color: #FEE500 !important;
    background-color: #FEE500 !important;
}

#loginModal .btn-outline-warning:hover {
    background-color: #FDD835 !important;
    color: #000000 !important;
    border-color: #FDD835 !important;
}

#loginModal .btn-outline-warning:hover svg path {
    fill: #000000 !important;
}

/* 모달 내 링크 스타일 */
#loginModal a {
    color: #0d6efd !important;
    text-decoration: none !important;
}

#loginModal a:hover {
    color: #0b5ed7 !important;
    text-decoration: underline !important;
}

#loginModal .text-muted {
    color: #6c757d !important;
}

/* 모달 백드롭 설정 - 색상/블러는 여기서만 관리 (z-index는 z-index-system.css에서 관리) */
.modal-backdrop {
    background-color: rgba(15, 23, 42, 0.75); /* 딥 네이비 계열 반투명 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal-backdrop.show {
    opacity: 1;
}

/* Bootstrap 모달이 열렸을 때 body 설정 */
body.modal-open {
    overflow: hidden;
    /* scrollbar-gutter: stable로 이미 스크롤바 공간이 확보되어 있으므로 
       Bootstrap이 추가하는 padding-right를 제거하여 회색 공간 방지 */
    padding-right: 0 !important;
}

body.modal-open #loginModal {
    pointer-events: auto !important;
}

body.modal-open #loginModal input,
body.modal-open #loginModal button {
    pointer-events: auto !important;
}

/* 추가: 모든 자동완성 관련 요소 숨기기 */
#loginModal input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#loginModal input[type="text"],
#loginModal input[type="password"],
#loginModal input[type="email"] {
    background-image: none !important;
    background-position: initial !important;
    background-repeat: no-repeat !important;
}

/* Webkit 기반 브라우저의 자동완성 아이콘 제거 */
#loginModal input::-webkit-contacts-auto-fill-button,
#loginModal input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    position: absolute;
    right: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

/* 차트 로딩 스켈레톤 */
.chart-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.25rem;
    z-index: 1000;
}

.chart-skeleton::after {
    content: "차트 로딩 중...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #888;
    font-size: 16px;
    font-weight: 500;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.chart-skeleton.hidden {
    display: none;
}

/* Form Label 스타일 */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Button 스타일 */
.btn.rounded-3 {
    border-radius: 12px !important;
}

/* Creator Card 스타일 */
.creator-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 1rem; /* 기존 2rem에서 1rem으로 줄임 */
}

/* 텍스트영역 플레이스홀더 스타일링 개선 */
#strategy-description::placeholder {
    color: #999;
    font-style: italic;
    opacity: 0.7;
    font-size: 0.95em;
}

#strategy-description:focus::placeholder {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

