/* ============================================
   전체 리디자인 - 추가 CSS
   ============================================ */

:root {
    /* 더 선명한 Primary 색상 */
    --primary-600: #3b5bdb;
    --primary-700: #364fc7;

    /* 더 진한 텍스트 */
    --text-primary-light: #1a1a2e;
    --text-secondary-light: #4a5568;

    /* 더 부드러운 배경 */
    --bg-color: #f7f8fc;
    --white: #ffffff;

    /* 강화된 그림자 */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 카드 개선 */
.card {
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

/* 버튼 개선 */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-primary-600:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 91, 219, 0.4);
}

/* 테이블 개선 */
.bordered-table thead tr th {
    background-color: #f1f5f9 !important;
    font-weight: 700;
    letter-spacing: 0.025em;
}

/* 사이드바 개선 */
.sidebar {
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.05);
}

.sidebar-menu li a:hover {
    background-color: var(--primary-50);
    transform: translateX(4px);
}
/* === 1. 글자 크기 및 타이포그래피 개선 === */
:root {
    /* 글자 크기 조정 (기존보다 살짝 크게) */
    --font-2xxl: 2.25rem;
    --font-2xl: 1.875rem;
    --font-xxl: 1.625rem;
    --font-xl: 1.375rem;
    --font-lg: 1.125rem;
    --font-md: 1rem;
    --font-sm: 0.9375rem;
    --font-xs: 0.8125rem;
    --font-xxs: 0.75rem;

    /* 더 선명한 색상 */
    --primary-600: #4361ee;
    --primary-700: #3a56d4;
    --primary-800: #2f47b3;

    /* 텍스트 대비 강화 */
    --text-primary-light: #1e293b;
    --text-secondary-light: #475569;

    /* 배경 톤 조정 */
    --bg-color: #f8fafc;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;

    /* 그림자 강화 */
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.08);
}

body {
    font-size: 15px;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

/* === 2. 카드 리디자인 === */
.card {
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
}

.card .card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
}

.card .card-title {
    font-size: 1.125rem !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card .card-body {
    padding: 1.25rem 1.5rem;
}

/* === 3. 버튼 리디자인 === */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

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

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

.btn-primary-600 {
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
}

.btn-primary-600:hover {
    box-shadow: 0 4px 16px rgba(67, 97, 238, 0.4);
}

.btn-success {
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.btn-danger {
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

.btn.btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
}

/* === 4. 테이블 리디자인 === */
.bordered-table,
.basic-data-table table {
    border-radius: 12px;
    overflow: hidden;
}

.bordered-table thead tr th,
.basic-data-table thead th {
    background-color: #f1f5f9 !important;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary-light) !important;
    padding: 1rem 1.25rem !important;
}

.bordered-table tbody tr td,
.basic-data-table tbody td {
    padding: 1rem 1.25rem !important;
    font-size: 0.9375rem;
    vertical-align: middle;
}

.bordered-table tbody tr:hover td {
    background-color: #f8fafc !important;
}

/* === 5. 폼 요소 리디자인 === */
.form-control,
.form-select {
    border-radius: 10px;
    font-size: 0.9375rem;
    border: 1.5px solid var(--neutral-300);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary-light);
}

/* === 6. 사이드바 리디자인 === */
.sidebar {
    box-shadow: 4px 0 24px rgba(0,0,0,0.04);
}

.sidebar-menu li a {
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.sidebar-menu li a:hover {
    background-color: var(--primary-50);
    transform: translateX(4px);
}


.sidebar-menu .sidebar-menu-group-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neutral-400);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* === 7. 네비게이션 바 리디자인 === */
.navbar-header {
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.navbar-search input {
    border-radius: 10px;
    font-size: 0.9375rem;
}

/* === 8. 뱃지 리디자인 === */
.badge {
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

/* === 9. 모달 리디자인 === */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-radius: 16px 16px 0 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-radius: 0 0 16px 16px;
}

/* === 10. 드롭다운 리디자인 === */
.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.04);
    padding: 0.5rem;
}

.dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    transition: background-color 0.15s;
}

.dropdown-menu .dropdown-item:hover {
    background-color: var(--neutral-100);
}

/* === 11. 알림/알럿 리디자인 === */
.alert {
    border-radius: 12px;
    border: none;
    font-weight: 500;
    padding: 1rem 1.25rem;
}

/* === 12. 페이지네이션 리디자인 === */
.pagination .page-link,
.applicant-page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* === 13. 아바타 리디자인 === */
.avatar-xl,
.avatar-lg,
.avatar-md,
.avatar-sm {
    border-radius: 12px;
}

/* === 14. 프로그레스바 리디자인 === */
.progress {
    border-radius: 8px;
    height: 8px;
}

.progress-bar {
    border-radius: 8px;
}

/* === 15. 툴팁/팝오버 리디자인 === */
.tooltip-inner {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
}

/* === 16. 로딩 오버레이 개선 === */
#loadingOverlay {
    backdrop-filter: blur(4px);
}

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
}

/* === 18. 반응형 글자 크기 === */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .card .card-title {
        font-size: 1rem !important;
    }

    .btn {
        font-size: 0.875rem;
    }
}