/* --- JOB OFFER INPUT COMPONENT --- */
.job-input-card {
    background: rgba(255, 255, 255, 0.05);
    /* Adapted for general dark mode */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: white;
    font-family: 'Inter', sans-serif;
}

.job-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.job-input-header h3 {
    font-size: 1.1rem;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-input-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 8px;
}

.job-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    /* slate-400 */
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-tab:hover {
    color: white;
}

.job-tab.active {
    background: #00ccff;
    /* primary-blue */
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-panel {
    display: none;
}

.input-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Panel: Link */
.input-group {
    display: flex;
    gap: 10px;
}

.modern-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
}

.btn-primary-sm {
    background: #00ccff;
    color: black;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary-sm:hover {
    transform: translateY(-2px);
}

/* Panel: Text */
.modern-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px;
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

.full-width {
    width: 100%;
}

/* Panel: Image */
.image-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #94a3b8;
}

.image-upload-area:hover,
.image-upload-area.dragover {
    border-color: #00ccff;
    background: rgba(0, 168, 255, 0.05);
    color: white;
}

.image-upload-area i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #00ccff;
}

/* Loading & Result */
.job-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    color: #00ccff;
    gap: 10px;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 168, 255, 0.3);
    border-top-color: #00ccff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.job-result {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    padding: 1rem;
}

.job-result-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.job-badge {
    color: #00ff88;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-text-sm {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
}

.res-company {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Helper */
.input-hint {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 5px;
}