/* corp.hancoma.com - 커스텀 스타일 */

/* Pretendard 폰트 최적화 */
* {
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 스크롤 부드럽게 */
html {
    scroll-behavior: smooth;
}

/* 링크 기본 스타일 */
a {
    transition: color 0.15s ease, opacity 0.15s ease;
}

/* 드롭다운 그룹 hover 처리 */
.group:hover .group-hover\:visible {
    visibility: visible;
}

/* 페이지 로딩 시 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

main {
    animation: fadeIn 0.2s ease-out;
}

/* 검색 하이라이트 */
mark {
    background-color: #FEF08A;
    color: inherit;
    border-radius: 2px;
    padding: 0 2px;
}

/* 스크롤탑 버튼 표시 */
#scrollTop.show {
    opacity: 1;
    visibility: visible;
}

/* 테이블 스타일 */
.data-table th,
.data-table td {
    padding: 0.625rem 1rem;
    border-bottom: 1px solid #F3F4F6;
}

.data-table thead th {
    background: #F9FAFB;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 회사 카드 호버 효과 */
.company-card {
    transition: all 0.15s ease;
}

.company-card:hover {
    transform: translateY(-1px);
}

/* 태블릿/모바일에서 사이드 필터 스타일 */
@media (max-width: 1023px) {
    .sticky {
        position: static;
    }
}

/* 페이지네이션 */
nav[aria-label="페이지네이션"] a,
nav[aria-label="페이지네이션"] span {
    font-size: 0.875rem;
}

/* Chart.js 캔버스 */
canvas {
    max-width: 100%;
}

/* 관리자 페이지 탭 애니메이션 */
.tab-content {
    animation: fadeIn 0.15s ease-out;
}

/* 업로드 드롭존 애니메이션 */
#dropzone {
    transition: all 0.2s ease;
}

/* 진행 바 */
#progressBar {
    transition: width 0.5s ease;
}

/* 접근성: 포커스 링 */
:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* 스크린리더 전용 클래스 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* 인쇄 스타일 */
@media print {
    header, footer, nav, #scrollTop, aside { display: none; }
    main { padding: 0; }
    a { text-decoration: underline; }
}
