/* --- Responsive styles for job board and application modal --- */
.hr-jobs-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5em 1em;
}
/* ...existing code... */

/* --- Application Modal --- */
.hr-apply-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1em;
}
.hr-apply-modal-content {
    background: #fff;
    border-radius: 14px;
    max-width: 420px;
    width: 100%;
    padding: 2em 1.2em 1.2em 1.2em;
    box-shadow: 0 4px 24px rgba(25,118,210,0.13);
    position: relative;
    animation: fadeInModal 0.2s;
}
@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: none; }
}
.hr-apply-modal-close {
    position: absolute;
    top: 1em;
    right: 1em;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}
.hr-apply-modal-close:hover {
    color: #1976d2;
}
.hr-apply-form label {
    display: block;
    margin-bottom: 0.3em;
    font-weight: 600;
}
.hr-apply-form input[type="text"],
.hr-apply-form input[type="email"],
.hr-apply-form input[type="file"] {
    width: 100%;
    padding: 0.5em 0.7em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 7px;
    font-size: 1em;
}
.hr-apply-form input[type="file"] {
    padding: 0.3em 0.2em;
}
.hr-apply-form button[type="submit"] {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.7em 1.5em;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}
.hr-apply-form button[type="submit"]:hover {
    background: #2e7d32;
}
.hr-apply-form .hr-apply-note {
    font-size: 0.97em;
    color: #666;
    margin-bottom: 1em;
}
.hr-apply-form .hr-apply-error {
    color: #c62828;
    font-size: 0.98em;
    margin-bottom: 0.7em;
}
.hr-apply-form .hr-apply-success {
    color: #2e7d32;
    font-size: 1em;
    margin-bottom: 0.7em;
}

@media (max-width: 600px) {
    .hr-apply-modal-content {
        max-width: 98vw;
        padding: 1.2em 0.5em 0.7em 0.5em;
    }
    .hr-apply-form button[type="submit"] {
        font-size: 1em;
        padding: 0.7em 0;
    }
}
/* --- Responsive styles for job board --- */
.hr-jobs-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5em 1em;
}

.jobs-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7em;
    margin-bottom: 1.5em;
}
.filter-title {
    font-weight: 600;
    margin-right: 0.7em;
}
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}
.filter-chip {
    border: none;
    background: #f1f1f1;
    color: #333;
    border-radius: 20px;
    padding: 0.4em 1.1em;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.filter-chip.active, .filter-chip:hover {
    background: #1976d2;
    color: #fff;
}

.jobs-listing {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}
.job-posting {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 1.2em 1.5em;
    transition: box-shadow 0.2s;
}
.job-posting:hover {
    box-shadow: 0 4px 16px rgba(25,118,210,0.13);
}
.job-header-click {
    min-height: 60px;
}
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7em;
    font-size: 0.98em;
    margin-top: 0.3em;
}
.job-meta-item {
    background: #f5f5f5;
    border-radius: 14px;
    padding: 0.2em 0.8em;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
}
.job-arrow {
    margin-left: 1em;
}
.job-details {
    border-top: 1px solid #eee;
    margin-top: 1em;
    padding-top: 1em;
}
.job-section {
    margin-bottom: 0.7em;
    font-size: 1em;
}
.job-actions {
    display: flex;
    justify-content: flex-end;
}
.apply-button {
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.6em 1.5em;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.apply-button:hover {
    background: #1976d2;
}
.no-jobs-message {
    font-size: 1.1em;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .hr-jobs-container {
        padding: 0.5em 0.2em;
    }
    .jobs-listing {
        gap: 0.7em;
    }
    .job-posting {
        padding: 1em 0.7em;
    }
    .job-header-click {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
    .job-arrow {
        margin-left: 0;
        align-self: flex-end;
    }
    .job-meta {
        gap: 0.4em;
        font-size: 0.95em;
    }
    .job-meta-item {
        padding: 0.15em 0.6em;
        font-size: 0.97em;
    }
    .job-details {
        padding-top: 0.7em;
    }
    .apply-button {
        width: 100%;
        padding: 0.7em 0;
        font-size: 1em;
    }
    .jobs-filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4em;
    }
    .filter-options {
        gap: 0.3em;
    }
}
/* --- Chipsy filtrujące działy --- */
.jobs-filter-bar {
    background: #fff;
    padding: 1.2rem 1.5rem 1.2rem 1.5rem;
    border-radius: var(--mountain-border-radius);
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--mountain-shadow);
    border: 2px solid rgba(46, 125, 50, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
}
.filter-title {
    color: var(--mountain-green);
    font-size: 1.1em;
    font-weight: 600;
    margin-right: 1rem;
}
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.filter-chip {
    padding: 0.5rem 1.2rem;
    background: #f5f5f5;
    border: 2px solid var(--mountain-border);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--mountain-transition);
    font-size: 1em;
    font-weight: 500;
    color: var(--mountain-green);
    outline: none;
    box-shadow: 0 2px 8px var(--mountain-shadow);
}
.filter-chip:hover,
.filter-chip.active {
    background: var(--mountain-green);
    color: #fff;
    border-color: var(--mountain-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--mountain-shadow-hover);
}
/* HR Jobs System - Frontend Styles */
:root {
    --mountain-green: #0b4d3a; /* ciemniejszy zielony z layoutu */
    --mountain-light-green: #197c5c; /* jaśniejszy, ale nadal ciemny */
    --mountain-bg: #f8fafe;
    --mountain-text: #233c32;
    --mountain-border: #b2c8be;
    --mountain-shadow: rgba(11, 77, 58, 0.08);
    --mountain-shadow-hover: rgba(11, 77, 58, 0.13);
    --mountain-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --mountain-border-radius: 12px;
}
.hr-jobs-container {
    max-width: 900px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.hr-jobs-header {
    text-align: center;
    margin-bottom: 40px;
}
.hr-jobs-header h2 {
    font-size: 2.2em;
    color: var(--mountain-green);
    margin-bottom: 0.5rem;
}
.hr-jobs-header p {
    font-size: 1.1em;
    color: var(--mountain-text);
}
.jobs-listing {
    display: grid;
    gap: 20px;
}
.job-posting {
    background: white;
    border-radius: var(--mountain-border-radius);
    padding: 24px;
    border: 1px solid var(--mountain-border);
    box-shadow: 0 4px 15px var(--mountain-shadow);
    transition: var(--mountain-transition);
}
.job-posting:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--mountain-shadow-hover);
}
.job-title-section h3 {
    color: var(--mountain-green);
    margin: 0 0 8px 0;
    font-size: 1.4em;
    font-weight: 600;
}
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 12px 0;
    font-size: 0.9em;
    color: var(--mountain-light-text);
}
.job-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.job-content {
    margin: 16px 0;
    line-height: 1.6;
    color: var(--mountain-text);
}
.apply-button {
    background: var(--mountain-green);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.apply-button:hover {
    background: var(--mountain-light-green);
}
.hr-modal {
    position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px);
    display: none; align-items: center; justify-content: center;
}
.hr-modal.active { display: flex; }
.hr-modal-content {
    background: white; padding: 30px; border-radius: 16px;
    width: 90%; max-width: 550px; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: modal-fade-in 0.3s;
}
@keyframes modal-fade-in { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.hr-close {
    position: absolute; top: 15px; right: 20px; background: none; border: none;
    font-size: 2rem; cursor: pointer; color: #aaa; line-height: 1;
}
.hr-modal-content h2 { margin-top: 0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid var(--mountain-border);
    border-radius: 8px; box-sizing: border-box;
}
.file-upload-container {
    border: 2px dashed var(--mountain-border); border-radius: 8px;
    padding: 2rem; text-align: center; cursor: pointer; transition: 0.2s;
}
.file-upload-container:hover, .file-upload-container.dragover {
    border-color: var(--mountain-green); background: #f9fff9;
}
.file-upload-container input[type="file"] { display: none; }
.file-list { margin-top: 1rem; }
.file-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem; background: #f7f7f7; border-radius: 6px; margin-bottom: 0.5rem;
}
.file-remove { background: none; border: none; color: #d32f2f; cursor: pointer; font-size: 1.2rem; }
#form-messages .error-message { background: #ffebee; color: #c62828; padding: 15px; border-radius: 8px; margin-bottom: 1rem; }
#form-messages .success-message { background: #e8f5e9; color: #2e7d32; padding: 15px; border-radius: 8px; margin-bottom: 1rem; }
.loading-spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: #fff; animation: spin 1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }