  /**
 * Job Manager Application Button Styles
 * Matches theme's button styling
 */

/* Apply for job button */
.application_button.button,
.application_button.button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.15em 2.1em;
    border: 1px solid #0073aa;
    background-color: #0073aa;
    color: #fff;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    text-transform: none;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.22, 0.665, 0.34, 0.875);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.application_button.button:hover,
.application_button.button:focus {
    border-color: transparent;
    background-color: #0073aa;
    color: #fff;
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.application_button.button:active {
    transform: translate3d(0, 0, 0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Send Application button */
.wp_job_manager_send_application_button.button,
.wp_job_manager_send_application_button.button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.15em 2.1em;
    border: 1px solid #0073aa;
    background-color: #0073aa;
    color: #fff;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    text-transform: none;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.22, 0.665, 0.34, 0.875);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    width: auto;
    min-width: 150px;
}

.wp_job_manager_send_application_button.button:hover,
.wp_job_manager_send_application_button.button:focus {
    border-color: transparent;
    background-color: #0073aa;
    color: #fff;
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.wp_job_manager_send_application_button.button:active {
    transform: translate3d(0, 0, 0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wp_job_manager_send_application_button.button.disabled,
.wp_job_manager_send_application_button.button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Ensure buttons are properly spaced */
.job_application .application_button.button {
    margin-bottom: 1em;
}

.job-manager-application-form p:last-child {
    margin-top: 1.5em;
}

/* Apply with Resume form - Send Application button */
.apply_with_resume input[type="submit"][name="wp_job_manager_resumes_apply_with_resume"],
.apply_with_resume input[type="submit"][name="wp_job_manager_resumes_apply_with_resume"]:visited,
.apply_with_resume input[type="submit"][name="wp_job_manager_resumes_apply_with_resume_create"],
.apply_with_resume input[type="submit"][name="wp_job_manager_resumes_apply_with_resume_create"]:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.15em 2.1em;
    border: 1px solid #0073aa;
    background-color: #0073aa;
    color: #fff;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    text-transform: none;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.22, 0.665, 0.34, 0.875);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    width: auto;
    min-width: 150px;
}

.apply_with_resume input[type="submit"][name="wp_job_manager_resumes_apply_with_resume"]:hover,
.apply_with_resume input[type="submit"][name="wp_job_manager_resumes_apply_with_resume"]:focus,
.apply_with_resume input[type="submit"][name="wp_job_manager_resumes_apply_with_resume_create"]:hover,
.apply_with_resume input[type="submit"][name="wp_job_manager_resumes_apply_with_resume_create"]:focus {
    border-color: transparent;
    background-color: #0073aa;
    color: #fff;
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.apply_with_resume input[type="submit"][name="wp_job_manager_resumes_apply_with_resume"]:active,
.apply_with_resume input[type="submit"][name="wp_job_manager_resumes_apply_with_resume_create"]:active {
    transform: translate3d(0, 0, 0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Candidate Dashboard Link */
.job-listing-dashboard-link {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.job-listing-dashboard-link a {
    display: inline-flex;
    align-items: center;
    color: #0073aa;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.job-listing-dashboard-link a:hover {
    color: #005a87;
    text-decoration: underline;
}

.job-listing-dashboard-link a:before {
    content: "← ";
    margin-right: 0.5em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .application_button.button,
    .wp_job_manager_send_application_button.button,
    .apply_with_resume input[type="submit"] {
        width: 100%;
        padding: 1em 1.5em;
    }
}

