/* Unity Jobs Manager Frontend Styles */

.ujm-job-board-app, .ujm-single-job-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #2c3e50;
    margin: 20px 0;
    max-width: 100%;
}

/* Single Job Page Styles */
.ujm-single-job-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ujm-back-bar {
    margin-bottom: 20px;
}

.ujm-btn-back {
    display: inline-block;
    padding: 8px 16px;
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ujm-btn-back:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Controls Bar */
.ujm-controls-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 25px;
}

.ujm-search-box {
    display: flex;
    flex: 1;
    min-width: 250px;
    position: relative;
}

.ujm-search-box input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 6px 0 0 6px;
    outline: none;
    transition: border-color 0.2s;
}

.ujm-search-box input:focus {
    border-color: #0073aa;
}

.ujm-search-box button {
    padding: 10px 16px;
    background: #0073aa;
    color: #fff;
    border: 1px solid #0073aa;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 14px;
}

.ujm-search-box button:hover {
    background: #005177;
}

.ujm-filter-box select {
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.ujm-view-switcher {
    display: flex;
    gap: 6px;
}

.ujm-view-btn {
    padding: 8px 14px;
    font-size: 14px;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    cursor: pointer;
    color: #495057;
    transition: all 0.2s ease;
}

.ujm-view-btn.active, .ujm-view-btn:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Spinner */
.ujm-spinner {
    text-align: center;
    padding: 30px;
}
.ujm-spinner > div {
    width: 14px;
    height: 14px;
    background-color: #0073aa;
    border-radius: 100%;
    display: inline-block;
    animation: ujm-bouncedelay 1.4s infinite ease-in-out both;
}
.ujm-spinner .ujm-bounce1 { animation-delay: -0.32s; }
.ujm-spinner .ujm-bounce2 { animation-delay: -0.16s; }
@keyframes ujm-bouncedelay {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Layouts */
.ujm-jobs-wrapper.ujm-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.ujm-jobs-wrapper.ujm-layout-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Job Cards */
.ujm-job-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ujm-job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.ujm-job-header {
    margin-bottom: 12px;
}

.ujm-job-title-group {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.ujm-job-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1a202c;
    line-height: 1.3;
}

.ujm-job-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ujm-job-title a:hover {
    color: #0073aa;
}

.ujm-job-badge {
    background: #ebf8ff;
    color: #2b6cb0;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.ujm-badge-detail {
    background: #f7fafc;
    color: #4a5568;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.ujm-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #718096;
    margin-bottom: 14px;
}

.ujm-job-excerpt {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 18px;
}

.ujm-job-actions {
    margin-top: auto;
}

.ujm-btn {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    border: none;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.ujm-btn-outline {
    background: transparent;
    color: #0073aa;
    border: 1.5px solid #0073aa;
    width: 100%;
}

.ujm-btn-outline:hover {
    background: #0073aa;
    color: #fff;
}

.ujm-btn-primary {
    background: #0073aa;
    color: #fff;
    width: 100%;
}

.ujm-btn-primary:hover {
    background: #005177;
}

/* Pagination */
.ujm-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.ujm-page-btn {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    color: #4a5568;
    font-size: 14px;
}

.ujm-page-btn.active, .ujm-page-btn:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.ujm-no-jobs {
    text-align: center;
    padding: 40px;
    background: #f7fafc;
    border-radius: 8px;
    color: #718096;
    font-size: 16px;
}

.ujm-divider {
    border: 0;
    height: 1px;
    background: #edf2f7;
    margin: 25px 0;
}

.ujm-job-description {
    line-height: 1.7;
    color: #2d3748;
}

.ujm-application-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #1a202c;
}

/* Form Styles */
.ujm-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.ujm-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.ujm-form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3748;
}

.ujm-form-group label .required {
    color: #e53e3e;
}

.ujm-form-group input, .ujm-form-group textarea {
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.ujm-form-group input:focus, .ujm-form-group textarea:focus {
    border-color: #0073aa;
}

.ujm-form-note {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

.ujm-form-notice {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.ujm-form-notice.ujm-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.ujm-form-notice.ujm-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

@media (max-width: 600px) {
    .ujm-form-row {
        flex-direction: column;
        gap: 0;
    }
}
