/* 서류관리시스템 스타일 */
:root {
    --primary: #4472C4;
    --sidebar-width: 240px;
}

body {
    font-family: 'Pretendard', -apple-system, 'Malgun Gothic', '맑은 고딕', sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* 사이드바 */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background-color: #2c3e50;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.sidebar-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255,255,255,0.1);
}

.sidebar .nav-link.active {
    color: white;
    background-color: var(--primary);
}

.sidebar .nav-link i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

/* 메인 컨텐츠 */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* 로그인 페이지 */
.login-body {
    background: linear-gradient(135deg, #4472C4 0%, #2c3e50 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

/* 카드 */
.summary-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.summary-card:hover {
    transform: translateY(-2px);
}

/* 테이블 */
.table-header {
    background-color: var(--primary);
    color: white;
}

.table-header th {
    font-weight: 500;
    font-size: 0.85rem;
    border: none;
}

.table td, .table th {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* PDF 뷰어 */
.pdf-viewer {
    width: 100%;
    height: 80vh;
    border: none;
}

/* 상태 배지 */
.badge {
    font-weight: 500;
    font-size: 0.8rem;
}

/* 카드 헤더 */
.card-header {
    font-weight: 600;
    font-size: 0.95rem;
}

/* 서류생성 로고 */
.gen-logo {
    max-height: 48px;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.company-logo-header {
    max-height: 32px;
    max-width: 140px;
    object-fit: contain;
    margin-right: 0.75rem;
}

/* 정렬 가능한 테이블 헤더 */
/* 사이드바 서브메뉴 */
.sidebar .sub-link {
    font-size: 0.82rem;
    padding: 0.35rem 0.75rem;
    color: rgba(255,255,255,0.55);
}

.sidebar .sub-link:hover {
    color: white;
    background-color: rgba(255,255,255,0.08);
}

.sidebar .sub-link.active {
    color: white;
    background-color: rgba(68,114,196,0.7);
}

/* 서류생성 허브 카드 */
.gen-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.gen-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.gen-card .card-body {
    text-align: center;
    padding: 2rem 1.5rem;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gen-card .gen-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.sortable:hover {
    background-color: rgba(255,255,255,0.15);
}

.sort-icon {
    font-size: 0.7rem;
    margin-left: 4px;
    opacity: 0.5;
}

.sortable.asc .sort-icon,
.sortable.desc .sort-icon {
    opacity: 1;
}
