/* Resume section styles */

/* resume/job_application_update.php */
.resume-job-apply-error-body,
.resume-job-apply-success-body {
    background-color: #f8f9fa;
}

/* resume/job_application.php */
.app-paper {
    max-width: 900px;
    margin: 50px auto;
    background: #fff;
    padding: 60px 80px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    line-height: 1.8;
    color: #000;
}

.app-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--business-blue, #1A365D);
    margin-bottom: 50px;
    text-decoration: underline;
    text-underline-offset: 10px;
}

.app-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    font-size: 16px;
}

.app-info-table th {
    width: 150px;
    text-align: left;
    padding: 10px 0;
    font-weight: bold;
    color: #6c757d;
}

.app-info-table td {
    text-align: left;
    padding: 10px 0;
    font-weight: bold;
    color: #212529;
}

.app-body {
    font-size: 18px;
    margin-bottom: 60px;
    line-height: 2;
    text-align: justify;
}

.app-date {
    text-align: center;
    font-size: 18px;
    margin-bottom: 60px;
}

.app-footer {
    font-size: 16px;
    color: #555;
    text-align: center;
    border-top: 1px solid #000;
    padding-top: 20px;
}

@media (max-width: 768px) {
    .container.py-4 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .app-paper {
        margin: 24px auto;
        padding: 40px 14px 18px;
    }

    .app-title {
        font-size: 1.3rem;
        margin-bottom: 16px;
        text-underline-offset: 3px;
        line-height: 1.28;
        word-break: keep-all;
    }

    .app-info-table {
        display: block;
        font-size: 0.94rem;
    }

    .app-info-table tbody,
    .app-info-table tr,
    .app-info-table th,
    .app-info-table td {
        display: block;
        width: 100% !important;
    }

    .app-info-table th {
        padding: 8px 0 2px;
        font-size: 0.78rem;
        color: #6b7280;
    }

    .app-info-table td {
        padding: 0 0 10px;
        font-size: 1rem;
    }

    .app-body,
    .app-date {
        font-size: 0.94rem;
        margin-bottom: 18px;
    }

    .app-footer {
        font-size: 0.82rem;
        line-height: 1.7;
    }

    .text-center.mt-4 {
        margin-top: 28px !important;
        margin-bottom: 18px;
    }
}

/* resume/list.php */
.custom-control-label {
    cursor: pointer;
    font-size: 0.95rem;
}

.hover-shadow:hover {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08) !important;
    z-index: 1;
    position: relative;
}

.transition-all {
    transition: all 0.2s ease-in-out;
}

.btn-reset-custom {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #212529;
    transition: all 0.2s;
    font-size: 1rem !important;
    font-weight: 700 !important;
}

.btn-reset-custom:hover {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #000 !important;
}

.resume-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1f3f5;
}

.main-section {
    margin-top: 60px;
    margin-bottom: 56px;
    padding-bottom: 24px;
}

.action-wrap {
    width: 88px;
    flex-shrink: 0;
}

.btn-wrap-custom {
    width: 100%;
}

.btn-sm-custom {
    padding: 6px 0;
    font-size: 0.9rem !important;
    height: 38px;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    width: 100%;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .list-group-item {
        padding: 12px 10px 14px 10px !important;
        position: relative;
    }

    .action-wrap {
        position: absolute !important;
        top: 12px;
        right: 10px;
        width: auto !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
    }

    .btn-wrap-custom {
        width: auto;
    }

    .btn-sm-custom {
        padding: 3px 10px !important;
        font-size: 0.75rem !important;
        height: 28px !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .resume-name-block {
        padding-right: 75px;
    }

    .resume-name-link {
        display: inline-block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
    }
}

/* resume/register.php */
.register-bg {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    min-height: 100vh;
    padding: 40px 0;
}

.register-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    padding: 50px;
}

.register-title {
    text-align: center;
    margin-bottom: 40px;
}

.register-title h2 {
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
    font-family: 'Pretendard', sans-serif;
}

.register-title p {
    color: #666;
    font-size: 1.1rem;
}

.section-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef0f5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control-custom {
    border: 2px solid #eef0f5;
    background: #f9faff;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    width: 100%;
    transition: all 0.2s;
    box-sizing: border-box;
    display: block;
    height: 52px;
}

.form-control-custom:focus {
    border-color: #4A6cf7;
    background: #fff;
    outline: none;
}

textarea.form-control-custom {
    line-height: 1.6;
    resize: vertical;
    height: auto;
}

.btn-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #4A6cf7 0%, #4834d4 100%);
    color: white;
    border: none;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    height: 56px;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 0px;
    box-sizing: border-box;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.3);
}

.btn-cancel {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 56px;
    padding: 0 16px;
    background: #fff;
    border: 2px solid #eef0f5;
    color: #666;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 0px;
    text-decoration: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.btn-cancel:hover {
    background: #f8f9fa;
    color: #333;
    border-color: #dee2e6;
}

.photo-upload-box {
    width: 150px;
    height: 200px;
    margin: 0 auto 15px;
    border: 2px dashed #eef0f5;
    border-radius: 12px;
    background: #f9faff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.photo-upload-box:hover {
    border-color: #4A6cf7;
    background: #fff;
}

.photo-upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    text-align: center;
    color: #adb5bd;
}

.photo-placeholder i {
    font-size: 40px;
    display: block;
    margin-bottom: 5px;
}

.nat-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.nat-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.nat-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nat-modal-title {
    font-weight: bold;
    font-size: 18px;
}

.nat-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.nat-modal-body {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.nat-search-box {
    padding: 15px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
}

.nat-list-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.1s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nat-list-item:hover {
    background: #f8f9fa;
}

.nat-list-item.selected {
    background: #eef4ff;
    font-weight: bold;
    color: #4A6cf7;
}

@media (max-width: 768px) {
    .register-bg {
        padding: 20px 10px;
    }

    .register-card {
        padding: 24px 15px;
    }
}

/* resume/view.php */
.content-box {
    padding: 30px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 16px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1;
    font-family: 'Pretendard', sans-serif;
}

.sidebar-card {
    border: 1px solid #ebebeb;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #fff;
    padding: 25px;
    position: sticky;
    top: 110px;
}

.sidebar-card + .mt-4.p-4.border.rounded.bg-white.text-center {
    display: none;
}

.btn-action-lg {
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
}

.resume-names {
    font-family: 'Pretendard', sans-serif;
}

.resume-photo-pc {
    width: 100%;
    max-width: 100px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.resume-photo-mobile {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
    margin-bottom: 15px;
}

.info-label {
    color: #6c757d;
    font-weight: 400;
    font-size: 0.875rem;
    display: inline-block;
    width: 100px;
}

.info-label.d-block {
    width: auto !important;
}

.info-row {
    margin-bottom: 12px;
    word-break: keep-all;
    color: #212529;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.6;
}

.info-row.mt-2,
.info-row.mt-3 {
    margin-top: 0 !important;
}

.stay-period-box {
    padding: 18px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.info-row-tight {
    margin-bottom: 12px !important;
}

.info-row-block {
    margin-bottom: 12px !important;
}

.info-row-block .info-label {
    margin-bottom: 0 !important;
}

.file-badge-inline,
.file-note-inline {
    margin-left: 10px;
    margin-top: 0 !important;
    vertical-align: middle;
}

.stay-period-line {
    margin-bottom: 8px;
    color: #212529;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
}

.stay-period-line:last-child {
    margin-bottom: 0;
}

.stay-period-label,
.stay-region-label {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 400;
}

.stay-region-line {
    margin-top: 10px;
    color: #dc3545;
    font-size: 0.95rem;
    line-height: 1.45;
}

.blur-content {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
}

.secret-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 100px;
    text-align: center;
    z-index: 10;
}

.main-section {
    margin-top: 60px;
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .content-box {
        padding: 24px 15px;
    }

    .info-row {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .stay-period-box {
        padding: 16px 14px;
    }

    .stay-period-line {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .stay-region-line {
        font-size: 0.9rem;
    }

    .info-row-tight,
    .info-row-block {
        margin-bottom: 10px !important;
    }
}

@media print {
    #hd,
    #ft,
    #side_menu,
    .sidebar-card,
    .btn,
    .secret-overlay {
        display: none !important;
    }

    body {
        background-color: #fff !important;
        margin: 0;
        padding: 0;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .col-lg-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .content-box {
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-section {
        margin-top: 0 !important;
    }
}

/* resume/job_register.php */
.content-box {
    padding: 30px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 16px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1;
    font-family: 'Pretendard', sans-serif;
}

.sidebar-card {
    border: 1px solid #ebebeb;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #fff;
    padding: 25px;
    position: sticky;
    top: 110px;
}

.resume-names {
    font-family: 'Pretendard', sans-serif;
}

.resume-photo-pc {
    width: 100%;
    max-width: 100px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.resume-photo-mobile {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
    margin-bottom: 15px;
}

.info-label {
    color: #6c757d;
    font-weight: 400;
    font-size: 0.875rem;
    display: inline-block;
    width: 100px;
}

.info-label.d-block {
    width: auto !important;
}

.info-row {
    margin-bottom: 12px;
    word-break: keep-all;
}

.info-row .bg-light,
.info-row .lh-lg.text-dark.bg-light.p-3.rounded {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: #212529;
    padding: 1rem !important;
}

.info-row .bg-light strong {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 400;
}

.info-row .bg-light .text-danger,
.info-row .bg-light .small,
.info-row .bg-light .mt-2.text-danger.small {
    color: #6c757d !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
}

.info-row .bg-light .text-danger strong,
.info-row .bg-light .small strong,
.info-row .bg-light .mt-2.text-danger.small strong {
    color: #6c757d !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
}

.info-row .badge.bg-primary.rounded-pill,
.info-row .badge.bg-success.rounded-pill {
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    padding: 0.3rem 0.72rem !important;
}

.info-row a.badge.bg-primary.rounded-pill {
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    padding: 0.3rem 0.72rem !important;
    line-height: 1.2;
}

.info-row a.badge.bg-primary.rounded-pill i {
    font-size: 0.8rem;
}

.section-title + .row.mb-3 .info-row,
.section-title + .row + .row.mb-3 .info-row,
.section-title + .row + .row .info-row {
    line-height: 1.8;
}

.main-section {
    margin-top: 60px;
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .content-box {
        padding: 24px 15px;
    }
}

.resume-job-register-page .file-badge-inline,
.resume-job-register-page .file-note-inline {
    margin-left: 10px;
    margin-top: 0 !important;
    vertical-align: middle;
}

.resume-job-register-page .info-row > a.badge.bg-primary.rounded-pill.text-white.text-decoration-none,
.resume-job-register-page .info-row > a.badge.bg-primary.rounded-pill.text-white.text-decoration-none.ms-2.fs-6.fw-normal,
.resume-job-register-page .info-row > a.badge.bg-primary.rounded-pill.text-white.text-decoration-none.ms-2.fs-6.fw-normal.mt-2 {
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    padding: 0.3rem 0.72rem !important;
    line-height: 1.2 !important;
}

.resume-job-register-page .info-row .text-muted.small.ms-2,
.resume-job-register-page .info-row .text-muted.small.ms-2.mt-2 {
    margin-left: 10px !important;
    margin-top: 0 !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
}
