        body {
            font-family: 'Inter', sans-serif;
        }

        .input-field {
            padding: 12px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            outline: none;
            width: 100%;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .input-field:focus {
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
        }

        /* ----------------------- 모달 및 미리보기 스타일 ----------------------- */
        /* 모달 오버레이 */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.75);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease;
        }

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

        /* 모달 내용 컨테이너 (스크롤 가능) */
        .modal-content-container {
            background: #f7f7f7;
            padding: 20px;
            max-height: 95vh; /* 뷰포트 높이의 95% */
            overflow-y: auto;
            border-radius: 12px;
            width: 90%; /* 모바일에서 더 넓게 */
            max-width: 900px; /* 데스크톱에서 최대 너비 */
            position: relative;
        }

        /* 이력서 미리보기 영역 스타일 (A4 크기: 210mm x 297mm) */
        #resume-preview {
            width: 210mm;
            min-height: 297mm;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            padding: 40px; 
            font-size: 10pt;
            background-color: white;
            margin-left: auto; 
            margin-right: auto;
            position: relative;
        }
        
        /* A4 크기 확인을 위한 임시 스타일 */
        #size-label {
            position: absolute;
            top: 5px;
            right: 5px;
            color: #ef4444;
            font-weight: bold;
            font-size: 8pt;
            padding: 2px 4px;
            border-radius: 4px;
            z-index: 10;
        }

        /* 한국식 레이아웃을 위한 테이블 스타일 */
        .korean-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 10pt;
        }
        .korean-table th, .korean-table td {
            border: 1px solid #e5e7eb;
            padding: 8px 12px;
            text-align: left;
        }
        .korean-table th {
            width: 100px;
            background-color: #f9fafb;
            font-weight: 600;
            color: #4b5563;
            text-align: center;
        }
        .korean-table .title-row th {
            background-color: #3b82f6;
            color: white;
            padding: 12px;
            font-size: 1.1rem;
            text-align: center;
        }
        
        /* 인적사항 사진 크기 조정 */
        #photo-container {
             height: 160px !important; 
        }
        .korean-table tbody tr:first-child th[rowspan="4"] {
            width: 128px !important;
        }
        
        /* 자기소개서 내용 줄바꿈 유지 */
        .whitespace-pre-wrap {
            white-space: pre-wrap;
        }

        /* 메시지 박스 스타일 */
        .message-box {
            position: fixed;
            bottom: 1rem; 
            right: 1rem;
            padding: 12px 20px;
            border-radius: 10px;
            color: white;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 1001; /* 모달 위에 표시 */
            transition: opacity 0.3s ease-in-out;
        }

        /* 인쇄 시 스타일 조정 (A4 용지 출력 보장) */
        @media print {
            /* 모달 내의 이력서만 인쇄되도록 설정 */
            body > *:not(.modal-overlay) {
                display: none;
            }
            .modal-overlay {
                position: static; 
                display: block; 
                width: auto; 
                height: auto; 
                background: none;
                visibility: visible;
                opacity: 1;
            }
            .modal-content-container {
                max-height: none;
                overflow: visible;
                width: auto;
                max-width: none;
                padding: 0;
            }
            #resume-preview {
                box-shadow: none;
                min-height: auto;
                width: 210mm; 
                margin: 0 auto;
                padding: 15mm;
                font-size: 10pt; 
                border-top: none;
            }
            #size-label, .modal-controls {
                display: none !important;
            }
            .korean-table th, .korean-table td {
                border-color: #333;
            }
        }